Reference Manual
Redpine Signals, Inc. Proprietary and Confidential Page 69
RS9116 n-Link Linux and Android
Technical Reference Manual
Version 2.0
8 HOSTAPD and Wi-Fi Protected Setup (WPS)
This section describes how the WPS implementation in hostapd can be configured and how an external component on an
AP is used to enable enrollment of client devices.
WPS uses the following terms to describe the entities participating in the network setup:
Access Point: WLAN access point
Registrar: A device that controls a network and can authorize addition of new devices. This may be either in the AP
("internal Registrar") or in an external device, e.g., a laptop, ("external Registrar")
Enrollee: A device that is being authorized to use the network
It should also be noted that the AP and a client device may change roles (i.e., AP acts as an Enrollee and client device as a
Registrar) when WPS is used to configure the access point.)
8.1 Hostapd Configuration before Compilation
WPS component needs to be enabled in hostapd build configuration (.config)
i.e: vim host/wlan/hostapd-2.3/hostapd/.config
Ensure that the below mentioned entities are enabled in .config file
CONFIG_WPS=y
CONFIG_WPS2=y
CONFIG_WPS_UPNP=y
8.2 Configuration in hostapd_ccmp.conf
driver=nl80211
interface=wifi1; wifi1 is the name of the interface
# WPA2-Personal configuration for the AP
ssid=wps-test
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
# Default WPA passphrase for legacy (non-WPS) clients
wpa_passphrase=12345678
# Enable random per-device PSK generation for WPS clients
wpa_psk_file=/etc/hostapd.wpa_psk
Check if the hostapd.wpa_psk file present in /etc/, if not, then create a new empty file naming hostapd.wpa_psk in
location (/etc/ ).