I am using Imx6s with Ti Wilink module.
I am seeing minor discrepancy in the status reported by this command, when AP disassociates the target due to no activities.
Steps to reproduce:
- Ip link set wlan0 up
- Iw wlan0 connect Linksys (router)
- Iw wlan0 link reports Connected
- SSID: linksys
- freq: 2437
- RX: 328 bytes (8 packets)
- TX: 92 bytes (2 packets)
- signal: -54 dBm
- tx bitrate: 1.0 MBit/s
- bss flags: short-slot-time
- dtim period: 1
- beacon int: 100
- Udhcpc –i wlan0
- udhcpc (v1.22.1) started
- Sending discover...
- Sending select for 192.168.1.101...
- Lease of 192.168.1.101 obtained, lease time 86400
- /etc/udhcpc.d/50default: Adding DNS 192.168.1.1
- Wait 5 minutes. Wire shark log shows de authentication but iw wlan0 link still shows status as connected (no matter how long we wait, it won’t change)
- Ping 192.168.1.107
- [ 1229.351818] wlan0: deauthenticated from 00:25:9c:e8:8f:17 (Reason: 6=CLASS2_FRAME_FROM_NONAUTH_STA)
- [ 1229.425645] cfg80211: Calling CRDA to update world regulatory domain
- After this the status is reported correctly
Attached wireshark log also..
This is not always reproducible. Sometimes the dmesg appears even without issuing ping and sometimes only after issuing ping. Whenever dmesg appears the link status gets updated properly. I have attached wire shark log for reference . Around frame 135,I got correct status. Around frame 260 I got wrong status.