Re: [PATCH v3] Add application extension data to WPS IE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux