scan: Add randomization of SN for probe requests

This commit is contained in:
Tim Kourt 2019-04-11 13:56:07 -07:00 committed by Denis Kenzior
parent b1d77d52b9
commit e01368b848
1 changed files with 4 additions and 0 deletions

View File

@ -330,6 +330,10 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc,
*/
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)
l_genl_msg_append_attr(msg, NL80211_ATTR_SCAN_FLAGS, 4, &flags);