mac80211_hwsim: check TX and STA bandwidth
authorJohannes Berg <johannes.berg@intel.com>
Mon, 14 Feb 2022 16:29:48 +0000 (17:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Feb 2022 14:41:21 +0000 (15:41 +0100)
commit585625c955b1dcdda55036bee6fbda5bc5d97bd2
treee17c8f786d15fde587a3dca2cdc1ff5b8730d394
parenta3a20feb32a1c281ccac80dcf615480d3a79a6bf
mac80211_hwsim: check TX and STA bandwidth

Add checks to hwsim to validate that neither TX nor any
station's configured bandwidth can exceed the channel
(context) configuration previously requested.

Link: https://lore.kernel.org/r/20220214173004.9fd154d2c3c2.Ia0cd152357a373149bab017d479ab7d5ded289c0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c