Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: cfg80211: add support for key configuration before association

Currently, cfg80211 does not allow key installation, removal, or
modification prior to association in non-AP STA mode. However,
Enhanced Privacy Protection Key Exchange (EPPKE) requires encryption
keys to be managed before association.

Add support to manage keys before association in non-AP STA mode when
the NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION feature flag is set.
If the flag is not set, reject the encryption keys.

Signed-off-by: Kavita Kavita <kavita.kavita@oss.qualcomm.com>
Link: https://patch.msgid.link/20260114111900.2196941-4-kavita.kavita@oss.qualcomm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Kavita Kavita and committed by
Johannes Berg
dc54de8d 9d17a040

+3 -1
+3 -1
net/wireless/nl80211.c
··· 1678 1678 return -ENOLINK; 1679 1679 case NL80211_IFTYPE_STATION: 1680 1680 case NL80211_IFTYPE_P2P_CLIENT: 1681 - if (wdev->connected) 1681 + if (wdev->connected || 1682 + (wiphy_ext_feature_isset(wdev->wiphy, 1683 + NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION))) 1682 1684 return 0; 1683 1685 return -ENOLINK; 1684 1686 case NL80211_IFTYPE_NAN: