On Tue, Dec 31, 2019 at 12:04:26PM +0300, bilalhp@xxxxxxxxx wrote: > Application Extension attribute is defined in WPS Spec v2.06 page 105. > This patch makes hostapd add this application extension data to WPS IE > if configured. The implementation is very similar to vendor extension. > > Added a new optional entry "wps_application_ext" to hostapd config > file to configure this. > diff --git a/hostapd/config_file.c b/hostapd/config_file.c > @@ -3616,6 +3616,9 @@ static int hostapd_config_fill(struct hostapd_config *conf, > + } else if (os_strcmp(buf, "wps_application_ext") == 0) { > + wpabuf_free(bss->wps_application_ext[0]); > + bss->wps_application_ext[0] = wpabuf_parse_bin(pos); > diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h > @@ -498,6 +498,7 @@ struct hostapd_bss_config { > + struct wpabuf *wps_application_ext[MAX_WPS_APPLICATION_EXTENSIONS]; Why would there be an array of these if the config parser is hardcoded to only be able to configure one? -- Jouni Malinen PGP id EFC895FA _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap