nl80211: Beacon protection capability flag and default key type
Add a new capability flag based on the nl80211 feature advertisement and start using the new default key type for Beacon protection. This enables AP mode functionality to allow Beacon protection to be enabled. This is also enabling the previously added ap_pmf_beacon_protection_* hwsim test cases. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
2e34f6a53f
commit
f1d3856090
4 changed files with 11 additions and 2 deletions
|
@ -3189,8 +3189,10 @@ static int wpa_driver_nl80211_set_key(struct i802_bss *bss,
|
|||
alg == WPA_ALG_BIP_GMAC_128 ||
|
||||
alg == WPA_ALG_BIP_GMAC_256 ||
|
||||
alg == WPA_ALG_BIP_CMAC_256) ?
|
||||
NL80211_KEY_DEFAULT_MGMT :
|
||||
NL80211_KEY_DEFAULT))
|
||||
(key_idx == 6 || key_idx == 7 ?
|
||||
NL80211_KEY_DEFAULT_BEACON :
|
||||
NL80211_KEY_DEFAULT_MGMT) :
|
||||
NL80211_KEY_DEFAULT))
|
||||
goto fail;
|
||||
if (addr && is_broadcast_ether_addr(addr)) {
|
||||
struct nlattr *types;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue