This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

iw link command not reporting correct status sometimes

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:

  1. Ip link set wlan0 up
  2. Iw wlan0 connect Linksys (router)
  3. 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
  1. 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
  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)
  2. 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
  1. 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. 

3480.deauthntication.zip