Skip to content

Commit 8b0abe8

Browse files
LuDudakrish2718
authored andcommitted
[nrf noup] Remove extra strings when CONFIG_NO_STDOUT_DEBUG is set
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]>
1 parent 44c4504 commit 8b0abe8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/ieee802_11_common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,7 @@ int supp_rates_11b_only(struct ieee802_11_elems *elems)
15731573
return num_11b > 0 && num_others == 0;
15741574
}
15751575

1576+
#ifndef CONFIG_NO_STDOUT_DEBUG
15761577

15771578
const char * fc2str(u16 fc)
15781579
{
@@ -1812,6 +1813,7 @@ const char * status2str(u16 status)
18121813
#undef S2S
18131814
}
18141815

1816+
#endif
18151817

18161818
int mb_ies_info_by_ies(struct mb_ies_info *info, const u8 *ies_buf,
18171819
size_t ies_len)

0 commit comments

Comments
 (0)