mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -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):
|
def handle_wpaspy(self, msg):
|
||||||
log(DEBUG, "daemon: " + msg)
|
log(DEBUG, "daemon: " + msg)
|
||||||
|
|
||||||
if "AP-STA-NEW" in msg:
|
# This is not called after deauth or reassociation
|
||||||
cmd, clientmac = msg.split()
|
#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)
|
self.add_station(clientmac)
|
||||||
|
log(ERROR, source)
|
||||||
|
|
||||||
log(STATUS, f"Client {clientmac} is connecting")
|
log(STATUS, f"Client {clientmac} is connecting")
|
||||||
station = self.stations[clientmac]
|
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);
|
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
|
* ACL configurations to the drivers (implementing AP SME and ACL
|
||||||
* offload) without hostapd's knowledge, can result in a disconnection
|
* 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 */
|
#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:
|
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;
|
sta->last_seq_ctrl = WLAN_INVALID_MGMT_SEQ;
|
||||||
dl_list_init(&sta->ip6addr);
|
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
|
#ifdef CONFIG_TAXONOMY
|
||||||
sta_track_claim_taxonomy_info(hapd->iface, addr,
|
sta_track_claim_taxonomy_info(hapd->iface, addr,
|
||||||
&sta->probe_ie_taxonomy);
|
&sta->probe_ie_taxonomy);
|
||||||
|
Loading…
Reference in New Issue
Block a user