]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WNM: Do not reject ESS Disassoc Imminent
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 May 2013 13:10:29 +0000 (16:10 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 23 May 2013 13:50:55 +0000 (16:50 +0300)
This indication is not expected to include candidates, so do not reject
it based on that.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/wnm_sta.c

index f679209b3b009dc73619bef7603b923b6eee3c04..7107cf654e713451465c94a4c69e81b1e329803c 100644 (file)
@@ -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);
        }
 }