X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=wpa_supplicant%2Fwps_supplicant.c;h=bc54c0df1eeda2453ff4aae4ad2f38f6d7b1e1c4;hb=e64dcfd54b621f5eb48db4e9931cb17dc89d3390;hp=a2193d10b4f09f79ce9829f97471f09a157cebc5;hpb=82b857ec0b78a28a080792a921cae785850dd470;p=libeap.git diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index a2193d1..bc54c0d 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -1171,4 +1171,16 @@ int wpas_wps_er_pbc(struct wpa_supplicant *wpa_s, const char *uuid) return -1; return wps_er_pbc(wpa_s->wps_er, u); } + + +int wpas_wps_er_learn(struct wpa_supplicant *wpa_s, const char *uuid, + const char *pin) +{ + u8 u[UUID_LEN]; + + if (uuid_str2bin(uuid, u)) + return -1; + return wps_er_learn(wpa_s->wps_er, u, (const u8 *) pin, + os_strlen(pin)); +} #endif /* CONFIG_WPS_ER */