diff --git a/src/scan.c b/src/scan.c index a732ec86..efe96aa3 100644 --- a/src/scan.c +++ b/src/scan.c @@ -314,6 +314,10 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc, if (flags) l_genl_msg_append_attr(msg, NL80211_ATTR_SCAN_FLAGS, 4, &flags); + if (params->no_cck_rates) + l_genl_msg_append_attr(msg, NL80211_ATTR_TX_NO_CCK_RATE, 0, + NULL); + return msg; } diff --git a/src/scan.h b/src/scan.h index e8b599d0..a02f487d 100644 --- a/src/scan.h +++ b/src/scan.h @@ -80,6 +80,7 @@ struct scan_parameters { struct scan_freq_set *freqs; bool flush : 1; bool randomize_mac_addr_hint : 1; + bool no_cck_rates : 1; const char *ssid; /* Used for direct probe request */ };