Skip to content

Commit ae47b2e

Browse files
committed
samples: wifi: radio_test: Update 6GHz validation
[CAL-6581] Add throughput mode checks for 6GHz. Signed-off-by: Prasun Sinha <[email protected]>
1 parent 7b88801 commit ae47b2e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

samples/wifi/radio_test/multi_domain/src/nrf_wifi_radio_test_shell.c

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ static int check_channel_settings(const struct shell *shell,
274274
return -1;
275275
}
276276
} else if (tput_mode == RPU_TPUT_MODE_HT) {
277+
#ifdef WIFI_NRF71
278+
if (chan->op_band == WIFI_FREQ_BAND_6_GHZ) {
279+
shell_fprintf(shell,
280+
SHELL_ERROR,
281+
"HT mode not allowed in 6GHz band\n");
282+
return -1;
283+
}
284+
#endif /* WIFI_NRF71 */
277285
if (chan->bw != RPU_CH_BW_20) {
278286
shell_fprintf(shell,
279287
SHELL_ERROR,
@@ -289,6 +297,14 @@ static int check_channel_settings(const struct shell *shell,
289297
"VHT setting not allowed in 2.4GHz band\n");
290298
return -1;
291299
}
300+
#ifdef WIFI_NRF71
301+
if (chan->op_band == WIFI_FREQ_BAND_6_GHZ) {
302+
shell_fprintf(shell,
303+
SHELL_ERROR,
304+
"VHT mode not allowed in 6GHz band\n");
305+
return -1;
306+
}
307+
#endif /* WIFI_NRF71 */
292308

293309
if (chan->bw != RPU_CH_BW_20) {
294310
shell_fprintf(shell,
@@ -1223,7 +1239,7 @@ static int nrf_wifi_radio_test_init(const struct shell *shell,
12231239
if (!check_valid_chan_6g(chan_num)) {
12241240
shell_fprintf(shell,
12251241
SHELL_ERROR,
1226-
"Invalid channel number %lu on 5G band\n",
1242+
"Invalid channel number %lu on 6G band\n",
12271243
chan_num);
12281244
return -ENOEXEC;
12291245
}

0 commit comments

Comments
 (0)