mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
scan: check flush feature before using flag
This commit is contained in:
parent
9224575a83
commit
1974a67b30
@ -362,7 +362,8 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc,
|
||||
if (params->freqs)
|
||||
scan_build_attr_scan_frequencies(msg, params->freqs);
|
||||
|
||||
if (params->flush && !ignore_flush_flag)
|
||||
if (params->flush && !ignore_flush_flag && wiphy_has_feature(sc->wiphy,
|
||||
NL80211_FEATURE_SCAN_FLUSH))
|
||||
flags |= NL80211_SCAN_FLAG_FLUSH;
|
||||
|
||||
if (!is_passive && params->randomize_mac_addr_hint &&
|
||||
|
Loading…
Reference in New Issue
Block a user