aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGravatar Alexander Wetzel <alexander@wetzel-home.de> 2019-04-23 22:47:11 +0200
committerGravatar Johannes Berg <johannes.berg@intel.com> 2019-04-26 13:02:11 +0200
commitcfe7007a9b4cea9c4a0f7d4192c776c62f31869e (patch)
tree169bfa776fb972ab5fe79f852b9457a1c7aebeab /drivers
parentnl80211: do a struct assignment to radar_chandef instead of memcpy() (diff)
downloadlinux-cfe7007a9b4cea9c4a0f7d4192c776c62f31869e.tar.gz
linux-cfe7007a9b4cea9c4a0f7d4192c776c62f31869e.tar.bz2
linux-cfe7007a9b4cea9c4a0f7d4192c776c62f31869e.zip
mac80211_hwsim: Extended Key ID support
Allow Extended Key ID to be used with hwsim. Hwsim can only communicate with other hwsim cards, allowing it to bypass creation of A-MPDUs in the first place. Mixing keyIDs in an A-MPDU is therefore impossible and can never cause interoperability issues with other cards. Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de> [reword comment slightly] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 9df5b95c7390..8ed09429826b 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -2799,6 +2799,12 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
ieee80211_hw_set(hw, SIGNAL_DBM);
ieee80211_hw_set(hw, SUPPORTS_PS);
ieee80211_hw_set(hw, TDLS_WIDER_BW);
+
+ /* We only have SW crypto and only implement the A-MPDU API
+ * (but don't really build A-MPDUs) so can have extended key
+ * support
+ */
+ ieee80211_hw_set(hw, EXT_KEY_ID_NATIVE);
if (rctbl)
ieee80211_hw_set(hw, SUPPORTS_RC_TABLE);
ieee80211_hw_set(hw, SUPPORTS_MULTI_BSSID);