]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't validate unchanged AP bandwidth while tracking
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2014 19:34:34 +0000 (20:34 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 24 Feb 2014 09:16:40 +0000 (10:16 +0100)
commit3eb4e02cb9287e0a17cf95e2434352651a7b2d73
tree3d908767b7d48af80be03f99557ed0cfb8a8335c
parent5752397112c8b17f75d4a2010cafde8276f1d3dc
mac80211: don't validate unchanged AP bandwidth while tracking

The MLME code in mac80211 must track whether or not the AP changed
bandwidth, but if there's no change while tracking it shouldn't do
anything, otherwise regulatory updates can make it impossible to
connect to certain APs if the regulatory database doesn't match the
information from the AP. See the precise scenario described in the
code.

This still leaves some possible problems with CSA or if the AP
actually changed bandwidth, but those cases are less common and
won't completely prevent using it.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=70881

Cc: stable@vger.kernel.org
Reported-and-tested-by: Nate Carlson <kernel@natecarlson.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c