RS9116 n-Link Linux and Android Technical Reference Manual
Version : 2.0
July 2020
66
Usage
The following command initiates a scan and displays the list of AP's scanned.
$ iw dev $interface_name scan
Example
$ iw dev wifi0 scan
Connect
Description
This command is used to connect devices to the Access points in open or WEP
security mode.
Default Value
-
Input Parameters SSID, BSSID, key_index, key of AP.
Output
Parameter
None
Reset Required
No
Usage
Open mode:
$ iw dev $interface_name connect $SSID_NAME $BSSID.
WEP Security:
$ iw dev $interface_name $ssid_name $bssid keyid:$key_index:$key
Example
$ iw dev wifi0 connect REDPINE_AP 00:23:a7:00:05:55
The above command connects to REDPINE_AP access point in open mode
$ iw dev wifi0 REDPINE_AP 00:23:a7:00:05:55 keys d:1:234567890
The above command instructs our device to connect to the REDPINE_AP in
wep64 mode with the key index 1 and key '234567890'.
Disconnect
Description
This command is used to disconnect our device from the connected network.
Default Value
-
Input Parameters Interface name
Output
Parameter
-
Reset Required
No
Usage
iw dev $interface_name disconnect
Example
$ iw dev wifi0 disconnect
The above command disconnects our device from the connected Access
point.