3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-20 19:12:33 +01:00

network: update network_bss_select for mfp

Update network_bss_select for MFP.  Particularly the scenario when all
BSSes inside the bss_list have MFPR set, but we're not BIP capable.
This commit is contained in:
Rahul Rahul 2016-11-02 14:23:22 -07:00 committed by Denis Kenzior
parent 17527d4570
commit b47c82102e

View File

@ -492,6 +492,10 @@ struct scan_bss *network_bss_select(struct network *network)
memset(&rsn, 0, sizeof(rsn));
scan_bss_get_rsn_info(bss, &rsn);
if (rsn.mfpr && !wiphy_select_cipher(wiphy,
rsn.group_management_cipher))
continue;
if (wiphy_select_cipher(wiphy, rsn.pairwise_ciphers) &&
wiphy_select_cipher(wiphy,
rsn.group_cipher))