mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 09:56:46 +07:00
wil6210: allocate rx reorder buffer only if rx reorder is enabled
wil_addba_rx_request allocates the rx reorder buffer regardless of use_rx_hw_reordering settings. Fix this by checking wil->use_rx_hw_reordering before allocating the reorder buffer. Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
596bdbcce9
commit
686ab4f5bd
@ -382,11 +382,13 @@ __acquires(&sta->tid_rx_lock) __releases(&sta->tid_rx_lock)
|
||||
}
|
||||
|
||||
/* apply */
|
||||
r = wil_tid_ampdu_rx_alloc(wil, agg_wsize, ssn);
|
||||
spin_lock_bh(&sta->tid_rx_lock);
|
||||
wil_tid_ampdu_rx_free(wil, sta->tid_rx[tid]);
|
||||
sta->tid_rx[tid] = r;
|
||||
spin_unlock_bh(&sta->tid_rx_lock);
|
||||
if (!wil->use_rx_hw_reordering) {
|
||||
r = wil_tid_ampdu_rx_alloc(wil, agg_wsize, ssn);
|
||||
spin_lock_bh(&sta->tid_rx_lock);
|
||||
wil_tid_ampdu_rx_free(wil, sta->tid_rx[tid]);
|
||||
sta->tid_rx[tid] = r;
|
||||
spin_unlock_bh(&sta->tid_rx_lock);
|
||||
}
|
||||
|
||||
out:
|
||||
return rc;
|
||||
|
Loading…
Reference in New Issue
Block a user