Skip to content

Commit 2b0876c

Browse files
krish2718dkalowsk
authored andcommitted
modules: nrf_wifi: Remove co-ex GPIOs first
Before powering off remove co-ex GPIOs. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 9cd933e commit 2b0876c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

modules/nrf_wifi/bus/rpu_hw_if.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -503,21 +503,23 @@ int rpu_disable(void)
503503
{
504504
int ret;
505505

506-
ret = rpu_pwroff();
506+
#ifdef CONFIG_NRF70_SR_COEX_RF_SWITCH
507+
ret = sr_gpio_remove();
507508
if (ret) {
508509
goto out;
509510
}
510-
ret = rpu_gpio_remove();
511+
#endif
512+
513+
ret = rpu_pwroff();
511514
if (ret) {
512515
goto out;
513516
}
514-
515-
#ifdef CONFIG_NRF70_SR_COEX_RF_SWITCH
516-
ret = sr_gpio_remove();
517+
ret = rpu_gpio_remove();
517518
if (ret) {
518519
goto out;
519520
}
520-
#endif
521+
522+
521523
qdev = NULL;
522524
cfg = NULL;
523525

0 commit comments

Comments
 (0)