Browse Source

WPS: Fix WPS build with ER support disabled

Jouni Malinen 15 years ago
parent
commit
d3a42e1240
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wpa_supplicant/wps_supplicant.c

+ 2 - 0
wpa_supplicant/wps_supplicant.c

@@ -815,8 +815,10 @@ void wpas_wps_deinit(struct wpa_supplicant *wpa_s)
 	os_free(wpa_s->wps);
 	wpa_s->wps = NULL;
 
+#ifdef CONFIG_WPS_ER
 	wps_er_deinit(wpa_s->wps_er);
 	wpa_s->wps_er = NULL;
+#endif /* CONFIG_WPS_ER */
 }