mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-07 12:44:03 -05:00
fragattacks: detect rekey event as AP
This commit is contained in:
parent
33fd6c30f3
commit
e26278f4b5
@ -1223,8 +1223,15 @@ void ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta,
|
||||
u8 ip_addr_buf[4];
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
if (!!authorized == !!(sta->flags & WLAN_STA_AUTHORIZED))
|
||||
if (!!authorized == !!(sta->flags & WLAN_STA_AUTHORIZED)) {
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
if (authorized) {
|
||||
os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(sta->addr));
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_CONNECTED "%s", buf);
|
||||
}
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
return;
|
||||
}
|
||||
|
||||
if (authorized)
|
||||
sta->flags |= WLAN_STA_AUTHORIZED;
|
||||
|
Loading…
Reference in New Issue
Block a user