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>
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,