wpa_supplicant: 11KV bug fixes

This commit is contained in:
Kapil Gupta 2021-11-08 20:59:32 +05:30
parent d859c24028
commit c2bc773b28
2 changed files with 8 additions and 3 deletions

View File

@ -849,6 +849,12 @@ wpas_rm_handle_beacon_req(struct wpa_supplicant *wpa_s,
goto out;
}
params->channel = req->channel;
#ifdef ESP_SUPPLICANT
if (params->channel == 0xff) {
/* set it to zero */
params->channel = 0;
}
#endif
params->duration = le_to_host16(req->duration);
params->duration_mandatory = duration_mandatory;
if (!params->duration) {

View File

@ -883,9 +883,8 @@ static void ieee802_11_rx_bss_trans_mgmt_req(struct wpa_supplicant *wpa_s,
}
if (scan_required) {
wpa_printf(MSG_DEBUG, "Trying to find another BSS");
#else
wpa_supplicant_req_scan(wpa_s, 0, 0);
#endif
wpa_supplicant_req_scan(wpa_s, 0, 0);
} else if (reply) {
enum bss_trans_mgmt_status_code status;
if (wpa_s->wnm_mode & WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT)
@ -975,7 +974,7 @@ void ieee802_11_rx_wnm_action(struct wpa_supplicant *wpa_s,
switch (act) {
case WNM_BSS_TRANS_MGMT_REQ:
ieee802_11_rx_bss_trans_mgmt_req(wpa_s, pos, end,
!(sender[0] & 0x01));
0x01);
break;
default:
wpa_printf(MSG_ERROR, "WNM: Unknown request");