【WIFI】【WPS】如何从log角度判断WPS 已经连接上

在Android项目中,由于WPS在Framework 接口中已经remove了

只能通过wpa-supplicant 代码中去判断是否连接上了

这段代码log 表示 PBC模式下没有激活

09-21 22:42:16.221503  3782  3782 D wpa_supplicant: wlan0: 0: 04:cf:4b:21:a0:3e ssid='Openwrt-WPS-tp' wpa_ie_len=0 rsn_ie_len=20 caps=0x411 level=-26 freq=2437  wps
09-21 22:42:16.221555  3782  3782 D wpa_supplicant: wlan0:    skip - disabled
09-21 22:42:16.221612  3782  3782 D wpa_supplicant:    skip - WPS AP without active PBC Registrar

这段代码log 表示PBC模式下有激活

09-21 22:42:18.046761  3782  3782 D wpa_supplicant: wlan0: 0: 04:cf:4b:21:a0:3e ssid='Openwrt-WPS-tp' wpa_ie_len=0 rsn_ie_len=20 caps=0x411 level=-37 freq=2437  wps
09-21 22:42:18.046799  3782  3782 D wpa_supplicant: wlan0:    skip - disabled
09-21 22:42:18.046841  3782  3782 D wpa_supplicant:    selected based on WPS IE (Active PBC)
09-21 22:42:18.046884  3782  3782 

你可能感兴趣的:(WIFI,wps)