WPS 2.0: Provide (Re)Association Response WPS IE to driver
[libeap.git] / src / drivers / driver_hostap.c
index 476cba5..e47983c 100644 (file)
@@ -333,7 +333,7 @@ static int hostap_send_eapol(void *priv, const u8 *addr, const u8 *data,
 }
 
 
-static int hostap_sta_set_flags(const char *ifname, void *priv, const u8 *addr,
+static int hostap_sta_set_flags(void *priv, const u8 *addr,
                                int total_flags, int flags_or, int flags_and)
 {
        struct hostap_driver_data *drv = priv;
@@ -662,8 +662,7 @@ static int hostap_sta_remove(void *priv, const u8 *addr)
        struct hostap_driver_data *drv = priv;
        struct prism2_hostapd_param param;
 
-       hostap_sta_set_flags(drv->iface, drv, addr, 0, 0,
-                            ~WPA_STA_AUTHORIZED);
+       hostap_sta_set_flags(drv, addr, 0, 0, ~WPA_STA_AUTHORIZED);
 
        memset(&param, 0, sizeof(param));
        param.cmd = PRISM2_HOSTAPD_REMOVE_STA;
@@ -763,9 +762,9 @@ static int hostap_set_generic_elem(void *priv,
 }
 
 
-static int hostap_set_ap_wps_ie(const char *ifname, void *priv,
-                               const struct wpabuf *beacon,
-                               const struct wpabuf *proberesp)
+static int hostap_set_ap_wps_ie(void *priv, const struct wpabuf *beacon,
+                               const struct wpabuf *proberesp,
+                               const struct wpabuf *assocresp)
 {
        struct hostap_driver_data *drv = priv;