]> git.baikalelectronics.ru Git - kernel.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)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Apr 2012 18:17:04 +0000 (14:17 -0400)
commite61a44b6f0b05ae9d57807ffb0fda1e254acee87
tree23e0385e77d8b773a19c4a23677f34945a6da1e2
parentaca8f0f7ece70351d859556a06551c3a0f66c1ce
mac80211: fix logic error in ibss channel type check

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>
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ibss.c