]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Add multi_ap_subelem to wps_build_wfa_ext()
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 12 Feb 2019 14:35:24 +0000 (15:35 +0100)
committerJouni Malinen <j@w1.fi>
Mon, 18 Feb 2019 18:30:26 +0000 (20:30 +0200)
commit56a2d788f9dea36c32eebb3c54081ecea29766d4
tree97b8605fc55678f1420b3850fb585d78d126ec48
parentcb3c156e7bb057d84f1f62264134892262f25e5d
WPS: Add multi_ap_subelem to wps_build_wfa_ext()

The Multi-AP specification adds a new subelement to the WFA extension
element in the WPS exchange. Add an additional parameter to
wps_build_wfa_ext() to add this subelement. The subelement is only added
if the parameter is nonzero. Note that we don't reuse the existing
MULTI_AP_SUB_ELEM_TYPE definition here, but rather define a new
WFA_ELEM_MULTI_AP, to make sure the enum of WFA subelement types for WPS
vendor extension remains complete.

For now, all callers set the multi_ap_subelem parameter to 0.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
src/p2p/p2p_build.c
src/wps/wps.c
src/wps/wps_attr_build.c
src/wps/wps_common.c
src/wps/wps_defs.h
src/wps/wps_enrollee.c
src/wps/wps_er.c
src/wps/wps_i.h
src/wps/wps_registrar.c
src/wps/wps_upnp.c