[PATCH] nl80211: add extra-ies only if allowed by driver

Johannes Berg johannes at sipsolutions.net
Sun Jan 30 12:14:38 PST 2022


On Sun, 2022-01-30 at 20:22 +0100, David Bauer wrote:
>  
> -	if (params->extra_ies) {
> +	if (params->extra_ies && drv->capa.max_scan_ie_len >= params->extra_ies_len) {
>  		wpa_hexdump(MSG_MSGDUMP, "nl80211: Scan extra IEs",
>  			    params->extra_ies, params->extra_ies_len);

I guess that makes sense if capa.max_scan_ie_len is zero, but if not
perhaps it'd be nice to be able to omit _some_ of the stuff?

Also, higher layers of the supplicant might expect their elements to be
added, so I'm not sure what to make of this, that's a bit annoying.

Perhaps some configurations shouldn't be allowed if the
capa.max_scan_ie_len is really small?

johannes



More information about the Hostap mailing list