mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
wifi: mwifiex: fix loop iterator in mwifiex_update_ampdu_txwinsize()
[ Upstream commit3cfb7df24c
] 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:d219b7eb37
("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>
This commit is contained in:
parent
2f85c768be
commit
225e75dc74
1 changed files with 3 additions and 3 deletions
|
@ -878,7 +878,7 @@ mwifiex_send_delba_txbastream_tbl(struct mwifiex_private *priv, u8 tid)
|
|||
*/
|
||||
void mwifiex_update_ampdu_txwinsize(struct mwifiex_adapter *adapter)
|
||||
{
|
||||
u8 i;
|
||||
u8 i, j;
|
||||
u32 tx_win_size;
|
||||
struct mwifiex_private *priv;
|
||||
|
||||
|
@ -909,8 +909,8 @@ void mwifiex_update_ampdu_txwinsize(struct mwifiex_adapter *adapter)
|
|||
if (tx_win_size != priv->add_ba_param.tx_win_size) {
|
||||
if (!priv->media_connected)
|
||||
continue;
|
||||
for (i = 0; i < MAX_NUM_TID; i++)
|
||||
mwifiex_send_delba_txbastream_tbl(priv, i);
|
||||
for (j = 0; j < MAX_NUM_TID; j++)
|
||||
mwifiex_send_delba_txbastream_tbl(priv, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue