staging: r8188eu: read addba resp tid from ieee80211_mgmt
Use the same code as ieee80211_process_addba_resp to calculate the tid from the capability field of an addba response message. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220514164740.282552-3-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
571cc06877
commit
cfed805f82
|
@ -1505,7 +1505,8 @@ unsigned int OnAction_back(struct adapter *padapter, struct recv_frame *precv_fr
|
|||
issue_action_BA(padapter, mgmt->sa, WLAN_ACTION_ADDBA_RESP, 37);/* reject ADDBA Req */
|
||||
break;
|
||||
case WLAN_ACTION_ADDBA_RESP:
|
||||
tid = ((frame_body[5] >> 2) & 0x7);
|
||||
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.candidate_tid_bitmap &= ~BIT(tid);
|
||||
|
|
Loading…
Reference in New Issue