]> Pileus Git - ~andy/linux/commit
mac80211: ignore HT primary channel while connected
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2013 09:23:06 +0000 (11:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2013 19:18:10 +0000 (21:18 +0200)
commit5cdaed1e878d723d56d04ae0be1738124acf9f46
treee198fa62f954cf565dec6ee2fa63d0c742521c2e
parentcb236d2d713cff83d024a82b836757d9e2b50715
mac80211: ignore HT primary channel while connected

While we're connected, the AP shouldn't change the primary channel
in the HT information. We checked this, and dropped the connection
if it did change it.

Unfortunately, this is causing problems on some APs, e.g. on the
Netgear WRT610NL: the beacons seem to always contain a bad channel
and if we made a connection using a probe response (correct data)
we drop the connection immediately and can basically not connect
properly at all.

Work around this by ignoring the HT primary channel information in
beacons if we're already connected.

Also print out more verbose messages in the other situations to
help diagnose similar bugs quicker in the future.

Cc: stable@vger.kernel.org [3.10]
Acked-by: Andy Isaacson <adi@hexapodia.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c