diff mbox

[v2,2/5] cfg80211: add scan flag to indicate its priority

Message ID 1348772354-15936-3-git-send-email-bzhao@marvell.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Bing Zhao Sept. 27, 2012, 6:59 p.m. UTC
From: Sam Leffler <sleffler@chromium.org>

Add NL80211_SCAN_FLAG_LOW_PRIORITY flag support. It tells drivers
that this is a low priority scan request, so that they can take
necessary action.

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>
---
 include/linux/nl80211.h |    3 +++
 include/net/cfg80211.h  |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 109f75d..e512baf 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -3079,8 +3079,11 @@  enum nl80211_connect_failed_reason {
  * Scan request control flags are used to control the handling
  * of NL80211_CMD_TRIGGER_SCAN and NL80211_CMD_START_SCHED_SCAN
  * requests.
+ *
+ * @NL80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority
  */
 enum nl80211_scan_flags {
+	NL80211_SCAN_FLAG_LOW_PRIORITY			= 1<<0,
 };
 
 #endif /* __LINUX_NL80211_H */
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 2c0c14a..ed659db 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -993,8 +993,11 @@  struct cfg80211_ssid {
 
 /**
  * enum cfg80211_scan_flags -  scan request control flags
+ *
+ * @CFG80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority
  */
 enum cfg80211_scan_flags {
+	CFG80211_SCAN_FLAG_LOW_PRIORITY	= NL80211_SCAN_FLAG_LOW_PRIORITY,
 };
 
 /**