[PATCH v2] NAN: Send synchronized service SSI in SDA by default

Jouni Malinen j at w1.fi
Thu Dec 3 10:54:03 PST 2026


On Tue, Nov 17, 2026 at 07:23:30AM +0000, Paul Hu wrote:
> nan_de carried the service specific info (SSI) of synchronized NAN
> services only in the SDEA Service Info field. Per Wi-Fi Aware v4.0
> Sections 4.1.1 and 4.1.3, SSI is carried in either the SDA Service Info
> field or the SDEA Service Info field, and receiving the SDA Service Info
> field is mandatory while some NAN implementations do not parse or report
> raw SSI carried only in the SDEA.
> 
> For synchronized services, carry SSI of up to 255 octets in the SDA
> Service Info field by default, and use the SDEA Service Info field when
> the SSI exceeds 255 octets or when explicitly requested via ssi_in_sdea
> (for protocols that require the WFA OUI, Service Protocol Type, and
> protocol-specific formatting such as Generic sub-attribute TLVs). Also
> compute SDEA Control flags before sizing the buffer so GTK/security
> flags are accounted for when SDEA Service Info is omitted. USD services
> continue to use the SDEA Service Info field.
> 
> Update nan_sync_verify_event() for the default SDA placement (which has
> no Service Protocol Type on the air) and add an hwsim test covering
> default SDA placement, ssi_in_sdea=1, and >255-octet SSI.

Thanks, applied with some fixes to make the test case pass.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list