From: Gurumoorthi Gnanasambandhan Date: Tue, 15 Mar 2011 16:59:36 +0000 (+0200) Subject: Allow drivers to indicate WPS push button in station mode X-Git-Tag: hostap-1-bp~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=783fcb7d039413fd29b1c7777a1f7f13d160c21a;p=thirdparty%2Fhostap.git Allow drivers to indicate WPS push button in station mode EVENT_WPS_BUTTON_PUSHED wpa_supplicant_event can now be used in station mode driver_*.c to indicate that a push button has been pushed. This will activate WPS PBC mode. --- diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 9d83e4d0b..b00e308bf 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -2278,6 +2278,11 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, if (wpa_s->sched_scan_timed_out) wpa_supplicant_req_sched_scan(wpa_s); break; + case EVENT_WPS_BUTTON_PUSHED: +#ifdef CONFIG_WPS + wpas_wps_start_pbc(wpa_s, NULL, 0); +#endif /* CONFIG_WPS */ + break; default: wpa_msg(wpa_s, MSG_INFO, "Unknown event %d", event); break;