diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-05-28 09:47:41 -0400 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2018-06-15 07:34:40 -0400 |
commit | b9771d41aee7aa3207b985422a1cc19e8342bc50 (patch) | |
tree | 13413533108492a4bb95aa282abf426fab1d707e /net/mac80211/util.c | |
parent | 2e076f199097d670ce5e5492cea57f552b93bba9 (diff) |
mac80211: support scan features for improved scan privacy
Support the new random SN and minimal probe request contents
scan flags for the case of software scan - for hardware scan
the drivers need to opt in, but may need to do only that,
depending on their implementation.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 0325133552ad..b744b10465c3 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -1433,6 +1433,9 @@ static int ieee80211_build_preq_ies_band(struct ieee80211_local *local, | |||
1433 | chandef->chan->center_freq); | 1433 | chandef->chan->center_freq); |
1434 | } | 1434 | } |
1435 | 1435 | ||
1436 | if (flags & IEEE80211_PROBE_FLAG_MIN_CONTENT) | ||
1437 | goto done; | ||
1438 | |||
1436 | /* insert custom IEs that go before HT */ | 1439 | /* insert custom IEs that go before HT */ |
1437 | if (ie && ie_len) { | 1440 | if (ie && ie_len) { |
1438 | static const u8 before_ht[] = { | 1441 | static const u8 before_ht[] = { |
@@ -1510,6 +1513,7 @@ static int ieee80211_build_preq_ies_band(struct ieee80211_local *local, | |||
1510 | return pos - buffer; | 1513 | return pos - buffer; |
1511 | out_err: | 1514 | out_err: |
1512 | WARN_ONCE(1, "not enough space for preq IEs\n"); | 1515 | WARN_ONCE(1, "not enough space for preq IEs\n"); |
1516 | done: | ||
1513 | return pos - buffer; | 1517 | return pos - buffer; |
1514 | } | 1518 | } |
1515 | 1519 | ||