From: Ayala Beker Date: Thu, 14 Jul 2022 06:33:36 +0000 (+0300) Subject: iw: scan: set NL80211_SCAN_FLAG_COLOCATED_6GHZ in case of full sched scan X-Git-Tag: v6.7~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29555e143d01de7570bdb5d11d9c785f6e59e6bf;p=thirdparty%2Fiw.git iw: scan: set NL80211_SCAN_FLAG_COLOCATED_6GHZ in case of full sched scan 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 Signed-off-by: Johannes Berg --- diff --git a/scan.c b/scan.c index dfc136a..4c67c87 100644 --- 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)