mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Restart sched_scan on channel list change
The channel list can be changed as a result of arriving beacon hints during normal scan or as a result of local Reg-Domain change. Some passive channels can become active and needs to be reconfigured accordingly for the scheduled scan. This fixes the connection to hidden SSIDs on 5 GHz band during default Reg-Domain 00 (world roaming). Signed-off-by: Victor Goldenshtein <victorg@ti.com> Signed-off-by: Eliad Peller <eliad@wizery.com>
This commit is contained in:
parent
e7a296ba13
commit
6ceea4c3cb
@ -2864,6 +2864,14 @@ static void wpa_supplicant_update_channel_list(
|
||||
ifs, &ifs->hw.num_modes, &ifs->hw.flags);
|
||||
}
|
||||
}
|
||||
|
||||
/* Restart sched_scan with updated channel list */
|
||||
if (wpa_s->sched_scanning) {
|
||||
wpa_dbg(wpa_s, MSG_DEBUG,
|
||||
"Channel list changed restart sched scan.");
|
||||
wpa_supplicant_cancel_sched_scan(wpa_s);
|
||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user