modules: nrf_wifi: Remove co-ex GPIOs first

Before powering off remove co-ex GPIOs.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
This commit is contained in:
Chaitanya Tata 2025-06-17 22:06:06 +05:30 committed by Dan Kalowsky
commit 2b0876c850

View file

@ -503,6 +503,13 @@ int rpu_disable(void)
{
int ret;
#ifdef CONFIG_NRF70_SR_COEX_RF_SWITCH
ret = sr_gpio_remove();
if (ret) {
goto out;
}
#endif
ret = rpu_pwroff();
if (ret) {
goto out;
@ -512,12 +519,7 @@ int rpu_disable(void)
goto out;
}
#ifdef CONFIG_NRF70_SR_COEX_RF_SWITCH
ret = sr_gpio_remove();
if (ret) {
goto out;
}
#endif
qdev = NULL;
cfg = NULL;