mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
fragattack: draft reconnect fix
This commit is contained in:
parent
e81f640cf5
commit
72fed7499d
@ -956,9 +956,13 @@ class Authenticator(Daemon):
|
||||
def handle_wpaspy(self, msg):
|
||||
log(DEBUG, "daemon: " + msg)
|
||||
|
||||
if "AP-STA-NEW" in msg:
|
||||
cmd, clientmac = msg.split()
|
||||
# This is not called after deauth or reassociation
|
||||
#if "AP-STA-NEW" in msg:
|
||||
#cmd, clientmac = msg.split()
|
||||
if "AP-STA-ASSOCIATING" in msg:
|
||||
cmd, clientmac, source = msg.split()
|
||||
self.add_station(clientmac)
|
||||
log(ERROR, source)
|
||||
|
||||
log(STATUS, f"Client {clientmac} is connecting")
|
||||
station = self.stations[clientmac]
|
||||
|
@ -195,6 +195,11 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
|
||||
}
|
||||
sta->flags &= ~(WLAN_STA_WPS | WLAN_STA_MAYBE_WPS | WLAN_STA_WPS2);
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO, "AP-STA-ASSOCIATING " MACSTR " hostapd_notif_assoc",
|
||||
MAC2STR(sta->addr));
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
/*
|
||||
* ACL configurations to the drivers (implementing AP SME and ACL
|
||||
* offload) without hostapd's knowledge, can result in a disconnection
|
||||
|
@ -4376,6 +4376,11 @@ static void handle_assoc(struct hostapd_data *hapd,
|
||||
}
|
||||
#endif /* CONFIG_FILS */
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO, "AP-STA-ASSOCIATING " MACSTR " handle_assoc",
|
||||
MAC2STR(sta->addr));
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
fail:
|
||||
|
||||
/*
|
||||
|
@ -725,11 +725,6 @@ struct sta_info * ap_sta_add(struct hostapd_data *hapd, const u8 *addr)
|
||||
sta->last_seq_ctrl = WLAN_INVALID_MGMT_SEQ;
|
||||
dl_list_init(&sta->ip6addr);
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO, "AP-STA-NEW " MACSTR,
|
||||
MAC2STR(sta->addr));
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
#ifdef CONFIG_TAXONOMY
|
||||
sta_track_claim_taxonomy_info(hapd->iface, addr,
|
||||
&sta->probe_ie_taxonomy);
|
||||
|
Loading…
Reference in New Issue
Block a user