diff options
| author | Kavita Kavita <kavita.kavita@oss.qualcomm.com> | 2026-02-26 21:55:50 +0300 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-03-02 11:53:22 +0300 |
| commit | 0e88342dbd0ee8088ca2d2ae8af319d3c2b627a8 (patch) | |
| tree | 08a9a844a69be5997e53de15ab12298a41bae21f /net | |
| parent | ae61f43df1a99734ef55d9b2fe54c1feda9bac98 (diff) | |
| download | linux-0e88342dbd0ee8088ca2d2ae8af319d3c2b627a8.tar.xz | |
wifi: mac80211: Advertise EPPKE support based on driver capabilities
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>
Diffstat (limited to 'net')
| -rw-r--r-- | net/mac80211/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 616f86b1a7e4..246256279249 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -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; |
