Skip to content

Commit 1fb2c56

Browse files
krish2718danieldegrasse
authored andcommitted
modules: nrf_wifi: Fix interface down hang
When QSPI LPM is enabled, QSPI will already be uninitialized, and during deinit if uninitialized is being called again then it leads to a hang as it waits for mem busy check to pass which it won't. Fix by checking if the device is initialized before calling uninitialize. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent 2fc1dd5 commit 1fb2c56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/nrf_wifi/bus/qspi_if.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,9 @@ struct device qspi_perip = {
11961196

11971197
int qspi_deinit(void)
11981198
{
1199-
_qspi_device_uninit(&qspi_perip);
1199+
if (nrfx_qspi_init_check()) {
1200+
_qspi_device_uninit(&qspi_perip);
1201+
}
12001202

12011203
return 0;
12021204
}

0 commit comments

Comments
 (0)