mac80211: add extended channel switching capability if the driver supports CSA
authorLuciano Coelho <luciano.coelho@intel.com>
Wed, 8 Oct 2014 06:48:36 +0000 (09:48 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 9 Oct 2014 09:30:08 +0000 (11:30 +0200)
commite9a21949b79414dda42a017855b288901c07e613
tree0c8b19de0f1b906c4a7e0072b056c454a2238b2f
parent2ba45384e5426b9a4aeb77656dce0bf3250ce54e
mac80211: add extended channel switching capability if the driver supports CSA

The Extended Channel Switching capability bit in the extended
capabilities element must be set if the driver supports CSA on
non-beaconing interfaces.

Since this capability needs to be set during driver registration, the
extended_capabiliities global variable needs to be moved to the local
structure so that it can be modified.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h
net/mac80211/ieee80211_i.h
net/mac80211/main.c