mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
mesh: Fix mesh_oom test
Only change freq params, if ifmsh->freq is set initially, which only happens if hostapd_get_hw_features in setup_interface2 succeeds. Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
This commit is contained in:
parent
12ae3e3dba
commit
06161d4f10
@ -212,7 +212,7 @@ static int wpas_mesh_complete(struct wpa_supplicant *wpa_s)
|
|||||||
* Update channel configuration if the channel has changed since the
|
* Update channel configuration if the channel has changed since the
|
||||||
* initial setting, i.e., due to DFS radar detection during CAC.
|
* initial setting, i.e., due to DFS radar detection during CAC.
|
||||||
*/
|
*/
|
||||||
if (ifmsh->freq != params->freq.freq) {
|
if (ifmsh->freq > 0 && ifmsh->freq != params->freq.freq) {
|
||||||
struct he_capabilities *he_capab = NULL;
|
struct he_capabilities *he_capab = NULL;
|
||||||
|
|
||||||
wpa_s->assoc_freq = ifmsh->freq;
|
wpa_s->assoc_freq = ifmsh->freq;
|
||||||
|
Loading…
Reference in New Issue
Block a user