Re: [PATCH] wifi: mwifiex: validate HT/VHT capability and operation IE lengths
From: Doruk Tan Ozturk
Date: Wed Jul 15 2026 - 12:50:15 EST
> Were you able to test that this is not breaking the driver functionality?
Unfortunately I don't own one of these cards, and mwifiex is fullmac so
there's no hwsim either, so it was source and compile only. The added checks
only skip elements too short for what the driver later reads, so they
shouldn't affect a well-formed beacon.
> why break and not return -EINVAL? (this in general, not only on this
> specific one).
To skip the one malformed optional element and keep parsing the rest of the
beacon, like the FH/DS/CF/IBSS cases just above in the same loop. Happy to
switch to -EINVAL if you'd rather reject the whole BSS.
-Doruk