]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: fix RX chains configuration
authorJohannes Berg <johannes.berg@intel.com>
Thu, 22 Nov 2012 13:17:23 +0000 (14:17 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 23 Nov 2012 07:43:26 +0000 (08:43 +0100)
commit76c5fa0fb99e694e123f05f62382b717b857b6a9
tree654a89d0e8aad89fde78986d495b3976a8e97dc3
parent605f1a5b5e87cf4005b56b77083ff473c846431a
mac80211: fix RX chains configuration

If the driver doesn't support 40 MHz channels, then
mac80211 erroneously sets number of RX chains to one
although the number of chains is independent of the
support for 40 MHz channels.

Fix this by checking the 40 MHz support only for the
code that sets the 40 MHz channel not the complete
HT code block.

This also means the HT20 channel type will always be
set in the changed code block so there's no need to
set it in case we override the AP due to invalid IEs
in the probe response/beacon.

The indentation is a bit quirky, but I'm rewriting
this code for VHT support so this will change again
very soon.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c