mac80211: check csa wiphy flag in ibss before switching
authorSimon Wunderlich <sw@simonwunderlich.de>
Tue, 26 Nov 2013 15:45:18 +0000 (16:45 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Dec 2013 10:54:13 +0000 (11:54 +0100)
When external CSA IEs are received (beacons or action messages), a
channel switch is triggered as well. This should only be allowed on
devices which actually support channel switches, otherwise disconnect.
(For the corresponding userspace invocation, the wiphy flag is checked
in nl80211).

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c

Simple merge