Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions drivers/wifi/nxp/Kconfig.nxp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,14 @@ config NXP_WIFI_HOST_SLEEP
help
This option enables HOST Sleep support for MCU.

config NXP_WIFI_WAKE_TIMER_ENABLE
bool "Wake Timer Enable"
depends on NXP_WIFI_HOST_SLEEP
help
This option enables wake timer in the Wi-Fi driver and the duration is 5
seconds. Once wake timer is enabled, low power mode will be blocked for 5
seconds after device wakes up from sleep.

config NXP_WIFI_MEF_CFG
bool "Memory Efficient Filtering"
default y if PM
Expand Down
10 changes: 6 additions & 4 deletions drivers/wifi/nxp/nxp_wifi_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2207,16 +2207,18 @@ static int nxp_wifi_set_config(const struct device *dev, enum ethernet_config_ty
#ifdef CONFIG_NXP_RW610
void device_pm_dump_wakeup_source(void)
{
#ifdef CONFIG_WIFI_LOG_LEVEL_DBG
if (POWER_GetWakeupStatus(IMU_IRQ_N)) {
LOG_INF("Wakeup by WLAN");
LOG_DBG("Wakeup by WLAN");
POWER_ClearWakeupStatus(IMU_IRQ_N);
} else if (POWER_GetWakeupStatus(41)) {
LOG_INF("Wakeup by OSTIMER");
LOG_DBG("Wakeup by OSTIMER");
POWER_ClearWakeupStatus(41);
} else if (POWER_GetWakeupStatus(32)) {
LOG_INF("Wakeup by RTC");
LOG_DBG("Wakeup by RTC");
POWER_ClearWakeupStatus(32);
}
#endif
}
#endif

Expand Down Expand Up @@ -2283,7 +2285,7 @@ static int device_wlan_pm_action(const struct device *dev, enum pm_device_action
}
wlan_hs_hanshake_cfg(false);
} else {
LOG_INF("Wakeup by other sources");
LOG_DBG("Wakeup by other sources");
wlan_hs_hanshake_cfg(true);
}
#ifdef CONFIG_NXP_RW610
Expand Down
1 change: 1 addition & 0 deletions samples/net/wifi/shell/nxp/overlay_hosted_mcu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ CONFIG_PM=y
CONFIG_PM_DEVICE=y
CONFIG_PM_LOG_LEVEL_OFF=y
CONFIG_PM_DEVICE_LOG_LEVEL_OFF=y
CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE=y
1 change: 1 addition & 0 deletions samples/net/wifi/shell/nxp/overlay_iw610.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ CONFIG_NXP_WIFI_SOFTAP_SUPPORT=y
CONFIG_WIFI_SHELL_MAX_AP_STA=8
CONFIG_NXP_WIFI_TX_RX_ZERO_COPY=y
CONFIG_NXP_WIFI_FW_DEBUG=y
CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE=y

# net
CONFIG_NET_IPV4=y
Expand Down
1 change: 1 addition & 0 deletions samples/net/wifi/shell/nxp/overlay_rw612.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ CONFIG_NXP_WIFI_SOFTAP_SUPPORT=y
CONFIG_WIFI_SHELL_MAX_AP_STA=8
CONFIG_NXP_WIFI_TX_RX_ZERO_COPY=y
CONFIG_NXP_WIFI_FW_DEBUG=y
CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE=y

# net
CONFIG_NET_IPV4=y
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: b374adf9c08434b849fe9dcdb0b099cafc4f31ae
revision: a7f64ac242138179b7f893eb440ccb0c5655f8e9
path: modules/hal/nxp
groups:
- hal
Expand Down