]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mac80211: Advertise EPPKE support based on driver capabilities
authorKavita Kavita <kavita.kavita@oss.qualcomm.com>
Thu, 26 Feb 2026 18:55:50 +0000 (00:25 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Mar 2026 08:53:22 +0000 (09:53 +0100)
Advertise support for Enhanced Privacy Protection Key Exchange (EPPKE)
authentication protocol in mac80211 when the driver supports
(Re)Association frame encryption. Since EPPKE mandates (Re)Association
frame encryption.

Signed-off-by: Kavita Kavita <kavita.kavita@oss.qualcomm.com>
Link: https://patch.msgid.link/20260226185553.1516290-3-kavita.kavita@oss.qualcomm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c

index 616f86b1a7e4b5cc2f6a9b6fa8d8b10d0c7f9792..246256279249c554f235b4408786fc0adb7da234 100644 (file)
@@ -1597,6 +1597,15 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
                local->sband_allocated |= BIT(band);
        }
 
+       /*
+        * mac80211 supports EPPKE, if the driver supports (Re)Association
+        * frame encryption
+        */
+       if (wiphy_ext_feature_isset(local->hw.wiphy,
+                                   NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION))
+               wiphy_ext_feature_set(local->hw.wiphy,
+                                     NL80211_EXT_FEATURE_EPPKE);
+
        result = wiphy_register(local->hw.wiphy);
        if (result < 0)
                goto fail_wiphy_register;