Lines Matching refs:iface
182 static void format_wps_device_xml(struct upnp_wps_device_interface *iface, in format_wps_device_xml() argument
195 s = iface->wps->friendly_name; in format_wps_device_xml()
199 s = iface->wps->dev.manufacturer; in format_wps_device_xml()
203 if (iface->wps->manufacturer_url) in format_wps_device_xml()
205 iface->wps->manufacturer_url); in format_wps_device_xml()
207 if (iface->wps->model_description) in format_wps_device_xml()
209 iface->wps->model_description); in format_wps_device_xml()
211 s = iface->wps->dev.model_name; in format_wps_device_xml()
215 if (iface->wps->dev.model_number) in format_wps_device_xml()
217 iface->wps->dev.model_number); in format_wps_device_xml()
219 if (iface->wps->model_url) in format_wps_device_xml()
220 xml_add_tagged_data(buf, "modelURL", iface->wps->model_url); in format_wps_device_xml()
222 if (iface->wps->dev.serial_number) in format_wps_device_xml()
224 iface->wps->dev.serial_number); in format_wps_device_xml()
226 uuid_bin2str(iface->wps->uuid, uuid_string, sizeof(uuid_string)); in format_wps_device_xml()
235 if (iface->wps->upc) in format_wps_device_xml()
236 xml_add_tagged_data(buf, "UPC", iface->wps->upc); in format_wps_device_xml()
316 struct upnp_wps_device_interface *iface; in web_connection_parse_get() local
318 iface = dl_list_first(&sm->interfaces, in web_connection_parse_get()
320 if (iface == NULL) { in web_connection_parse_get()
333 if (iface->wps->friendly_name) in web_connection_parse_get()
334 extra_len += os_strlen(iface->wps->friendly_name); in web_connection_parse_get()
335 if (iface->wps->manufacturer_url) in web_connection_parse_get()
336 extra_len += os_strlen(iface->wps->manufacturer_url); in web_connection_parse_get()
337 if (iface->wps->model_description) in web_connection_parse_get()
338 extra_len += os_strlen(iface->wps->model_description); in web_connection_parse_get()
339 if (iface->wps->model_url) in web_connection_parse_get()
340 extra_len += os_strlen(iface->wps->model_url); in web_connection_parse_get()
341 if (iface->wps->upc) in web_connection_parse_get()
342 extra_len += os_strlen(iface->wps->upc); in web_connection_parse_get()
396 format_wps_device_xml(iface, sm, buf); in web_connection_parse_get()
428 struct upnp_wps_device_interface *iface; in web_process_get_device_info() local
431 iface = dl_list_first(&sm->interfaces, in web_process_get_device_info()
436 if (!iface || iface->ctx->ap_pin == NULL) in web_process_get_device_info()
452 cfg.wps = iface->wps; in web_process_get_device_info()
453 cfg.pin = (u8 *) iface->ctx->ap_pin; in web_process_get_device_info()
454 cfg.pin_len = os_strlen(iface->ctx->ap_pin); in web_process_get_device_info()
471 if (dl_list_len(&iface->peers) > 3) { in web_process_get_device_info()
474 old = dl_list_first(&iface->peers, struct upnp_wps_peer, list); in web_process_get_device_info()
480 dl_list_add_tail(&iface->peers, &peer->list); in web_process_get_device_info()
497 struct upnp_wps_device_interface *iface; in web_process_put_message() local
501 iface = dl_list_first(&sm->interfaces, in web_process_put_message()
503 if (!iface) in web_process_put_message()
525 dl_list_for_each(tmp, &iface->peers, struct upnp_wps_peer, list) { in web_process_put_message()
549 peer = dl_list_first(&iface->peers, struct upnp_wps_peer, list); in web_process_put_message()
583 struct upnp_wps_device_interface *iface; in web_process_put_wlan_response() local
653 dl_list_for_each(iface, &sm->interfaces, in web_process_put_wlan_response()
655 if (iface->ctx->rx_req_put_wlan_response && in web_process_put_wlan_response()
656 iface->ctx->rx_req_put_wlan_response(iface->priv, ev_type, in web_process_put_wlan_response()
707 struct upnp_wps_device_interface *iface; in web_process_set_selected_registrar() local
720 dl_list_for_each(iface, &sm->interfaces, in web_process_set_selected_registrar()
722 if (upnp_er_set_selected_registrar(iface->wps->registrar, s, in web_process_set_selected_registrar()