diff mbox series

[2/4] Fix uses_6ghz flag

Message ID 20230602221511.1237936-2-matthewmwang@chromium.org
State Accepted
Headers show
Series [1/4] Use default IEs in wpa_supplicant_trigger_scan | expand

Commit Message

Matthew Wang June 2, 2023, 10:15 p.m. UTC
Presence of any 6ghz channels indicates nl80211 driver 6ghz support,
not non-DISABLED channels.

Signed-off-by: Matthew Wang <matthewmwang@chromium.org>
---
 src/drivers/driver_nl80211_capa.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c
index b904398ca32..07cd11310e6 100644
--- a/src/drivers/driver_nl80211_capa.c
+++ b/src/drivers/driver_nl80211_capa.c
@@ -2548,8 +2548,7 @@  static void nl80211_dump_chan_list(struct wpa_driver_nl80211_data *drv,
 		for (j = 0; j < mode->num_channels; j++) {
 			struct hostapd_channel_data *chan = &mode->channels[j];
 
-			if (chan->freq >= 5925 && chan->freq <= 7125 &&
-			    !(chan->flag & HOSTAPD_CHAN_DISABLED))
+			if (is_6ghz_freq(chan->freq))
 				drv->uses_6ghz = true;
 			res = os_snprintf(pos, end - pos, " %d%s%s%s",
 					  chan->freq,