Re: [PATCH] wifi: mwifiex: Fix a loop in mwifiex_update_ampdu_rxwinsize()
From: Johannes Berg
Date: Thu Jan 08 2026 - 15:59:14 EST
On Thu, 2026-01-08 at 23:00 +0300, Dan Carpenter wrote:
> The "i" iterator variable is used to count two different things but
nice catch
> unfortunately we can't store two different numbers in the same variable.
:-)
> This was found via static analysis so I'm not positive on the impact
> of this bug.
I think it basically means anything other than the first interface
(using adapter->priv[i] with i>0) will not be updated correctly for A-
MPDU buffer usage (?) if you use more than two interfaces. Given that
most people probably only use a single interface, I suppose the impact
would be rather low.
johannes