]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: scan: set NL80211_SCAN_FLAG_COLOCATED_6GHZ in case of full sched scan
authorAyala Beker <ayala.beker@intel.com>
Thu, 14 Jul 2022 06:33:36 +0000 (09:33 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 10:55:17 +0000 (12:55 +0200)
Same as in regular scan, in case of full sched scan need to set
NL80211_SCAN_FLAG_COLOCATED_6GHZ flag, to scan for collocated
APs by default.

Signed-off-by: Ayala Beker <ayala.beker@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
scan.c

diff --git a/scan.c b/scan.c
index dfc136a3943e7ea912362a4f461bcec447dcbe6c..4c67c8710f9061ea5d3319caa475cb3262064f4b 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -349,6 +349,8 @@ int parse_sched_scan(struct nl_msg *msg, int *argc, char ***argv)
                nla_put_nested(msg, NL80211_ATTR_SCAN_SSIDS, ssids);
        if (have_freqs)
                nla_put_nested(msg, NL80211_ATTR_SCAN_FREQUENCIES, freqs);
+       else
+               flags |= NL80211_SCAN_FLAG_COLOCATED_6GHZ;
        if (have_matchset)
                nla_put_nested(msg, NL80211_ATTR_SCHED_SCAN_MATCH, matchset);
        if (have_plans)