From d6bbcce411beb253ef7d4358a384b27ed2b5a904 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 3 Feb 2013 21:13:07 +0200 Subject: [PATCH] Make wpas_select_network_from_last_scan() static Addition of wpa_supplicant_fast_associate() made it unnecessary to call wpas_select_network_from_last_scan() directly from other files. Signed-hostap: Jouni Malinen --- wpa_supplicant/events.c | 5 ++++- wpa_supplicant/wpa_supplicant_i.h | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 47e7eb8f6..13b54c2db 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -44,6 +44,9 @@ #include "interworking.h" +static int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s); + + static int wpas_temp_disabled(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) { @@ -1188,7 +1191,7 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s, } -int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s) +static int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s) { struct wpa_bss *selected; struct wpa_ssid *ssid = NULL; diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h index 807c7cd0e..0f51f8e2e 100644 --- a/wpa_supplicant/wpa_supplicant_i.h +++ b/wpa_supplicant/wpa_supplicant_i.h @@ -785,7 +785,6 @@ int wpa_supplicant_connect(struct wpa_supplicant *wpa_s, void wpa_supplicant_stop_countermeasures(void *eloop_ctx, void *sock_ctx); void wpa_supplicant_delayed_mic_error_report(void *eloop_ctx, void *sock_ctx); void wnm_bss_keep_alive_deinit(struct wpa_supplicant *wpa_s); -int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s); int wpa_supplicant_fast_associate(struct wpa_supplicant *wpa_s); /* eap_register.c */