staging: r8188eu: use BIT(tid) instead of manual shift
authorMartin Kaiser <martin@kaiser.cx>
Sat, 14 May 2022 16:47:38 +0000 (18:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 15:41:56 +0000 (17:41 +0200)
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>
drivers/staging/r8188eu/core/rtw_mlme_ext.c

index d5ea074..9aa6d09 100644 (file)
@@ -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);