Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[nrf noup] Remove extra strings when CONFIG_NO_STDOUT_DEBUG is set
Browse files Browse the repository at this point in the history
When CONFIG_NO_STDOUT_DEBUG is set, the wpa_print and wpa_dbg functions
are define as empty. Despite this, linker was still not able to remove
fc2str, reason2str and status2str functions. This commit ensures that
those functions are not compiled at all.

Signed-off-by: Duda, Łukasz <[email protected]>
  • Loading branch information
LuDuda authored and krish2718 committed Sep 1, 2023
1 parent 44c4504 commit 8b0abe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/ieee802_11_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,7 @@ int supp_rates_11b_only(struct ieee802_11_elems *elems)
return num_11b > 0 && num_others == 0;
}

#ifndef CONFIG_NO_STDOUT_DEBUG

const char * fc2str(u16 fc)
{
Expand Down Expand Up @@ -1812,6 +1813,7 @@ const char * status2str(u16 status)
#undef S2S
}

#endif

int mb_ies_info_by_ies(struct mb_ies_info *info, const u8 *ies_buf,
size_t ies_len)
Expand Down

0 comments on commit 8b0abe8

Please sign in to comment.