Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes for radio test #21

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion samples/radio_test_bm/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ CONFIG_SHELL_BACKEND_SERIAL=y
# Debugs
CONFIG_THREAD_MONITOR=y
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
# For automation scripts only
CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE=1024
CONFIG_LOG=y
Expand Down
9 changes: 6 additions & 3 deletions samples/radio_test_bm/src/nrf_wifi_radio_test_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,20 @@ int main(void)
#endif

// Initialize the WiFi module
CHECK_RET(nrf70_bm_init());
CHECK_RET(nrf70_bm_init(NULL, NULL));

printf("Initialized WiFi module, ready for radio test\n");

ret = nrf_wifi_radio_test_shell_init();
if (!ret) {
if (ret) {
printf("Failed to initialize radio test: %d\n", ret);
goto cleanup;
}

cleanup:
printf("Exiting WiFi radio test sample application with error: %d\n", ret);
if (ret) {
nrf70_bm_deinit();
printf("Exiting WiFi radio test sample application with error: %d\n", ret);
}
return ret;
}
6 changes: 6 additions & 0 deletions samples/scan_bm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,10 @@ config WIFI_SCAN_PROFILE_2_4GHz_NON_OVERLAP_AND_5GHz_NON_DFS_CHAN

endchoice

config WIFI_SCAN_REG_DOMAIN
string "Regulatory domain"
default "00"
help
Specifies the regulatory domain to be used for the scan.

endmenu
2 changes: 1 addition & 1 deletion samples/scan_bm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int main(void)

printf("WiFi scan sample application using nRF70 Bare Metal library\n");

memcpy(reg_info.country_code, "IN", 2);
krish2718 marked this conversation as resolved.
Show resolved Hide resolved
memcpy(reg_info.country_code, CONFIG_NRF70_REG_DOMAIN, 2);
reg_info.force = true;

// Initialize the WiFi module
Expand Down
Loading