Add new 'coloc' (from 6 GHz scanning) and 'flush' options
to the scan command.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
#define SCHED_SCAN_OPTIONS "[interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] " \
"[delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] " \
#define SCHED_SCAN_OPTIONS "[interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] " \
"[delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] " \
- "[randomise[=<addr>/<mask>]]"
+ "[randomise[=<addr>/<mask>]] [coloc] [flush]"
int parse_sched_scan(struct nl_msg *msg, int *argc, char ***argv);
DECLARE_SECTION(switch);
int parse_sched_scan(struct nl_msg *msg, int *argc, char ***argv);
DECLARE_SECTION(switch);
err = parse_random_mac_addr(msg, v[0] + 9);
if (err)
goto nla_put_failure;
err = parse_random_mac_addr(msg, v[0] + 9);
if (err)
goto nla_put_failure;
+ } else if (!strncmp(v[0], "coloc", 5)) {
+ flags |= NL80211_SCAN_FLAG_COLOCATED_6GHZ;
+ } else if (!strncmp(v[0], "flush", 5)) {
+ flags |= NL80211_SCAN_FLAG_FLUSH;
} else {
/* this element is not for us, so
* return to continue parsing.
} else {
/* this element is not for us, so
* return to continue parsing.