mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
scan: Add option to use the NO_CCK scan flag
P2P probe requests are to be sent at min 6.0 Mb/s using OFDM, specifically the 802.11b rates are prohibited (section 2.4.1 in Wi-Fi P2p Technical Spec v1.7), some of which use CCK modulation. This is already the default for 5G but for 2.4G the drivers generally do this if we set the NL80211_ATTR_TX_NO_CCK_RATE flags with NL80211_CMD_TRIGGER_SCAN.
This commit is contained in:
parent
2a5c2cec46
commit
cf684fdfa1
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user