aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorLauri Hintsala <lauri.hintsala@silabs.com>2015-03-20 18:46:03 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-29 17:37:39 (GMT)
commitce18c107733969be74eef387564db2ef1285df98 (patch)
treeda4e284fc63782551c736b62d53e89c50c34f9c8 /wpa_supplicant/events.c
parent65a7b21f5ec22efe12d58cb3b760fb9e93ff8502 (diff)
downloadhostap-ce18c107733969be74eef387564db2ef1285df98.zip
hostap-ce18c107733969be74eef387564db2ef1285df98.tar.gz
hostap-ce18c107733969be74eef387564db2ef1285df98.tar.bz2
Add support for CONFIG_NO_ROAMING to Makefile
Commit e9af53ad39a19264bf5307a1b5923afc2b2f9b06 introduced new CONFIG_NO_ROAMING configuration parameter but unfortunately it was added only to Android.mk. Enabling this parameter didn't have any effect when Makefile was used to build wpa_supplicant. This commit fixes that problem and cleans "unused variable" compiler warning. Signed-off-by: Lauri Hintsala <lauri.hintsala@silabs.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index b0671bf..f5f3032 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1286,7 +1286,9 @@ static int wpa_supplicant_need_to_roam(struct wpa_supplicant *wpa_s,
struct wpa_ssid *ssid)
{
struct wpa_bss *current_bss = NULL;
+#ifndef CONFIG_NO_ROAMING
int min_diff;
+#endif /* CONFIG_NO_ROAMING */
if (wpa_s->reassociate)
return 1; /* explicit request to reassociate */