记录一个android 连接失败的案例
logcat:
WifiConfigManager: Enable disabled network: “SSID” num=0
SupplicantStateTracker: Supplicant state: ASSOCIATING
…
wlan0: Event ASSOC_REJECT (12) received
wpa_supplicant: wlan0: State: ASSOCIATING -> DISCONNECTED
WifiClientModeImpl: Association Rejection event: bssid=xx:x0:xx:xx:xx:xx reason code=1 timedOut=true
WifiConfigManager: Disable counter for network SSID for reason NETWORK_SELECTION_DISABLED_ASSOCIATION_REJECTION is 1 and threshold is 5
dmsg:
wlan: [11610:I:PE] Auth TX: seq 1 seq num 2980 status 0 WEP 0 to xx:x0:xx:xx:xx:xx
wlan: [11610:I:PE] Auth TX: fail (1)
wlan: [11610:I:PE] Auth TX: seq 1 seq num 2981 status 0 WEP 0 to xx:x0:xx:xx:xx:xx
wlan: [11610:I:PE] Auth TX: fail (1)
…
wlan: [11610:W:PE] lim_process_auth_failure_timeout: received AUTH failure timeout in sessionid 0 limMlmstate 5 limSmeState 4
wlan: [11610:E:PE] lim_process_mlm_auth_cnf: Auth Failure occurred
wlan: [0:E:REGULATORY] reg_is_fcc_regdmn: Failed to get reg domain
wlan: [11610:E:HDD] hdd_association_completion_handler: send connect failure to nl80211: for bssid xx:x0:xx:xx:xx:xx result: 1 and Status: 9 reasoncode: 65530
sniffer :
手机的probe request发不出来
AP log:
没有任何关联记录
wifi uart:
没有任何关联记录
结论(猜测的):
作为AP,beacon中如果将上面图中PWR MGT标志位置1,有可能会在android手机(或者和内核版本相关)中被记录成已休眠,在手机尝试连接的时候,底层调度去发probe request都无法让fw发出之,也就无法执行后续关联流程。