]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mwifiex: fix loop iterator in mwifiex_update_ampdu_txwinsize()
authorDan Carpenter <error27@gmail.com>
Mon, 6 Feb 2023 14:41:33 +0000 (17:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:42 +0000 (16:43 +0100)
commit84f5cd05c514021f899daf04664911b2300f0784
treef415d4b100a082e2fbcaca334c08d52f59ad35f8
parent30ea8594f6a64f5d8d900b293659a06f2863b5af
wifi: mwifiex: fix loop iterator in mwifiex_update_ampdu_txwinsize()

[ Upstream commit 3cfb7df24cee0f5fdc4cc5d3176cab9aadfcb430 ]

This code re-uses "i" to be the iterator for both the inside and outside
loops.  It means the outside loop will exit earlier than intended.

Fixes: a48f5a543854 ("mwifiex: handle BT coex event to adjust Rx BA window size")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/Y+ERnaDaZD7RtLvX@kili
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/marvell/mwifiex/11n.c