mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-10-09 10:27:26 +02:00
scan: check support before using colocated flag
This commit is contained in:
parent
46037c428c
commit
8cb134f935
@ -414,7 +414,8 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc,
|
|||||||
if (params->ap_scan)
|
if (params->ap_scan)
|
||||||
flags |= NL80211_SCAN_FLAG_AP;
|
flags |= NL80211_SCAN_FLAG_AP;
|
||||||
|
|
||||||
flags |= NL80211_SCAN_FLAG_COLOCATED_6GHZ;
|
if (wiphy_supports_colocated_flag(sc->wiphy))
|
||||||
|
flags |= NL80211_SCAN_FLAG_COLOCATED_6GHZ;
|
||||||
|
|
||||||
if (flags)
|
if (flags)
|
||||||
l_genl_msg_append_attr(msg, NL80211_ATTR_SCAN_FLAGS, 4, &flags);
|
l_genl_msg_append_attr(msg, NL80211_ATTR_SCAN_FLAGS, 4, &flags);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user