mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 06:02:39 +01:00
device: set mfp and group mgmt cipher if AP supports it
This commit is contained in:
parent
b47c82102e
commit
e6311557fe
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user