3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +01:00

device: set mfp and group mgmt cipher if AP supports it

This commit is contained in:
Rahul Rahul 2016-11-02 14:29:18 -07:00 committed by Denis Kenzior
parent b47c82102e
commit e6311557fe

View File

@ -673,6 +673,14 @@ void device_connect_network(struct device *device, struct network *network,
bss_info.pairwise_ciphers);
info.group_cipher = wiphy_select_cipher(wiphy,
bss_info.group_cipher);
info.group_management_cipher = wiphy_select_cipher(wiphy,
bss_info.group_management_cipher);
if (info.group_management_cipher == 0 && bss_info.mfpr) {
l_dbus_send(dbus, dbus_error_not_supported(message));
return;
} else if (info.group_management_cipher != 0)
info.mfpc = true;
/* RSN takes priority */
if (bss->rsne) {