aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2015-01-16 09:04:09 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-01-23 04:30:47 -0500
commit9c74893441d3cf4b258a82b19cbf6bfd2ed6e549 (patch)
tree4e2d61d97961013e4a8db0be6c5386b43f123476 /include/net/cfg80211.h
parentdb82d8a966ded064bd4cf0e1fcca13442f50d0ae (diff)
nl80211: add an attribute to allow delaying the first scheduled scan cycle
The userspace may want to delay the the first scheduled scan or net-detect cycle. Add an optional attribute to the scheduled scan configuration to pass the delay to be (optionally) used by the driver. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> [add the attribute to the policy to validate it] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 7b44ba0a7632..64e09e1e8099 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1493,6 +1493,10 @@ struct cfg80211_match_set {
1493 * @rcu_head: RCU callback used to free the struct 1493 * @rcu_head: RCU callback used to free the struct
1494 * @owner_nlportid: netlink portid of owner (if this should is a request 1494 * @owner_nlportid: netlink portid of owner (if this should is a request
1495 * owned by a particular socket) 1495 * owned by a particular socket)
1496 * @delay: delay in seconds to use before starting the first scan
1497 * cycle. The driver may ignore this parameter and start
1498 * immediately (or at any other time), if this feature is not
1499 * supported.
1496 */ 1500 */
1497struct cfg80211_sched_scan_request { 1501struct cfg80211_sched_scan_request {
1498 struct cfg80211_ssid *ssids; 1502 struct cfg80211_ssid *ssids;
@@ -1506,6 +1510,7 @@ struct cfg80211_sched_scan_request {
1506 struct cfg80211_match_set *match_sets; 1510 struct cfg80211_match_set *match_sets;
1507 int n_match_sets; 1511 int n_match_sets;
1508 s32 min_rssi_thold; 1512 s32 min_rssi_thold;
1513 u32 delay;
1509 1514
1510 u8 mac_addr[ETH_ALEN] __aligned(2); 1515 u8 mac_addr[ETH_ALEN] __aligned(2);
1511 u8 mac_addr_mask[ETH_ALEN] __aligned(2); 1516 u8 mac_addr_mask[ETH_ALEN] __aligned(2);