nl/cfg80211: force scan using an AP vif if requested
authorAntonio Quartulli <ordex@autistici.org>
Tue, 16 Oct 2012 06:39:22 +0000 (08:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 18 Oct 2012 15:21:22 +0000 (17:21 +0200)
commit5c95b940bd97e744267249e3b0780e6ef04b029c
treea781656df4682ebd39669fea9ea11d28adef55e2
parent4ee3e063f10acf6fd17c0ee6f1d0a95726e74cb2
nl/cfg80211: force scan using an AP vif if requested

If the user wants to scan using a vif configured as AP,
cfg80211 must give him a chance to do it, even if this
will disrupt the stations performance due to off-channel
scanning. To do so, this patch adds a 'force' flag to the
SCAN_TRIGGER command which tells cfg80211 to perform the
scanning operation even if the vif is an AP and the
beaconing has already started.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/mac80211/cfg.c
net/mac80211/main.c