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

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

 



On Wed, 25 Dec 2019 at 22:07, Jouni Malinen <j@xxxxx> wrote:
>
> On Thu, Sep 05, 2019 at 12:34:40PM +0300, bilalhp@xxxxxxxxx wrote:
> > From: Bilal Hatipoglu <bilal.hatipoglu@xxxxxxxxxxx>
> >
> > 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.
> >
> > Signed-off-by: Veli Demirel <veli.demirel@xxxxxxxxxxx>
> > Signed-off-by: Bilal Hatipoglu <bilal.hatipoglu@xxxxxxxxxxx>
> > ---
> >  src/ap/ap_config.c      |  2 ++
> >  src/ap/ap_config.h      |  1 +
> >  src/ap/wps_hostapd.c    | 29 +++++++++++++++++++++++++++++
> >  src/wps/wps.h           |  5 +++++
> >  src/wps/wps_dev_attr.c  | 19 +++++++++++++++++++
> >  src/wps/wps_registrar.c |  6 ++++--
> >  6 files changed, 60 insertions(+), 2 deletions(-)
>
> How is one supposed to be able to configure these application
> extensions? There is no changes here to modify hostapd/config_file.c to
> parse anything new nor any documentation in hostapd/hostapd.conf for any
> new configuration parameter. There's only definition of the new
> configuration parameter in ap_config.h and code to free that in
> ap_config.c if one were somehow able to add it.
BH: This is currently left open as this is also the case for
wpa_vendor_ext today. Additionally, I don't know what is the preferred
method to enter this kind of multiple array entries for a config value
as there is no current example of it. Please let me know if you have
any recommendations. We currently maintain another patch for this
purpose which is not generic, so I did not publish that part.
>
> > diff --git a/src/wps/wps_dev_attr.c b/src/wps/wps_dev_attr.c
> > @@ -242,6 +242,25 @@ int wps_build_vendor_ext(struct wps_device_data *dev, struct wpabuf *msg)
> > +int wps_build_application_ext(struct wps_device_data *dev, struct wpabuf *msg)
>
> A prototype for these new function needs to be added into
> src/wps/wps_dev_attr.h to avoid compilation warnings/errors in
> wps_registrar.c that calls this function.
BH: Good catch. Will fix with v2 right away! Thanks for your time.
>
> --
> 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