========================================================
1:
01-18 02:45:03.291 3122 3122 D wpa_supplicant: wlan0: State: DISCONNECTED -> ASSOCIATING
void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,enum wpa_states state)
{
enum wpa_states old_state = wpa_s->wpa_state;
wpa_dbg(wpa_s, MSG_DEBUG, "State: %s -> %s",wpa_supplicant_state_txt(wpa_s->wpa_state),wpa_supplicant_state_txt(state));
...
}
const char * wpa_supplicant_state_txt(enum wpa_states state)
{
switch (state) {
case WPA_DISCONNECTED:
return "DISCONNECTED";
case WPA_INACTIVE:
return "INACTIVE";
case WPA_INTERFACE_DISABLED:
return "INTERFACE_DISABLED";
case WPA_SCANNING:
return "SCANNING";
case WPA_AUTHENTICATING:
return "AUTHENTICATING";
case WPA_ASSOCIATING:
return "ASSOCIATING";
case WPA_ASSOCIATED:
return "ASSOCIATED";
case WPA_4WAY_HANDSHAKE:
return "4WAY_HANDSHAKE";
case WPA_GROUP_HANDSHAKE:
return "GROUP_HANDSHAKE";
case WPA_COMPLETED:
return "COMPLETED";
default:
return "UNKNOWN";
}
}
========================================================
2: 01-17 17:20:09.250 19355 19355 I wpa_supplicant: wlan0: Associated with 18:64:72:11:3d:92
static void wpa_supplicant_event_assoc(struct wpa_supplicant *wpa_s,union wpa_event_data *data)
{
wpa_msg(wpa_s, MSG_INFO, "Associated with " MACSTR, MAC2STR(bssid));
...
}
========================================================
3: 01-17 17:20:48.537 19355 19355 I wpa_supplicant: wlan0: Trying to associate with SSID '5G-Verify_NO CONNECTION'
static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit){
...
wpa_msg(wpa_s, MSG_INFO, "Trying to associate with SSID '%s'",wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
...
}
========================================================
4: 01-17 17:20:09.139 19355 19355 I wpa_supplicant: wlan0: CTRL-EVENT-DISCONNECTED bssid=18:64:72:11:3d:81 reason=3 locally_generated=1 disconnect_rssi=48
static void wpa_supplicant_event_disassoc(struct wpa_supplicant *wpa_s,u16 reason_code,int locally_generated){
......
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_DISCONNECTED "bssid=" MACSTR
" reason=%d%s",
MAC2STR(bssid), reason_code,
locally_generated ? " locally_generated=1" : "");
......
}
========================================================
5: 01-17 17:20:09.251 19355 19355 I wpa_supplicant: wlan0: CTRL-EVENT-CONNECTED - Connection to 18:64:72:11:3d:92 completed [id=0 id_str=%7B%22configKey%22%3A%22%5C%225G-Verify_NO+CONNECTION%5C%22WEP%22%2C%22creatorUid%22%3A%221000%22%7D]
void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s, enum wpa_states state)
{
......
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_CONNECTED "- Connection to "
MACSTR " completed [id=%d id_str=%s]",
MAC2STR(wpa_s->bssid),
ssid ? ssid->id : -1,
ssid && ssid->id_str ? ssid->id_str : "");
......
}
========================================================
6: 01-17 17:22:50.399 19355 19355 I wpa_supplicant: wlan0: WPA: Key negotiation completed with 18:64:72:21:79:f3 [PTK=CCMP GTK=CCMP]
static void wpa_supplicant_key_neg_complete(struct wpa_sm *sm,
const u8 *addr, int secure)
{
...
wpa_msg(sm->ctx->msg_ctx, MSG_INFO,"WPA: Key negotiation completed with "
MACSTR " [PTK=%s GTK=%s]", MAC2STR(addr),wpa_cipher_txt(sm->pairwise_cipher),
wpa_cipher_txt(sm->group_cipher));
...
}
========================================================
7:01-17 21:30:02.664 2805 2805 E wpa_supplicant: disconnect rssi= -48
static void wpa_driver_nl80211_get_disconnect_rssi(){
....
wpa_printf(MSG_ERROR,"disconnect rssi= %d",rssi);
....
}
========================================================
8: 01-17 21:30:47.376 2805 2805 I wpa_supplicant: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=58:66:ba:9e:c7:81 status_code=1 timeout=auth
void wpa_supplicant_event(void *ctx, enum wpa_event_type event, union wpa_event_data *data)
{
switch (event) {
case EVENT_ASSOC_REJECT:
if (data->ass
WPA的Log分析累积
最新推荐文章于 2023-02-28 18:50:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)