[PATCH 6/9] WNM: Implement ML handling of neighbor report entries

Jouni Malinen j at w1.fi
Fri Oct 3 06:26:05 PDT 2025


On Fri, Jul 18, 2025 at 01:01:02PM +0200, Benjamin Berg wrote:
> diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
> +static void wnm_parse_neighbor_report_multi_link(struct neighbor_report *rep,
> +						 u8 id, u8 elen, const u8 *pos)

> +	/* The ML control should be all zeroes except for link ID. */
> +	if ((le_to_host16(ml->ml_control) &
> +	     ~BASIC_MULTI_LINK_CTRL_PRES_LINK_ID) != 0) {
> +		wpa_printf(MSG_DEBUG,
> +			   "WNM: Unsupported ML control: %04x",
> +			   le_to_host16(ml->ml_control));
> +		return;
> +	}

This is way too strict validation and is just asking for problems
similarly to some earlier EHT cases that broke things when "new" fields
were taken into use.. Some of these bits are reserved and might have
different values in the future. In any case, there is not really any
need for this check in the first place since the potential optional
fields can be skipped based on the Common Info Length field without
having to parse Common Info fields beyond the Link ID Info field.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list