From dd530b873928263db64ee8114039b1563b3128a1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 9 Jan 2020 12:40:17 +0200 Subject: [PATCH] Silence compiler warning with CONFIG_NO_ROAMING=y Comment out unused static functions if CONFIG_NO_ROAMING is defined. Signed-off-by: Jouni Malinen --- wpa_supplicant/events.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 854b9cf93..90138c60d 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1701,6 +1701,8 @@ static void wpa_supplicant_rsn_preauth_scan_results( } +#ifndef CONFIG_NO_ROAMING + static int wpas_get_snr_signal_info(u32 frequency, int avg_signal, int noise) { if (noise == WPA_INVALID_NOISE) @@ -1721,6 +1723,8 @@ wpas_get_est_throughput_from_bss_snr(const struct wpa_supplicant *wpa_s, return wpas_get_est_tpt(wpa_s, ies, ie_len, rate, snr); } +#endif /* CONFIG_NO_ROAMING */ + static int wpa_supplicant_need_to_roam(struct wpa_supplicant *wpa_s, struct wpa_bss *selected,