]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Silence compiler warning with CONFIG_NO_ROAMING=y
authorJouni Malinen <jouni@codeaurora.org>
Thu, 9 Jan 2020 10:40:17 +0000 (12:40 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 9 Jan 2020 10:40:17 +0000 (12:40 +0200)
Comment out unused static functions if CONFIG_NO_ROAMING is defined.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/events.c

index 854b9cf935d877e529025a4ebcf1916ba83b47f1..90138c60de01867c99ae74b93d34c859227f97a0 100644 (file)
@@ -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,