]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 12 Jan 2026 18:36:55 +0000 (19:36 +0100)
commit2120f3a3738a65730c81bf10447b1ff776078915
treea0b41b82b66e01a2b1e0f9e92d0a1ddeca631238
parentdb1d0b6ab11f612ea8a327663a578c8946efeee9
wifi: mwifiex: Fix a loop in mwifiex_update_ampdu_rxwinsize()

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>
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c