From 6dafb5f4a9cbd7043989f986d1f5963c264d413e Mon Sep 17 00:00:00 2001 From: Emil Lindqvist Date: Mon, 9 Dec 2024 15:17:05 +0100 Subject: [PATCH] wifi: fix warning on wifi_ps_exit_strategy_txt This commit fixes a warning when including wifi.h: type qualifiers ignored on function return type Signed-off-by: Emil Lindqvist --- include/zephyr/net/wifi.h | 2 +- subsys/net/l2/wifi/wifi_mgmt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: