commit 75ec7d807663bc3a5adf6d8235d65188c2a11a1b
parent 60bd973441fffe3bf222cdf6e9b4e9a780569836
Author: Denis Kenzior <denkenz@gmail.com>
Date: Fri, 21 Oct 2022 15:50:26 -0500
ap: Limit pairwise and group ciphers to CCMP|TKIP
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/ap.c b/src/ap.c
@@ -3303,8 +3303,11 @@ struct ap_state *ap_start(struct netdev *netdev, struct l_settings *config,
err = -EINVAL;
/* TODO: Add all ciphers supported by wiphy */
- ap->ciphers = wiphy_select_cipher(wiphy, 0xffff);
- ap->group_cipher = wiphy_select_cipher(wiphy, 0xffff);
+ ap->ciphers = wiphy_select_cipher(wiphy, IE_RSN_CIPHER_SUITE_TKIP |
+ 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->networks = l_queue_new();