Return-path: Received: from na3sys009aog102.obsmtp.com ([74.125.149.69]:39218 "EHLO na3sys009aog102.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923Ab2I0THR (ORCPT ); Thu, 27 Sep 2012 15:07:17 -0400 From: Bing Zhao To: linux-wireless@vger.kernel.org Cc: Johannes Berg , "John W. Linville" , Sam Leffler , Amitkumar Karwar , Avinash Patil , Nishant Sarmukadam , Stone Piao , Frank Huang , Bing Zhao Subject: [PATCH v2 2/5] cfg80211: add scan flag to indicate its priority Date: Thu, 27 Sep 2012 11:59:11 -0700 Message-Id: <1348772354-15936-3-git-send-email-bzhao@marvell.com> (sfid-20120927_210723_153083_785E2C4C) In-Reply-To: <1348772354-15936-1-git-send-email-bzhao@marvell.com> References: <1348772354-15936-1-git-send-email-bzhao@marvell.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Sam Leffler 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 Tested-by: Amitkumar Karwar Signed-off-by: Amitkumar Karwar Signed-off-by: Bing Zhao --- include/linux/nl80211.h | 3 +++ include/net/cfg80211.h | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) 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, }; /** -- 1.7.0.2