]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: fix logic error in ibss channel type check
authorFelix Fietkau <nbd@openwrt.org>
Mon, 16 Apr 2012 20:10:42 +0000 (22:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 17:16:37 +0000 (10:16 -0700)
commit1384df42761379a44e3073e4d18defbf1ad7053c
treeb41a508e798c4ad1c15940fce87fbfdd661c878a
parent98ce20a3fda1422f8ba75a479f50e64b7b9efe04
mac80211: fix logic error in ibss channel type check

commit 6741e7f048dacc92e37c5d724ff5c64e45f6c2c9 upstream.

The broken check leads to rate control attempting to use HT40 while
the driver is configured for HT20. This leads to interesting hardware
issues.

HT40 can only be used if the channel type is either HT40- or HT40+
and if the channel type of the cell matches the local type.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/ibss.c