Reference Manual
Redpine Signals, Inc. Proprietary and Confidential Page 71
RS9116 n-Link Linux and Android
Technical Reference Manual
Version 2.0
8.3.3 AP-mode for WPS-Generate pin- method
$ sh wlan_enable.sh or wlan_bt_insert.sh or wlan_zigb_insert.sh or onebox_insert.sh script present in the “release”
folder as per the instructions mentioned in section 4.1
$ iw phy ; it will give phyXX number
$ iw phy phyXX interface add wifi1 type __ap
$ ./hostapd hostapd_ccmp.conf -ddddddt>log &
$ sh dhcp_server.sh wifi1
$ hostapd_cli wps_ap_pin random [timeout]
The above command generates a random AP pin number. If the optional timeout parameter is given then the AP pin will
be enabled for the specified number of seconds.
$ ./hostapd_cli wps_ap_pin random 300
The above command generates a 8digit random pin which needs to be entered at the station side using the procedure
mentioned below.
Here AP acts as an Enrolee and client device as a Registrar, so ensure that the below mentioned entities are enable at the
STATION side.
PATH: host/wlan/supplicant/linux/wpa_supplicant/.config
CONFIG_DRIVER_NL80211=y
CONFIG_WPS=y
CONFIG_WPS2=y
CONFIG_WPS_ER=y
8.3.4 Disable AP pin
To disable AP Pin, enter the command given below:
$ hostapd_cli wps_ap_pin disable
The command disables AP PIN (i.e., it does not allow external Registrars to use it inorder to learn the current AP settings
or to reconfigure the AP).
8.3.5 Get the AP pin
To fetch the current AP pin enter the command given below:
$ hostapd_cli wps_ap_pin get