aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wnm_sta.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-05-23 13:10:29 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-23 13:50:55 (GMT)
commit6df634faf9b3171f0322a3368515fefbea8d7830 (patch)
tree8fa0d61fa961c361ad3ae682fc2377c10adb3217 /wpa_supplicant/wnm_sta.c
parent7b53acd395a369ddefa9fa4965368ec0a1160fef (diff)
downloadhostap-6df634faf9b3171f0322a3368515fefbea8d7830.zip
hostap-6df634faf9b3171f0322a3368515fefbea8d7830.tar.gz
hostap-6df634faf9b3171f0322a3368515fefbea8d7830.tar.bz2
WNM: Do not reject ESS Disassoc Imminent
This indication is not expected to include candidates, so do not reject it based on that. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wnm_sta.c')
-rw-r--r--wpa_supplicant/wnm_sta.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
index f679209..7107cf6 100644
--- a/wpa_supplicant/wnm_sta.c
+++ b/wpa_supplicant/wnm_sta.c
@@ -672,12 +672,16 @@ static void ieee802_11_rx_bss_trans_mgmt_req(struct wpa_supplicant *wpa_s,
wpa_s->scan_res_handler = wnm_scan_response;
wpa_supplicant_req_scan(wpa_s, 0, 0);
} else if (reply) {
- wpa_msg(wpa_s, MSG_INFO, "WNM: BSS Transition Management "
- "Request Mode is zero");
+ enum bss_trans_mgmt_status_code status;
+ if (wpa_s->wnm_mode & WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT)
+ status = WNM_BSS_TM_ACCEPT;
+ else {
+ wpa_msg(wpa_s, MSG_INFO, "WNM: BSS Transition Management Request did not include candidates");
+ status = WNM_BSS_TM_REJECT_UNSPECIFIED;
+ }
wnm_send_bss_transition_mgmt_resp(wpa_s,
wpa_s->wnm_dialog_token,
- WNM_BSS_TM_REJECT_UNSPECIFIED,
- 0, NULL);
+ status, 0, NULL);
}
}