From 8b0abe8f10ef14b25a97972da46aee8ee5aef63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Duda=2C=20=C5=81ukasz?= Date: Sat, 5 Aug 2023 23:32:26 +0200 Subject: [PATCH] [nrf noup] Remove extra strings when CONFIG_NO_STDOUT_DEBUG is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/common/ieee802_11_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c index c642264b6..5532d8b1b 100644 --- a/src/common/ieee802_11_common.c +++ b/src/common/ieee802_11_common.c @@ -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) { @@ -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)