HS 2.0R2: Disable full ESS for as a workaround for per-BSS issues
For now, disable full ESS since some drivers may not support disabling per BSS. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8a77f1be86
commit
533536d82a
1 changed files with 13 additions and 0 deletions
|
@ -872,6 +872,19 @@ void hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s, u8 code,
|
||||||
if (code == HS20_DEAUTH_REASON_CODE_BSS) {
|
if (code == HS20_DEAUTH_REASON_CODE_BSS) {
|
||||||
wpa_printf(MSG_DEBUG, "HS 2.0: Add BSS to blacklist");
|
wpa_printf(MSG_DEBUG, "HS 2.0: Add BSS to blacklist");
|
||||||
wpa_blacklist_add(wpa_s, wpa_s->bssid);
|
wpa_blacklist_add(wpa_s, wpa_s->bssid);
|
||||||
|
/* TODO: For now, disable full ESS since some drivers may not
|
||||||
|
* support disabling per BSS. */
|
||||||
|
if (wpa_s->current_ssid) {
|
||||||
|
struct os_time now;
|
||||||
|
os_get_time(&now);
|
||||||
|
if (now.sec + reauth_delay <=
|
||||||
|
wpa_s->current_ssid->disabled_until.sec)
|
||||||
|
return;
|
||||||
|
wpa_printf(MSG_DEBUG, "HS 2.0: Disable network for %u seconds (BSS)",
|
||||||
|
reauth_delay);
|
||||||
|
wpa_s->current_ssid->disabled_until.sec =
|
||||||
|
now.sec + reauth_delay;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code == HS20_DEAUTH_REASON_CODE_ESS && wpa_s->current_ssid) {
|
if (code == HS20_DEAUTH_REASON_CODE_ESS && wpa_s->current_ssid) {
|
||||||
|
|
Loading…
Reference in a new issue