Reference Manual

Table Of Contents
RS9116 n-Link Linux and Android Technical Reference Manual
Version 2.0
August 2019
79
$ iw phy ; it will give phyXX number
$ iw phy phyXX interface add wifi1
type __ap
$ /hostapd hostapd_wps.conf
-ddddddt>log &
$ sh dhcp_server.sh wifi1
./hostapd_cli wps_pin any [wps
-pin-of station]
$ ./hostapd_cli wps_pin any 12345670
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_wps.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: