AP: Enable H2E on 6 GHz when SAE is used
Even if the use of H2E isn't strictly mandatory when using SAE on 6 GHz, WPA3-Personal pushes it on 6 GHz. So lets automatically enable it by setting sae_pwe=2. This will allow both the hunting-and-pecking and hash-to-element to work (and be backward compatible). Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
This commit is contained in:
parent
b43e19f3f3
commit
20bfd4feb3
1 changed files with 7 additions and 0 deletions
|
@ -1210,6 +1210,13 @@ static bool hostapd_config_check_bss_6g(struct hostapd_bss_config *bss)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_SAE
|
||||||
|
if (wpa_key_mgmt_sae(bss->wpa_key_mgmt) && !bss->sae_pwe) {
|
||||||
|
wpa_printf(MSG_INFO, "SAE: Enabling SAE H2E on 6 GHz");
|
||||||
|
bss->sae_pwe = 2;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_SAE */
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue