mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
wiphy: Support more group management cipher suites
This commit is contained in:
parent
d1acc80331
commit
7584b38562
21
src/wiphy.c
21
src/wiphy.c
@ -165,6 +165,15 @@ enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy, uint16_t mask)
|
||||
if (mask & IE_RSN_CIPHER_SUITE_TKIP)
|
||||
return IE_RSN_CIPHER_SUITE_TKIP;
|
||||
|
||||
if (mask & IE_RSN_CIPHER_SUITE_BIP_GMAC_256)
|
||||
return IE_RSN_CIPHER_SUITE_BIP_GMAC_256;
|
||||
|
||||
if (mask & IE_RSN_CIPHER_SUITE_BIP_CMAC_256)
|
||||
return IE_RSN_CIPHER_SUITE_BIP_CMAC_256;
|
||||
|
||||
if (mask & IE_RSN_CIPHER_SUITE_BIP_GMAC)
|
||||
return IE_RSN_CIPHER_SUITE_BIP_GMAC;
|
||||
|
||||
if (mask & IE_RSN_CIPHER_SUITE_BIP_CMAC)
|
||||
return IE_RSN_CIPHER_SUITE_BIP_CMAC;
|
||||
|
||||
@ -1253,6 +1262,18 @@ static void parse_supported_ciphers(struct wiphy *wiphy, const void *data,
|
||||
wiphy->supported_ciphers |=
|
||||
IE_RSN_CIPHER_SUITE_CCMP_256;
|
||||
break;
|
||||
case CRYPTO_CIPHER_BIP_GMAC:
|
||||
wiphy->supported_ciphers |=
|
||||
IE_RSN_CIPHER_SUITE_BIP_GMAC;
|
||||
break;
|
||||
case CRYPTO_CIPHER_BIP_GMAC_256:
|
||||
wiphy->supported_ciphers |=
|
||||
IE_RSN_CIPHER_SUITE_BIP_GMAC_256;
|
||||
break;
|
||||
case CRYPTO_CIPHER_BIP_CMAC_256:
|
||||
wiphy->supported_ciphers |=
|
||||
IE_RSN_CIPHER_SUITE_BIP_CMAC_256;
|
||||
break;
|
||||
default: /* TODO: Support other ciphers */
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user