Skip to content

Commit f00373d

Browse files
nxf58150mmahadevan108
authored andcommitted
drivers: wifi: Update debug level of wakeup source dump function
Update wakeup source dump function to DBG level. This function will print and clear wakeup source registers of NXP wifi chips with CONFIG_WIFI_LOG_LEVEL_DBG enabled. By changing debug level of this file, user can avoid wakeup source clear. Signed-off-by: Hui Bai <hui.bai@nxp.com>
1 parent 57393d0 commit f00373d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2207,16 +2207,18 @@ static int nxp_wifi_set_config(const struct device *dev, enum ethernet_config_ty
22072207
#ifdef CONFIG_NXP_RW610
22082208
void device_pm_dump_wakeup_source(void)
22092209
{
2210+
#ifdef CONFIG_WIFI_LOG_LEVEL_DBG
22102211
if (POWER_GetWakeupStatus(IMU_IRQ_N)) {
2211-
LOG_INF("Wakeup by WLAN");
2212+
LOG_DBG("Wakeup by WLAN");
22122213
POWER_ClearWakeupStatus(IMU_IRQ_N);
22132214
} else if (POWER_GetWakeupStatus(41)) {
2214-
LOG_INF("Wakeup by OSTIMER");
2215+
LOG_DBG("Wakeup by OSTIMER");
22152216
POWER_ClearWakeupStatus(41);
22162217
} else if (POWER_GetWakeupStatus(32)) {
2217-
LOG_INF("Wakeup by RTC");
2218+
LOG_DBG("Wakeup by RTC");
22182219
POWER_ClearWakeupStatus(32);
22192220
}
2221+
#endif
22202222
}
22212223
#endif
22222224

@@ -2283,7 +2285,7 @@ static int device_wlan_pm_action(const struct device *dev, enum pm_device_action
22832285
}
22842286
wlan_hs_hanshake_cfg(false);
22852287
} else {
2286-
LOG_INF("Wakeup by other sources");
2288+
LOG_DBG("Wakeup by other sources");
22872289
wlan_hs_hanshake_cfg(true);
22882290
}
22892291
#ifdef CONFIG_NXP_RW610

0 commit comments

Comments
 (0)