Home | History | Annotate | Download | only in wps

Lines Matching refs:wps

2  * UPnP WPS Device - Web connections
42 * WFA WPS specifications. Extra white space has been removed to save space.
195 s = iface->wps->friendly_name;
196 s = ((s && *s) ? s : "WPS Access Point");
199 s = iface->wps->dev.manufacturer;
203 if (iface->wps->manufacturer_url)
205 iface->wps->manufacturer_url);
207 if (iface->wps->model_description)
209 iface->wps->model_description);
211 s = iface->wps->dev.model_name;
215 if (iface->wps->dev.model_number)
217 iface->wps->dev.model_number);
219 if (iface->wps->model_url)
220 xml_add_tagged_data(buf, "modelURL", iface->wps->model_url);
222 if (iface->wps->dev.serial_number)
224 iface->wps->dev.serial_number);
226 uuid_bin2str(iface->wps->uuid, uuid_string, sizeof(uuid_string));
235 if (iface->wps->upc)
236 xml_add_tagged_data(buf, "UPC", iface->wps->upc);
329 wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP GET for device XML");
332 if (iface->wps->friendly_name)
333 extra_len += os_strlen(iface->wps->friendly_name);
334 if (iface->wps->manufacturer_url)
335 extra_len += os_strlen(iface->wps->manufacturer_url);
336 if (iface->wps->model_description)
337 extra_len += os_strlen(iface->wps->model_description);
338 if (iface->wps->model_url)
339 extra_len += os_strlen(iface->wps->model_url);
340 if (iface->wps->upc)
341 extra_len += os_strlen(iface->wps->upc);
343 wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP GET for SCPD XML");
348 wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP GET file not found: %s",
424 wpa_printf(MSG_DEBUG, "WPS UPnP: GetDeviceInfo");
432 * Request for DeviceInfo, i.e., M1 TLVs. This is a start of WPS
439 if (peer->wps)
440 wps_deinit(peer->wps);
443 cfg.wps = iface->wps;
446 peer->wps = wps_init(&cfg);
447 if (peer->wps) {
449 *reply = wps_get_msg(peer->wps, &op_code);
451 wps_deinit(peer->wps);
452 peer->wps = NULL;
457 wpa_printf(MSG_INFO, "WPS UPnP: Failed to get DeviceInfo");
482 * PutMessage is used by external UPnP-based Registrar to perform WPS
486 wpa_printf(MSG_DEBUG, "WPS UPnP: PutMessage");
490 res = wps_process_msg(iface->peer.wps, WSC_UPnP, msg);
494 *reply = wps_get_msg(iface->peer.wps, &op_code);
521 wpa_printf(MSG_DEBUG, "WPS UPnP: PutWLANResponse");
524 wpa_printf(MSG_DEBUG, "WPS UPnP: Could not extract NewMessage "
530 wpa_printf(MSG_DEBUG, "WPS UPnP: No NewWLANEventType in "
539 wpa_printf(MSG_DEBUG, "WPS UPnP: No NewWLANEventMAC in "
545 wpa_printf(MSG_DEBUG, "WPS UPnP: Invalid NewWLANEventMAC in "
562 wpa_printf(MSG_DEBUG, "WPS UPnP: Workaround - allow "
580 wpa_printf(MSG_DEBUG, "WPS UPnP: Message Type %d", type);
593 wpa_printf(MSG_INFO, "WPS UPnP: Fail: sm->ctx->"
640 wpa_printf(MSG_DEBUG, "WPS UPnP: SetSelectedRegistrar");
643 wpa_printf(MSG_DEBUG, "WPS UPnP: Ignore SetSelectedRegistrar "
652 if (upnp_er_set_selected_registrar(iface->wps->registrar, s,
711 wpa_printf(MSG_INFO, "WPS UPnP: Cannot allocate reply to "
861 wpa_printf(MSG_INFO, "WPS UPnP: Invalid POST filename %s",
883 wpa_printf(MSG_INFO, "WPS UPnP: Unknown POST type");
887 wpa_printf(MSG_INFO, "WPS UPnP: POST failure ret=%d", ret);
938 wpa_hexdump_ascii(MSG_DEBUG, "WPS UPnP: HTTP SUBSCRIBE",
950 wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP SUBSCRIBE for event");
1038 wpa_printf(MSG_DEBUG, "WPS UPnP: Subscription renewal");
1047 wpa_printf(MSG_DEBUG, "WPS UPnP: Could not find "
1053 wpa_printf(MSG_DEBUG, "WPS UPnP: New subscription");
1077 wpa_printf(MSG_DEBUG, "WPS UPnP: Assigned SID %s", b);
1111 wpa_printf(MSG_DEBUG, "WPS UPnP: SUBSCRIBE failed - return %d", ret);
1157 wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP UNSUBSCRIBE for event");
1222 wpa_printf(MSG_DEBUG, "WPS UPnP: Unsubscribing %p %s",
1228 wpa_printf(MSG_INFO, "WPS UPnP: Could not find matching subscription to unsubscribe");
1233 wpa_printf(MSG_INFO, "WPS UPnP: Unsubscribe fails (not "
1277 wpa_printf(MSG_INFO, "WPS UPnP: Could not get HTTP URI");
1285 wpa_printf(MSG_DEBUG, "WPS UPnP: Got HTTP request type %d from %s:%d",