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:
parent
b47c82102e
commit
e6311557fe
@ -673,6 +673,14 @@ void device_connect_network(struct device *device, struct network *network,
|
|||||||
bss_info.pairwise_ciphers);
|
bss_info.pairwise_ciphers);
|
||||||
info.group_cipher = wiphy_select_cipher(wiphy,
|
info.group_cipher = wiphy_select_cipher(wiphy,
|
||||||
bss_info.group_cipher);
|
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 */
|
/* RSN takes priority */
|
||||||
if (bss->rsne) {
|
if (bss->rsne) {
|
||||||
|
Loading…
Reference in New Issue
Block a user