|
@@ -456,7 +456,6 @@ struct wpabuf * wps_build_probe_req_ie(int pbc, struct wps_device_data *dev,
|
|
|
const u8 *req_dev_types)
|
|
|
{
|
|
|
struct wpabuf *ie;
|
|
|
- u16 methods = 0;
|
|
|
|
|
|
wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for Probe Request");
|
|
|
|
|
@@ -464,35 +463,9 @@ struct wpabuf * wps_build_probe_req_ie(int pbc, struct wps_device_data *dev,
|
|
|
if (ie == NULL)
|
|
|
return NULL;
|
|
|
|
|
|
- methods |= WPS_CONFIG_PUSHBUTTON;
|
|
|
-#ifdef CONFIG_WPS2
|
|
|
-
|
|
|
- * TODO: Should figure out whether this device has a physical or
|
|
|
- * virtual pushbutton.
|
|
|
- */
|
|
|
- methods |= WPS_CONFIG_VIRT_PUSHBUTTON;
|
|
|
-#endif
|
|
|
-
|
|
|
-
|
|
|
- * TODO: Should figure out whether this Probe Request was triggered
|
|
|
- * using physical or virtual display. Also, if the device has a PIN on
|
|
|
- * a label, that should be indicated here.
|
|
|
- */
|
|
|
- methods |= WPS_CONFIG_DISPLAY |
|
|
|
-#ifdef CONFIG_WPS2
|
|
|
- WPS_CONFIG_VIRT_DISPLAY |
|
|
|
-#endif
|
|
|
- WPS_CONFIG_KEYPAD;
|
|
|
-#ifdef CONFIG_WPS_UFD
|
|
|
- methods |= WPS_CONFIG_USBA;
|
|
|
-#endif
|
|
|
-#ifdef CONFIG_WPS_NFC
|
|
|
- methods |= WPS_CONFIG_NFC_INTERFACE;
|
|
|
-#endif
|
|
|
-
|
|
|
if (wps_build_version(ie) ||
|
|
|
wps_build_req_type(ie, req_type) ||
|
|
|
- wps_build_config_methods(ie, methods) ||
|
|
|
+ wps_build_config_methods(ie, dev->config_methods) ||
|
|
|
wps_build_uuid_e(ie, uuid) ||
|
|
|
wps_build_primary_dev_type(dev, ie) ||
|
|
|
wps_build_rf_bands(dev, ie) ||
|