]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cfg80211: Fix 160 MHz channels with 80+80 and 160 MHz drivers
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 11 Dec 2014 21:48:55 +0000 (23:48 +0200)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 12:13:39 +0000 (14:13 +0200)
commit4fd4c6b42691a657dd28b02cc7b66f01e87cb492
treebe85671d01e564b25ce2817f5539b60efe3feea8
parent7ad45878fff07f03049e1c2cd11eca03a27122f7
cfg80211: Fix 160 MHz channels with 80+80 and 160 MHz drivers

commit 08f6f147773b23b765b94633a8eaa82e7defcf4c upstream.

The VHT supported channel width field is a two bit integer, not a
bitfield. cfg80211_chandef_usable() was interpreting it incorrectly and
ended up rejecting 160 MHz channel width if the driver indicated support
for both 160 and 80+80 MHz channels.

Cc: stable@vger.kernel.org (3.16+)
Fixes: 3d9d1d6656a73 ("nl80211/cfg80211: support VHT channel configuration")
       (however, no real drivers had 160 MHz support it until 3.16)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/wireless/chan.c