Re: [PATCH] wifi: cfg80211: validate IEs in cfg80211_wext_siwgenie()
From: Deepanshu Kartikey
Date: Fri Jul 10 2026 - 11:36:50 EST
On Fri, Jul 10, 2026 at 12:09 PM Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
>
> I don't believe you'd need to even export this, and we also already have
> validate_ie_attr() in nl80211, written in a better way too...
>
> johannes
Hi Johannes,
validate_ie_attr() takes a struct nlattr * but the wext path
works with a raw char * buffer, so it cannot be called directly.
I have reused the same approach using for_each_element() and
for_each_element_completed() instead. Is this acceptable?
Thanks
Deepanshu