SWRU576 January 2021 WL1801MOD , WL1805MOD , WL1807MOD , WL1831MOD , WL1835MOD , WL1837MOD
Scanning available access points visible to the device and typical output is shown below: (iw wlan0 scan). Selecting a specific access point and connecting using iw command and typical o/p is also shown below: (iw wlan0 connect <SSID>). The link can also be verified using the iw command: (iw wlan0 link). Finally, a ping test will ensure that the WiLink8 device is connected to the access point.
root@am335x-evm:~# iw wlan0 scan | grep SSID
SSID: IOP_035
SSID: Demo_24
SSID: abc
SSID: mobile
root@am335x-evm:~# iw wlan0 connect abc
wlan0: authenticate with b8:a3:86:20:93:32
wlcore: is_sta: 1 old:0 new:1
wlan0: send auth to b8:a3:86:20:93:32 (try 1/3)
wlan0: authenticated
wlcore: is_sta: 1 old:1 new:2
wlan0: associate with b8:a3:86:20:93:32 (try 1/3)
wlan0: RX AssocResp from b8:a3:86:20:93:32 (capab=0xc01 status=0 aid=1)
wlcore: is_sta: 1 old:2 new:3
wlcore: is_sta: 1 old:3 new:4
wlcore: Association completed.
wlan0: associated
cfg80211: Calling CRDA for country: RU
cfg80211: Regulatory domain changed to country: RU
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211: (5735000 KHz - 5835000 KHz @ 20000 KHz), (N/A, 3000 mBm)
root@am335x-evm:~# iw wlan0 link
Connected to b8:a3:86:20:93:32 (on wlan0)
SSID: algranati
freq: 2437
RX: 1360 bytes (12 packets)
TX: 122 bytes (2 packets)
signal: -60 dBm
tx bitrate: 1.0 MBit/s
bss flags: short-slot-time
dtim period: 1
beacon int: 100
root@am335x-evm:~# udhcpc -i wlan0
udhcpc (v1.23.1) started
Sending discover...
Sending select for 192.168.1.4...
Lease of 192.168.1.4 obtained, lease time 172800
/etc/udhcpc.d/50default: Adding DNS 192.168.1.1
root@am335x-evm:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=1003.369 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=2.526 ms
64 bytes from 192.168.1.1: seq=2 ttl=64 time=7.931 ms