Added preliminary Wi-Fi Protected Setup (WPS) implementation
This adds WPS support for both hostapd and wpa_supplicant. Both programs can be configured to act as WPS Enrollee and Registrar. Both PBC and PIN methods are supported. Currently, hostapd has more complete configuration option for WPS parameters and wpa_supplicant configuration style will likely change in the future. External Registrars are not yet supported in hostapd or wpa_supplicant. While wpa_supplicant has initial support for acting as an Registrar to configure an AP, this is still using number of hardcoded parameters which will need to be made configurable for proper operation.
This commit is contained in:
parent
6e89cc438e
commit
ad08c3633c
71 changed files with 8602 additions and 47 deletions
|
@ -420,6 +420,14 @@ DBusMessage * wpas_dbus_bssid_properties(DBusMessage *message,
|
|||
goto error;
|
||||
}
|
||||
|
||||
ie = wpa_scan_get_vendor_ie(res, WPS_IE_VENDOR_TYPE);
|
||||
if (ie) {
|
||||
if (!wpa_dbus_dict_append_byte_array(&iter_dict, "wpsie",
|
||||
(const char *) ie,
|
||||
ie[1] + 2))
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (res->freq) {
|
||||
if (!wpa_dbus_dict_append_int32(&iter_dict, "frequency",
|
||||
res->freq))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue