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)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 16:53:52 +0000 (18:53 +0200)
commit3cfb7df24cee0f5fdc4cc5d3176cab9aadfcb430
tree9292593f10bb58b739215cc42a12e25fdaf6425b
parent235fd607c6cbd0f3922298200573b2b5f86295df
wifi: mwifiex: fix loop iterator in mwifiex_update_ampdu_txwinsize()

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: d219b7eb3792 ("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
drivers/net/wireless/marvell/mwifiex/11n.c