Skip to content

Commit cfe7007

Browse files
alexw65500jmberg-intel
authored andcommitted
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 <[email protected]> [reword comment slightly] Signed-off-by: Johannes Berg <[email protected]>
1 parent a680fe4 commit cfe7007

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/wireless/mac80211_hwsim.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,6 +2799,12 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
27992799
ieee80211_hw_set(hw, SIGNAL_DBM);
28002800
ieee80211_hw_set(hw, SUPPORTS_PS);
28012801
ieee80211_hw_set(hw, TDLS_WIDER_BW);
2802+
2803+
/* We only have SW crypto and only implement the A-MPDU API
2804+
* (but don't really build A-MPDUs) so can have extended key
2805+
* support
2806+
*/
2807+
ieee80211_hw_set(hw, EXT_KEY_ID_NATIVE);
28022808
if (rctbl)
28032809
ieee80211_hw_set(hw, SUPPORTS_RC_TABLE);
28042810
ieee80211_hw_set(hw, SUPPORTS_MULTI_BSSID);

0 commit comments

Comments
 (0)