diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 662e7f87b..af2d92421 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -317,6 +317,10 @@ CFLAGS += -DCONFIG_INTERWORKING NEED_GAS=y endif +ifdef CONFIG_NO_ROAMING +CFLAGS += -DCONFIG_NO_ROAMING +endif + include ../src/drivers/drivers.mak ifdef CONFIG_AP OBJS_d += $(DRV_BOTH_OBJS) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index b0671bfed..f5f303270 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 */