]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix channel selection bug
authorJohannes Berg <johannes.berg@intel.com>
Sat, 9 Feb 2013 20:46:34 +0000 (21:46 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2013 10:12:26 +0000 (11:12 +0100)
commit6e5cbf6230b8aad42eeaa71731a3dfce09583e7f
treee76144304e1cbe85580626355a16e1cf2dcb91d0
parent3cfc75a122f8d084a6f363f5665e9caa61aaf27c
mac80211: fix channel selection bug

When trying to connect to an AP that advertises HT but not
VHT, the mac80211 code erroneously uses the configuration
from the AP as is instead of checking it against regulatory
and local capabilities. This can lead to using an invalid
or even inexistent channel (like 11/HT40+).

Additionally, the return flags from downgrading must be
ORed together, to collect them from all of the downgrades.
Also clarify the message.

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