wifi: mac80211: prohibit DEAUTH_NEED_MGD_TX_PREP in MLO
authorJohannes Berg <johannes.berg@intel.com>
Tue, 12 Jul 2022 11:35:54 +0000 (13:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:21 +0000 (11:43 +0200)
For now, prohibit DEAUTH_NEED_MGD_TX_PREP since we can't
really transmit this on a specific link yet as we don't
know which links are active.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c

index 26bb30606282243b3dc84075e0fb87c0220b5ea7..5b1c47ed0cc08a260713977df15db1042ed3db1f 100644 (file)
@@ -1001,6 +1001,9 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
 
                if (WARN_ON(!ieee80211_hw_check(hw, AP_LINK_PS)))
                        return -EINVAL;
+
+               if (WARN_ON(ieee80211_hw_check(hw, DEAUTH_NEED_MGD_TX_PREP)))
+                       return -EINVAL;
        }
 
 #ifdef CONFIG_PM