nl80211: Fix default group key management index configuration
The correct nl80211 flag for group key management cipher was set only for BIP (AES-CMAC-128). The same flag needs to be used with the newer ciphers BIP-CMAC-256, BIP-GMAC-128, and BIP-GMAC-256. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
b5f045deee
commit
86f9b1c706
1 changed files with 4 additions and 1 deletions
|
@ -2493,7 +2493,10 @@ static int wpa_driver_nl80211_set_key(const char *ifname, struct i802_bss *bss,
|
|||
msg = nl80211_ifindex_msg(drv, ifindex, 0, NL80211_CMD_SET_KEY);
|
||||
if (!msg ||
|
||||
nla_put_u8(msg, NL80211_ATTR_KEY_IDX, key_idx) ||
|
||||
nla_put_flag(msg, alg == WPA_ALG_IGTK ?
|
||||
nla_put_flag(msg, (alg == WPA_ALG_IGTK ||
|
||||
alg == WPA_ALG_BIP_GMAC_128 ||
|
||||
alg == WPA_ALG_BIP_GMAC_256 ||
|
||||
alg == WPA_ALG_BIP_CMAC_256) ?
|
||||
NL80211_ATTR_KEY_DEFAULT_MGMT :
|
||||
NL80211_ATTR_KEY_DEFAULT))
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in a new issue