Skip to content

Commit

Permalink
wifi: fix warning on wifi_ps_exit_strategy_txt
Browse files Browse the repository at this point in the history
This commit fixes a warning when including wifi.h:
type qualifiers ignored on function return type

Signed-off-by: Emil Lindqvist <[email protected]>
  • Loading branch information
emillindq authored and fabiobaltieri committed Dec 11, 2024
1 parent 55ea932 commit 6dafb5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/zephyr/net/wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion subsys/net/l2/wifi/wifi_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6dafb5f

Please sign in to comment.