wifi: mac80211_hwsim: enable strict mode
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Feb 2025 09:39:17 +0000 (11:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Feb 2025 10:59:07 +0000 (11:59 +0100)
Since we use hwsim for testing e.g. the hostapd implementation,
enable strict mode to catch errors that would otherwise not be
caught.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250205110958.85bee694f09c.I61ec37d20fe97699d47fce252dc4ae2e4475fc51@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim.c

index cf6a331d404271141f3e9a736feba1ad8cfead5a..d0d9dab7f11fab9eaf337aca35c780cef726a7d1 100644 (file)
@@ -5345,6 +5345,7 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
        ieee80211_hw_set(hw, REPORTS_TX_ACK_STATUS);
        ieee80211_hw_set(hw, TDLS_WIDER_BW);
        ieee80211_hw_set(hw, SUPPORTS_MULTI_BSSID);
+       ieee80211_hw_set(hw, STRICT);
 
        if (param->mlo) {
                hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;