WNM: Reject requests with an invalid dialog token
The dialog token must be non-zero. We are using this fact internally to track the state in some cases, so ensure that the assumption is valid. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
parent
f4a9cb96d6
commit
3b6abe3580
1 changed files with 6 additions and 0 deletions
|
@ -1456,6 +1456,12 @@ static void ieee802_11_rx_bss_trans_mgmt_req(struct wpa_supplicant *wpa_s,
|
|||
wpa_s->wnm_dialog_token, wpa_s->wnm_mode,
|
||||
wpa_s->wnm_disassoc_timer, valid_int);
|
||||
|
||||
if (!wpa_s->wnm_dialog_token) {
|
||||
wpa_printf(MSG_DEBUG, "WNM: Invalid dialog token");
|
||||
wnm_btm_reset(wpa_s);
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_MBO) && defined(CONFIG_TESTING_OPTIONS)
|
||||
if (wpa_s->reject_btm_req_reason) {
|
||||
wpa_printf(MSG_INFO,
|
||||
|
|
Loading…
Reference in a new issue