]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mwifiex: Fix a loop in mwifiex_update_ampdu_rxwinsize()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 8 Jan 2026 20:00:24 +0000 (23:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:39 +0000 (10:27 +0100)
commit5d0ab96350e06bfa922ddcd8ca1e35cfcd6391b8
treecae310ef4e1d99a06f4ea08185d82143b2927c47
parent36e0bc5e8b282564906fca636c4ebc99814de4e7
wifi: mwifiex: Fix a loop in mwifiex_update_ampdu_rxwinsize()

commit 2120f3a3738a65730c81bf10447b1ff776078915 upstream.

The "i" iterator variable is used to count two different things but
unfortunately we can't store two different numbers in the same variable.
Use "i" for the outside loop and "j" for the inside loop.

Cc: stable@vger.kernel.org
Fixes: d219b7eb3792 ("mwifiex: handle BT coex event to adjust Rx BA window size")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jeff Chen <jeff.chen_1@nxp.com>
Link: https://patch.msgid.link/aWAM2MGUWRP0zWUd@stanley.mountain
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c