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)
commit0834ae3c3af44480834cce128b6fef83006e537f
treef5ace0c4cfe57da6d5f8b14af33b84ddcf23dd8c
parentdda444d52496aa8ddc501561bca580f1374a96a9
mac80211: check csa wiphy flag in ibss before switching

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