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

p2p: limit ciphers to CCMP

The limitation of cipher selection in ap.c was done so to allow p2p to
work. Now with the ability to specify ciphers in the AP config put the
burden on p2p to limit ciphers as it needs which is only CCMP according
to the spec.
This commit is contained in:
James Prestwood 2022-11-02 15:51:09 -07:00 committed by Denis Kenzior
parent 262685e818
commit 7d4d868236

View File

@ -1273,6 +1273,9 @@ static void p2p_group_start(struct p2p_device *dev)
/* Enable netconfig, set maximum usable DHCP lease time */
l_settings_set_uint(config, "IPv4", "LeaseTime", 0x7fffffff);
l_settings_set_string(config, "Security", "PairwiseCiphers", "CCMP");
l_settings_set_string(config, "Security", "GroupCipher", "CCMP");
dev->capability.group_caps |= P2P_GROUP_CAP_GO;
dev->capability.group_caps |= P2P_GROUP_CAP_GROUP_FORMATION;
dev->capability.group_caps |= P2P_GROUP_CAP_IP_ALLOCATION;