WPS: Fix WPS build with ER support disabled

This commit is contained in:
Jouni Malinen 2009-11-10 11:09:52 +02:00 committed by Jouni Malinen
parent 6ae225726f
commit d3a42e1240

View file

@ -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 */
}