3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-08-27 00:47:25 +02:00

scan: check support before using colocated flag

This commit is contained in:
James Prestwood 2025-08-22 12:51:06 -07:00 committed by Denis Kenzior
parent 46037c428c
commit 8cb134f935

View File

@ -414,7 +414,8 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc,
if (params->ap_scan)
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)
l_genl_msg_append_attr(msg, NL80211_ATTR_SCAN_FLAGS, 4, &flags);