mac80211: ignore (E)CSA in probe response frames
authorJohannes Berg <johannes.berg@intel.com>
Fri, 23 Aug 2013 13:48:48 +0000 (15:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:21:44 +0000 (17:21 -0700)
commitb8e8ff4906a7c2fd69121bbb3c82f1775d6c6c63
treed6b107aacc726993fb275e62ce218a5e93b7ebaa
parentaaa79361dbf324fa25a277061be24e2769b5af89
mac80211: ignore (E)CSA in probe response frames

commit d70b7616d9080ec9f868fbd31db5fd4341435d61 upstream.

Seth reports that some APs, notably the Netgear WNDAP360, send
invalid ECSA IEs in probe response frames with the operating
class and channel number both set to zero, even when no channel
switch is being done. As a result, any scan while connected to
such an AP results in the connection being dropped.

Fix this by ignoring any channel switch announcment in probe
response frames entirely, since we're connected to the AP we
will be receiving a beacon (and maybe even an action frame) if
a channel switch is done, which is sufficient.

Reported-by: Seth Forshee <seth.forshee@canonical.com>
Tested-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/mlme.c