aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorSam Leffler <sleffler@chromium.org>2012-10-12 00:03:34 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-10-18 03:01:52 -0400
commit15d6030b4bec618742b8b9ccae9209c8f9e4a916 (patch)
tree97856b3f62e268880659757a85df59151958044d /include/net/cfg80211.h
parentb292219fa5061e2657ecf518b48426913d0ddae6 (diff)
cfg80211: add support for flushing old scan results
Add an NL80211_SCAN_FLAG_FLUSH flag that causes old bss cache entries to be flushed on scan completion. This is useful for collecting guaranteed fresh scan/survey result (e.g. on resume). For normal scan, flushing only happens on successful completion of a scan; i.e. it does not happen if the scan is aborted. For scheduled scan, previous scan results are flushed everytime when we get new scan results. This feature is enabled by default. Drivers can disable it by unsetting the NL80211_FEATURE_SCAN_FLUSH flag. Signed-off-by: Sam Leffler <sleffler@chromium.org> Tested-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> [invert polarity of feature flag to account for old kernels] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index d95da8f55f6e..aa0e4a12308c 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1005,6 +1005,7 @@ struct cfg80211_ssid {
1005 * @flags: bit field of flags controlling operation 1005 * @flags: bit field of flags controlling operation
1006 * @rates: bitmap of rates to advertise for each band 1006 * @rates: bitmap of rates to advertise for each band
1007 * @wiphy: the wiphy this was for 1007 * @wiphy: the wiphy this was for
1008 * @scan_start: time (in jiffies) when the scan started
1008 * @wdev: the wireless device to scan for 1009 * @wdev: the wireless device to scan for
1009 * @aborted: (internal) scan request was notified as aborted 1010 * @aborted: (internal) scan request was notified as aborted
1010 * @no_cck: used to send probe requests at non CCK rate in 2GHz band 1011 * @no_cck: used to send probe requests at non CCK rate in 2GHz band
@@ -1023,6 +1024,7 @@ struct cfg80211_scan_request {
1023 1024
1024 /* internal */ 1025 /* internal */
1025 struct wiphy *wiphy; 1026 struct wiphy *wiphy;
1027 unsigned long scan_start;
1026 bool aborted; 1028 bool aborted;
1027 bool no_cck; 1029 bool no_cck;
1028 1030
@@ -1074,6 +1076,7 @@ struct cfg80211_sched_scan_request {
1074 /* internal */ 1076 /* internal */
1075 struct wiphy *wiphy; 1077 struct wiphy *wiphy;
1076 struct net_device *dev; 1078 struct net_device *dev;
1079 unsigned long scan_start;
1077 1080
1078 /* keep last */ 1081 /* keep last */
1079 struct ieee80211_channel *channels[0]; 1082 struct ieee80211_channel *channels[0];