40 u8 bSendDELBA =
false;
57 u8 bSendDELBA =
false;
86 " sentd to: %pM, ieee->dev:%p\n", __func__,
87 type, Dst, ieee->
dev);
151 "========>%s(), Reason"
152 "Code(%d) sentd to: %pM\n", __func__,
155 memset(&DelbaParamSet, 0, 2);
157 DelbaParamSet.field.Initiator = (TxRxSelect ==
TX_DIR) ? 1 : 0;
206 " %s()\n", __func__);
215 skb = rtllib_ADDBA(ieee, dst, pBA, StatusCode,
ACT_ADDBARSP);
220 " %s()\n", __func__);
229 skb = rtllib_DELBA(ieee, dst, pBA, TxRxSelect, ReasonCode);
234 "tion %s()\n", __func__);
251 "%d)\n", (
int)skb->
len,
262 pDialogToken = tag + 2;
264 pBaTimeoutVal = (
u16 *)(tag + 5);
269 (ieee->
pHTInfo->bCurrentHTSupport ==
false) ||
273 "some capability is not ready(%d, %d)\n",
275 ieee->
pHTInfo->bCurrentHTSupport);
276 goto OnADDBAReq_Fail;
282 goto OnADDBAReq_Fail;
290 goto OnADDBAReq_Fail;
319 rtllib_send_ADDBARsp(ieee, dst, &BA, rc);
327 struct ba_record *pPendingBA, *pAdmittedBA;
336 "%d)\n", (
int)skb->
len,
344 pDialogToken = tag + 2;
345 pStatusCode = (
u16 *)(tag + 3);
347 pBaTimeoutVal = (
u16 *)(tag + 7);
351 ieee->
pHTInfo->bCurrentHTSupport ==
false ||
352 ieee->
pHTInfo->bCurrentAMPDUEnable ==
false) {
354 "ility is not ready(%d, %d, %d)\n",
356 ieee->
pHTInfo->bCurrentHTSupport,
357 ieee->
pHTInfo->bCurrentAMPDUEnable);
359 goto OnADDBARsp_Reject;
367 goto OnADDBARsp_Reject;
375 if ((pAdmittedBA->
bValid ==
true)) {
377 " Drop because already admit it!\n");
379 }
else if ((pPendingBA->
bValid ==
false) ||
382 "BA invalid, DELBA!\n");
384 goto OnADDBARsp_Reject;
387 "is admitted! Status code:%X\n", *pStatusCode);
397 goto OnADDBARsp_Reject;
411 goto OnADDBARsp_Reject;
420 rtllib_send_DELBA(ieee, dst, &BA,
TX_DIR, ReasonCode);
434 " %d)\n", (
int)skb->
len,
440 ieee->
pHTInfo->bCurrentHTSupport ==
false) {
442 "is not supported(%d, %d)\n",
444 ieee->
pHTInfo->bCurrentHTSupport);
450 dst = (
u8 *)(&delba->
addr2[0]);
453 pReasonCode = (
u16 *)(delba+4);
455 if (pDelBaParamSet->
field.Initiator == 1) {
461 "%s().dst: %pM TID:%d\n", __func__, dst,
462 (
u8)pDelBaParamSet->
field.TID);
487 u8 Policy,
u8 bOverwritePending)
491 if (pBA->
bValid ==
true && bOverwritePending ==
false)
507 rtllib_send_ADDBAReq(ieee, pTS->
TsCommonInfo.Addr, pBA);
514 if (TxRxSelect ==
TX_DIR) {
519 rtllib_send_DELBA(ieee, pTsCommonInfo->
Addr,
524 }
else if (TxRxSelect ==
RX_DIR) {
528 rtllib_send_DELBA(ieee, pTsCommonInfo->
Addr,