Re: [PATCH] wifi: cfg80211: validate IEs in cfg80211_wext_siwgenie()

From: Johannes Berg

Date: Wed Jul 22 2026 - 11:32:42 EST


Hi,

Sorry for the delay.

On Fri, 2026-07-10 at 21:01 +0530, Deepanshu Kartikey wrote:
>
> validate_ie_attr() takes a struct nlattr * but the wext path
> works with a raw char * buffer, so it cannot be called directly.

Oops, right.

> I have reused the same approach using for_each_element() and
> for_each_element_completed() instead. Is this acceptable?

Sounds good!

johannes