Enable beacon protection only when driver indicates support
Enabling beacon protection will cause STA connection/AP setup failures if the driver doesn't support beacon protection. To avoid this, check the driver capability before enabling beacon protection. This commit also adds a capability flag to indicate beacon protection support in client mode only. Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
This commit is contained in:
parent
9d99814e22
commit
d36d4209fd
8 changed files with 30 additions and 8 deletions
|
@ -1512,6 +1512,9 @@ int hostapd_setup_wpa(struct hostapd_data *hapd)
|
|||
else
|
||||
_conf.extended_key_id = 0;
|
||||
|
||||
if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_BEACON_PROTECTION))
|
||||
_conf.beacon_prot = 0;
|
||||
|
||||
_conf.secure_ltf =
|
||||
!!(hapd->iface->drv_flags2 & WPA_DRIVER_FLAGS2_SEC_LTF);
|
||||
_conf.secure_rtt =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue