mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
hostapd: Increase timeout for channel list update to 5 seconds
Before this patch, 1 second timeout was used for regulatory updates. In some cases, specially when we reload driver modules on some slower platforms this could take more than 1 second (about 2 seconds). This is important specially for DFS case, where we have to have correct DFS region before we will start CAC. In other case (unknown DFS region), CAC will fail. 5 seconds should be enough for all cases. Signed-hostap: Janusz Dziedzic <janusz.dziedzic@tieto.com>
This commit is contained in:
parent
ff5e1d14af
commit
fd92413417
@ -1028,7 +1028,7 @@ static int setup_interface(struct hostapd_iface *iface)
|
|||||||
if (os_strncmp(previous_country, country, 2) != 0) {
|
if (os_strncmp(previous_country, country, 2) != 0) {
|
||||||
wpa_printf(MSG_DEBUG, "Continue interface setup after channel list update");
|
wpa_printf(MSG_DEBUG, "Continue interface setup after channel list update");
|
||||||
iface->wait_channel_update = 1;
|
iface->wait_channel_update = 1;
|
||||||
eloop_register_timeout(1, 0,
|
eloop_register_timeout(5, 0,
|
||||||
channel_list_update_timeout,
|
channel_list_update_timeout,
|
||||||
iface, NULL);
|
iface, NULL);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user