mac80211_hwsim: Claim support for setting Beacon frame TX legacy rate
authorJouni Malinen <jouni@codeaurora.org>
Sat, 25 Apr 2020 15:57:13 +0000 (18:57 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 Apr 2020 14:18:04 +0000 (16:18 +0200)
mac80211 takes care of rate control for the Beacon frames, so all
mac80211_hwsim needs to do here is advertise support for this.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Link: https://lore.kernel.org/r/20200425155713.25687-5-jouni@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c

index bd1f4c249d11fbc09a039459588421259bb81a78..29084096044ec26f2a8ab646dfd930d379475c45 100644 (file)
@@ -3064,6 +3064,8 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
        wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_BEACON_PROTECTION);
        wiphy_ext_feature_set(hw->wiphy,
                              NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS);
+       wiphy_ext_feature_set(hw->wiphy,
+                             NL80211_EXT_FEATURE_BEACON_RATE_LEGACY);
 
        hw->wiphy->interface_modes = param->iftypes;