Add the scan flags for randomized SN and minimized probe request content for improved scan privacy.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -5133,6 +5133,11 @@ enum nl80211_feature_flags { · 5132 unmodified lines | ||
| 5133 | 5133 | * support to nl80211. |
| 5134 | 5134 | * @NL80211_EXT_FEATURE_TXQS: Driver supports FQ-CoDel-enabled intermediate |
| 5135 | 5135 | * 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. | |
| 5136 | 5141 | * |
| 5137 | 5142 | * @NUM_NL80211_EXT_FEATURES: number of extended features. |
| 5138 | 5143 | * @MAX_NL80211_EXT_FEATURES: highest extended feature index. |
| @@ -5167,6 +5172,8 @@ enum nl80211_ext_feature_index { · 28 unmodified lines | ||
| 5167 | 5172 | NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211, |
| 5168 | 5173 | NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT, |
| 5169 | 5174 | NL80211_EXT_FEATURE_TXQS, |
| 5175 | + NL80211_EXT_FEATURE_SCAN_RANDOM_SN, | |
| 5176 | + NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT, | |
| 5170 | 5177 | |
| 5171 | 5178 | /* add new features before the definition below */ |
| 5172 | 5179 | NUM_NL80211_EXT_FEATURES, |
| @@ -5272,6 +5279,12 @@ enum nl80211_timeout_reason { · 99 unmodified lines | ||
| 5272 | 5279 | * possible scan results. This flag hints the driver to use the best |
| 5273 | 5280 | * possible scan configuration to improve the accuracy in scanning. |
| 5274 | 5281 | * 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.) | |
| 5275 | 5288 | */ |
| 5276 | 5289 | enum nl80211_scan_flags { |
| 5277 | 5290 | NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0, |
| @@ -5285,6 +5298,8 @@ enum nl80211_scan_flags { · 7 unmodified lines | ||
| 5285 | 5298 | NL80211_SCAN_FLAG_LOW_SPAN = 1<<8, |
| 5286 | 5299 | NL80211_SCAN_FLAG_LOW_POWER = 1<<9, |
| 5287 | 5300 | NL80211_SCAN_FLAG_HIGH_ACCURACY = 1<<10, |
| 5301 | + NL80211_SCAN_FLAG_RANDOM_SN = 1<<11, | |
| 5302 | + NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 1<<12, | |
| 5288 | 5303 | }; |
| 5289 | 5304 | |
| 5290 | 5305 | /** |