mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-08 21:53:54 +08:00
staging: r8188eu: use BIT(tid) instead of manual shift
Use BIT(tid) instead of 1 << tid when we process an addba response. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220514164740.282552-6-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9465d2d915
commit
813586def1
@ -1510,7 +1510,7 @@ unsigned int OnAction_back(struct adapter *padapter, struct recv_frame *precv_fr
|
||||
tid = u16_get_bits(le16_to_cpu(mgmt->u.action.u.addba_resp.capab),
|
||||
IEEE80211_ADDBA_PARAM_TID_MASK);
|
||||
if (mgmt->u.action.u.addba_resp.status == 0) { /* successful */
|
||||
psta->htpriv.agg_enable_bitmap |= 1 << tid;
|
||||
psta->htpriv.agg_enable_bitmap |= BIT(tid);
|
||||
psta->htpriv.candidate_tid_bitmap &= ~BIT(tid);
|
||||
} else {
|
||||
psta->htpriv.agg_enable_bitmap &= ~BIT(tid);
|
||||
|
Loading…
Reference in New Issue
Block a user