mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-04-14 13:37:52 +02:00
scan: Add randomization of SN for probe requests
This commit is contained in:
parent
b1d77d52b9
commit
e01368b848
@ -330,6 +330,10 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc,
|
|||||||
*/
|
*/
|
||||||
flags |= NL80211_SCAN_FLAG_RANDOM_ADDR;
|
flags |= NL80211_SCAN_FLAG_RANDOM_ADDR;
|
||||||
|
|
||||||
|
if (!is_passive && wiphy_has_ext_feature(sc->wiphy,
|
||||||
|
NL80211_EXT_FEATURE_SCAN_RANDOM_SN))
|
||||||
|
flags |= NL80211_SCAN_FLAG_RANDOM_SN;
|
||||||
|
|
||||||
if (flags)
|
if (flags)
|
||||||
l_genl_msg_append_attr(msg, NL80211_ATTR_SCAN_FLAGS, 4, &flags);
|
l_genl_msg_append_attr(msg, NL80211_ATTR_SCAN_FLAGS, 4, &flags);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user