mac80211: continue using disabled channels while connected
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2013 18:52:03 +0000 (20:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2013 19:18:17 +0000 (21:18 +0200)
commitfb699ea28977136611359b9e2445aebfe0ffc9ef
tree825625c7353a7af610bd977564ca13457f4ce4b5
parentd9ba0cb875b36e7ec4417f113ba36ae6c69c8816
mac80211: continue using disabled channels while connected

In case the AP has different regulatory information than we do,
it can happen that we connect to an AP based on e.g. the world
roaming regulatory data, and then update our database with the
AP's country information disables the channel the AP is using.
If this happens on an HT AP, the bandwidth tracking code will
hit the WARN_ON() and disconnect. Since that's not very useful,
ignore the channel-disable flag in bandwidth tracking.

Cc: stable@vger.kernel.org
Reported-by: Chris Wright <chrisw@sous-sol.org>
Tested-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c