Return-path: Received: from s1.neomailbox.net ([5.148.176.57]:32657 "EHLO s1.neomailbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750849AbbKNBaT (ORCPT ); Fri, 13 Nov 2015 20:30:19 -0500 From: Antonio Quartulli To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Antonio Quartulli , Antonio Quartulli Subject: [PATCH v2 1/2] nl80211: add flag to force passive scan on DFS channels Date: Sat, 14 Nov 2015 09:29:19 +0800 Message-Id: <1447464560-28104-1-git-send-email-antonio@meshcoding.com> (sfid-20151114_023048_554348_0CAA64C3) Sender: linux-wireless-owner@vger.kernel.org List-ID: In certain circumstances the user might not want to actively scan DFS channels, therefore add a nl80211 scan flag to instruct the underlying layers that DFS channels must be passively scanned. This flag can be specified upon scan trigger command. Signed-off-by: Antonio Quartulli --- v2: no change include/uapi/linux/nl80211.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 1f0b4cf..2083e53 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -4456,12 +4456,14 @@ enum nl80211_connect_failed_reason { * locally administered 1, multicast 0) is assumed. * This flag must not be requested when the feature isn't supported, check * the nl80211 feature flags for the device. + * @NL80211_SCAN_FLAG_PASSIVE_RADAR: force passive scan on DFS channels */ enum nl80211_scan_flags { NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0, NL80211_SCAN_FLAG_FLUSH = 1<<1, NL80211_SCAN_FLAG_AP = 1<<2, NL80211_SCAN_FLAG_RANDOM_ADDR = 1<<3, + NL80211_SCAN_FLAG_PASSIVE_RADAR = 1<<4, }; /** -- 2.6.3