Lines Matching defs:iface
541 struct upnp_wps_device_interface *iface;
545 dl_list_for_each(iface, &s->sm->interfaces,
547 upnp_er_remove_notification(iface->wps->registrar, s);
1067 struct upnp_wps_device_interface *iface;
1068 dl_list_for_each(iface, &sm->interfaces,
1070 if (iface->priv == priv)
1071 return iface;
1084 struct upnp_wps_device_interface *iface;
1089 iface = upnp_wps_get_iface(sm, priv);
1090 if (iface == NULL) {
1095 wpa_printf(MSG_DEBUG, "WPS UPnP: Deinit interface instance %p", iface);
1102 iface->wps->registrar);
1103 dl_list_del(&iface->list);
1105 if (iface->peer.wps)
1106 wps_deinit(iface->peer.wps);
1107 os_free(iface->ctx->ap_pin);
1108 os_free(iface->ctx);
1109 os_free(iface);
1133 struct upnp_wps_device_interface *iface;
1136 iface = os_zalloc(sizeof(*iface));
1137 if (iface == NULL) {
1142 wpa_printf(MSG_DEBUG, "WPS UPnP: Init interface instance %p", iface);
1144 iface->ctx = ctx;
1145 iface->wps = wps;
1146 iface->priv = priv;
1158 os_free(iface);
1171 dl_list_add(&sm->interfaces, &iface->list);
1196 struct upnp_wps_device_interface *iface;
1200 dl_list_for_each(iface, &sm->interfaces,
1202 os_free(iface->ctx->ap_pin);
1204 iface->ctx->ap_pin = os_strdup(ap_pin);
1205 if (iface->ctx->ap_pin == NULL)
1208 iface->ctx->ap_pin = NULL;