66819b07b5
The Wi-Fi Alliance Multi-AP Specification v1.0 allows onboarding of a backhaul STA through WPS. To enable this, the WPS Registrar offers a different set of credentials (backhaul credentials instead of fronthaul credentials) when the Multi-AP subelement is present in the WFA vendor extension element of the WSC M1 message. Add new configuration options to specify the backhaul credentials for the hostapd internal registrar: multi_ap_backhaul_ssid, multi_ap_backhaul_wpa_psk, multi_ap_backhaul_wpa_passphrase. These are only relevant for a fronthaul SSID, i.e., where multi_ap is set to 2 or 3. When these options are set, pass the backhaul credentials instead of the normal credentials when the Multi-AP subelement is present. Ignore the Multi-AP subelement if the backhaul config options are not set. Note that for an SSID which is fronthaul and backhaul at the same time (i.e., multi_ap == 3), this results in the correct credentials being sent anyway. The security to be used for the backaul BSS is fixed to WPA2PSK. The Multi-AP Specification only allows Open and WPA2PSK networks to be configured. Although not stated explicitly, the backhaul link is intended to be always encrypted, hence WPA2PSK. To build the credentials, the credential-building code is essentially copied and simplified. Indeed, the backhaul credentials are always WPA2PSK and never use per-device PSK. All the options set for the fronthaul BSS WPS are simply ignored. Signed-off-by: Davina Lu <ylu@quantenna.com> Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Marianna Carrera <marianna.carrera.so@quantenna.com> |
||
---|---|---|
.. | ||
http.h | ||
http_client.c | ||
http_client.h | ||
http_server.c | ||
http_server.h | ||
httpread.c | ||
httpread.h | ||
Makefile | ||
ndef.c | ||
upnp_xml.c | ||
upnp_xml.h | ||
wps.c | ||
wps.h | ||
wps_attr_build.c | ||
wps_attr_parse.c | ||
wps_attr_parse.h | ||
wps_attr_process.c | ||
wps_common.c | ||
wps_defs.h | ||
wps_dev_attr.c | ||
wps_dev_attr.h | ||
wps_enrollee.c | ||
wps_er.c | ||
wps_er.h | ||
wps_er_ssdp.c | ||
wps_i.h | ||
wps_module_tests.c | ||
wps_registrar.c | ||
wps_upnp.c | ||
wps_upnp.h | ||
wps_upnp_ap.c | ||
wps_upnp_event.c | ||
wps_upnp_i.h | ||
wps_upnp_ssdp.c | ||
wps_upnp_web.c | ||
wps_validate.c |