commit 5ca4fa9b9e12eb6f8fd3f16fc861bcfea96cb4ea parent 7f7a5c861d55ef66e71906f34131c2c644c91d0f Author: James Prestwood <james.prestwood@linux.intel.com> Date: Wed, 22 May 2019 15:24:02 -0700 wiphy: allow both FILS-FT AKMs to be chosen Diffstat:
| M | src/wiphy.c | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/wiphy.c b/src/wiphy.c @@ -117,6 +117,16 @@ enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy, if (security == SECURITY_8021X) { if (wiphy_has_feature(wiphy, NL80211_EXT_FEATURE_FILS_STA) && fils_capable_hint) { + if ((info.akm_suites & + IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384) && + bss->rsne && bss->mde_present) + return IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384; + + if ((info.akm_suites & + IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256) && + bss->rsne && bss->mde_present) + return IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256; + if (info.akm_suites & IE_RSN_AKM_SUITE_FILS_SHA384) return IE_RSN_AKM_SUITE_FILS_SHA384;