From: Jouni Malinen Date: Thu, 9 Jan 2020 10:40:17 +0000 (+0200) Subject: Silence compiler warning with CONFIG_NO_ROAMING=y X-Git-Tag: hostap_2_10~1956 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd530b873928263db64ee8114039b1563b3128a1;p=thirdparty%2Fhostap.git Silence compiler warning with CONFIG_NO_ROAMING=y Comment out unused static functions if CONFIG_NO_ROAMING is defined. Signed-off-by: Jouni Malinen --- 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,