diff --git a/include/zephyr/net/wifi.h b/include/zephyr/net/wifi.h index 485d04ae571b67..ba57409baa56c6 100644 --- a/include/zephyr/net/wifi.h +++ b/include/zephyr/net/wifi.h @@ -607,7 +607,7 @@ enum wifi_ps_exit_strategy { }; /** Helper function to get user-friendly ps exit strategy name. */ -const char * const wifi_ps_exit_strategy_txt(enum wifi_ps_exit_strategy ps_exit_strategy); +const char *wifi_ps_exit_strategy_txt(enum wifi_ps_exit_strategy ps_exit_strategy); /** @brief Wi-Fi power save error codes. */ enum wifi_config_ps_param_fail_reason { diff --git a/subsys/net/l2/wifi/wifi_mgmt.c b/subsys/net/l2/wifi/wifi_mgmt.c index 8f917607c03c5e..28100693b012e7 100644 --- a/subsys/net/l2/wifi/wifi_mgmt.c +++ b/subsys/net/l2/wifi/wifi_mgmt.c @@ -307,7 +307,7 @@ const char *wifi_ps_wakeup_mode_txt(enum wifi_ps_wakeup_mode ps_wakeup_mode) } } -const char * const wifi_ps_exit_strategy_txt(enum wifi_ps_exit_strategy ps_exit_strategy) +const char *wifi_ps_exit_strategy_txt(enum wifi_ps_exit_strategy ps_exit_strategy) { switch (ps_exit_strategy) { case WIFI_PS_EXIT_EVERY_TIM: