[PATCH 3/7] wiphy: Fix use of wiphy_has_feature

Denis Kenzior
2024-08-05T14:07:26Z

Features with the _EXT_ in the name must be queried using the
wiphy_has_ext_feature method.

Fixes: bc7b12d1a4a7 ("wiphy: handle FILS AKMs")
---
src/wiphy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wiphy.c b/src/wiphy.c
index fb36ebb2b3c6..6b755ff8201d 100644
--- a/src/wiphy.c
+++ b/src/wiphy.c
@@ -276,7 +276,7 @@ enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy,
* for fast transitions. Otherwise use SHA256 version if present.
*/
if (security == SECURITY_8021X) {
- if (wiphy_has_feature(wiphy, NL80211_EXT_FEATURE_FILS_STA) &&
+ if (wiphy_has_ext_feature(wiphy, NL80211_EXT_FEATURE_FILS_STA) &&
fils_capable_hint) {
if ((info->akm_suites &
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384) &&
--
2.45.2