3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

ap: Limit pairwise and group ciphers to CCMP|TKIP

This commit is contained in:
Denis Kenzior 2022-10-21 15:50:26 -05:00
parent 60bd973441
commit 75ec7d8076

View File

@ -3303,8 +3303,11 @@ struct ap_state *ap_start(struct netdev *netdev, struct l_settings *config,
err = -EINVAL; err = -EINVAL;
/* TODO: Add all ciphers supported by wiphy */ /* TODO: Add all ciphers supported by wiphy */
ap->ciphers = wiphy_select_cipher(wiphy, 0xffff); ap->ciphers = wiphy_select_cipher(wiphy, IE_RSN_CIPHER_SUITE_TKIP |
ap->group_cipher = wiphy_select_cipher(wiphy, 0xffff); IE_RSN_CIPHER_SUITE_CCMP);
ap->group_cipher = wiphy_select_cipher(wiphy,
IE_RSN_CIPHER_SUITE_TKIP |
IE_RSN_CIPHER_SUITE_CCMP);
ap->beacon_interval = 100; ap->beacon_interval = 100;
ap->networks = l_queue_new(); ap->networks = l_queue_new();