History

nl80211: add scan features for improved scan privacy

Add the scan flags for randomized SN and minimized probe request content for improved scan privacy.

Johannes Berg committed 8 years ago

Commit 2e076f11 parent 45ad6832 files · +22 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+15−0
@@ -5133,6 +5133,11 @@ enum nl80211_feature_flags { · 5132 unmodified lines
51335133 * support to nl80211.
51345134 * @NL80211_EXT_FEATURE_TXQS: Driver supports FQ-CoDel-enabled intermediate
51355135 * TXQs.
5136+ * @NL80211_EXT_FEATURE_SCAN_RANDOM_SN: Driver/device supports randomizing the
5137+ * SN in probe request frames if requested by %NL80211_SCAN_FLAG_RANDOM_SN.
5138+ * @NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT: Driver/device can omit all data
5139+ * except for supported rates from the probe request content if requested
5140+ * by the %NL80211_SCAN_FLAG_MIN_PREQ_CONTENT flag.
51365141 *
51375142 * @NUM_NL80211_EXT_FEATURES: number of extended features.
51385143 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
@@ -5167,6 +5172,8 @@ enum nl80211_ext_feature_index { · 28 unmodified lines
51675172 NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211,
51685173 NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT,
51695174 NL80211_EXT_FEATURE_TXQS,
5175+ NL80211_EXT_FEATURE_SCAN_RANDOM_SN,
5176+ NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT,
51705177
51715178 /* add new features before the definition below */
51725179 NUM_NL80211_EXT_FEATURES,
@@ -5272,6 +5279,12 @@ enum nl80211_timeout_reason { · 99 unmodified lines
52725279 * possible scan results. This flag hints the driver to use the best
52735280 * possible scan configuration to improve the accuracy in scanning.
52745281 * Latency and power use may get impacted with this flag.
5282+ * @NL80211_SCAN_FLAG_RANDOM_SN: randomize the sequence number in probe
5283+ * request frames from this scan to avoid correlation/tracking being
5284+ * possible.
5285+ * @NL80211_SCAN_FLAG_MIN_PREQ_CONTENT: minimize probe request content to
5286+ * only have supported rates and no additional capabilities (unless
5287+ * added by userspace explicitly.)
52755288 */
52765289 enum nl80211_scan_flags {
52775290 NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0,
@@ -5285,6 +5298,8 @@ enum nl80211_scan_flags { · 7 unmodified lines
52855298 NL80211_SCAN_FLAG_LOW_SPAN = 1<<8,
52865299 NL80211_SCAN_FLAG_LOW_POWER = 1<<9,
52875300 NL80211_SCAN_FLAG_HIGH_ACCURACY = 1<<10,
5301+ NL80211_SCAN_FLAG_RANDOM_SN = 1<<11,
5302+ NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 1<<12,
52885303 };
52895304
52905305 /**