Update channel_to_freq() for detecting 60G mode
struct sigma_dut argument is needed here so that the function can detect
if 60G mode is used since channels 1-4 exist in Wi-Fi with different
frequencies.
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
diff --git a/sta.c b/sta.c
index ebe34ce..26d0c34 100644
--- a/sta.c
+++ b/sta.c
@@ -2707,7 +2707,7 @@
extra[0] = '\0';
if (chan)
snprintf(extra, sizeof(extra), " freq=%u",
- channel_to_freq(atoi(chan)));
+ channel_to_freq(dut, atoi(chan)));
snprintf(buf, sizeof(buf), "SELECT_NETWORK %d%s",
dut->infra_network_id, extra);
if (wpa_command(get_station_ifname(), buf) < 0) {
@@ -5291,7 +5291,7 @@
if (chan) {
unsigned int freq;
- freq = channel_to_freq(chan);
+ freq = channel_to_freq(dut, chan);
if (!freq) {
sigma_dut_print(dut, DUT_MSG_ERROR,
"Invalid channel number provided: %d",