]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: get correct default channel width for S1G
authorThomas Pedersen <thomas@adapt-ip.com>
Tue, 22 Sep 2020 02:28:02 +0000 (19:28 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Sep 2020 11:53:05 +0000 (13:53 +0200)
commit5e48077498918e9e42f689df5f14dbdc3f1b8cc2
tree5402af282b2f4da8f379602dc532fbf6dbf31e67
parent211f20415995f0c40aa91a0856b5f442154d56b2
mac80211: get correct default channel width for S1G

When deleting a channel context, mac80211 would assing
NL80211_CHAN_WIDTH_20_NOHT as the default channel width.
This is wrong in S1G however, so instead get the allowed
channel width for a given channel.

Fixes eg. configuring strange (20Mhz) width during a scan
on the S1G band.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200922022818.15855-2-thomas@adapt-ip.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c