diff mbox

nl80211: introduce NL80211_SCAN_FLAG_DISCOVERY_MODE

Message ID 1382889282-12880-1-git-send-email-qca_vkondrat@qca.qualcomm.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Vladimir Kondratiev Oct. 27, 2013, 3:54 p.m. UTC
for the DMG (60GHz) networks, there is new scan parameter added in the 802.11 spec -
DiscoveryMode.  This parameter defines whether station performing active scan shall
generate special form of DMG beacons. In particular, this flag used in the P2P
discovery.

Introduce flag to support this feature.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
---
 include/uapi/linux/nl80211.h | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Johannes Berg Oct. 28, 2013, 2:37 p.m. UTC | #1
On Sun, 2013-10-27 at 17:54 +0200, Vladimir Kondratiev wrote:
> for the DMG (60GHz) networks, there is new scan parameter added in the 802.11 spec -
> DiscoveryMode.  This parameter defines whether station performing active scan shall
> generate special form of DMG beacons. In particular, this flag used in the P2P
> discovery.

Max 72 chars per line please.

> + * @NL80211_SCAN_FLAG_DISCOVERY_MODE: scan to use discovery mode, as in

"scan to use" - did you mean "scan using"?

Also what about a feature flag? Though I suppose this should be
supported by all 60GHz devices (and only those)?

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Johannes Berg Oct. 28, 2013, 3 p.m. UTC | #2
Ok, so you can't even get your own email address right - I'll ignore you
for a few weeks until you maybe get it right.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index fde2c02..469ed2b 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -3808,11 +3808,18 @@  enum nl80211_connect_failed_reason {
  *	dangerous because will destroy stations performance as a lot of frames
  *	will be lost while scanning off-channel, therefore it must be used only
  *	when really needed
+ * @NL80211_SCAN_FLAG_DISCOVERY_MODE: scan to use discovery mode, as in
+ *	802.11 spec for DMG (60GHz) networks in clause:
+ *	10.1.3.4 DMG Beacon generation before network initialization
+ *	If set, station should transmit special form of DMG beacons when
+ *	performing active scan. In 60GHz networks, this feature used
+ *	in the P2P discovery procedure.
  */
 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_DISCOVERY_MODE		= 1<<3,
 };
 
 /**