Skip to content

Commit fd3d09b

Browse files
kapbhrlubos
authored andcommitted
samples: wifi: radio_test: Fix RX capture crash
Free RX capture buffer using nrf_wifi_osal_mem_free to fix RX capture data crash. Signed-off-by: Kapil Bhatt <[email protected]>
1 parent 0bd5d24 commit fd3d09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ static int nrf_wifi_radio_test_rx_cap(const struct shell *shell,
15791579
ret = 0;
15801580
out:
15811581
if (rx_cap_buf)
1582-
k_free(rx_cap_buf);
1582+
nrf_wifi_osal_mem_free(rx_cap_buf);
15831583

15841584
ctx->rf_test_run = false;
15851585
ctx->rf_test = NRF_WIFI_RF_TEST_MAX;

0 commit comments

Comments
 (0)