mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 14:40:12 -04:00
wifi: mac80211_hwsim: add 320 MHz to hwsim channel widths
Setting a channel with 320 MHz channel width over hwsim results in an array-index-out-of-bounds error. Fix it by adding 320 MHz to hwsim supported channel widths. Signed-off-by: Avraham Stern <avraham.stern@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240605135233.a766c1465566.Ib859c7233511b61b8a34022cfceeb4971c739d80@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
f737b70434
commit
a7bb6b5d36
@@ -2361,6 +2361,7 @@ static const char * const hwsim_chanwidths[] = {
|
||||
[NL80211_CHAN_WIDTH_4] = "4MHz",
|
||||
[NL80211_CHAN_WIDTH_8] = "8MHz",
|
||||
[NL80211_CHAN_WIDTH_16] = "16MHz",
|
||||
[NL80211_CHAN_WIDTH_320] = "eht320",
|
||||
};
|
||||
|
||||
static int mac80211_hwsim_config(struct ieee80211_hw *hw, u32 changed)
|
||||
|
||||
Reference in New Issue
Block a user