RTLLIB_DEBUG(RTLLIB_DL_ERR,"Failed to reply on ADDBA_REQ as some capability is not ready(%d, %d)\n",ieee->current_network.qos_data.active,ieee->pHTInfo->bCurrentHTSupport);
RTLLIB_DEBUG(RTLLIB_DL_ERR,"Failed to reply on ADDBA_REQ as "
RT_TRACE(COMP_DBG,"====>rx ADDBARSP from :"MAC_FMT"\n",MAC_ARG(dst));
if(
ieee->current_network.qos_data.active==0||
if(ieee->current_network.qos_data.active==0||
ieee->pHTInfo->bCurrentHTSupport==false||
ieee->pHTInfo->bCurrentAMPDUEnable==false)
{
RTLLIB_DEBUG(RTLLIB_DL_ERR,"reject to ADDBA_RSP as some capability is not ready(%d, %d, %d)\n",ieee->current_network.qos_data.active,ieee->pHTInfo->bCurrentHTSupport,ieee->pHTInfo->bCurrentAMPDUEnable);
ieee->pHTInfo->bCurrentAMPDUEnable==false){
RTLLIB_DEBUG(RTLLIB_DL_ERR,"reject to ADDBA_RSP as some capab"
@@ -434,17 +430,19 @@ int rtllib_rx_DELBA(struct rtllib_device* ieee,struct sk_buff *skb)
u16*pReasonCode=NULL;
u8*dst=NULL;
if(skb->len<sizeof(structrtllib_hdr_3addr)+6)
{
RTLLIB_DEBUG(RTLLIB_DL_ERR," Invalid skb len in DELBA(%d / %d)\n",(int)skb->len,(int)(sizeof(structrtllib_hdr_3addr)+6));
if(skb->len<sizeof(structrtllib_hdr_3addr)+6){
RTLLIB_DEBUG(RTLLIB_DL_ERR," Invalid skb len in DELBA(%d /"
" %d)\n",(int)skb->len,
(int)(sizeof(structrtllib_hdr_3addr)+6));
return-1;
}
if(
ieee->current_network.qos_data.active==0||
ieee->pHTInfo->bCurrentHTSupport==false)
{
RTLLIB_DEBUG(RTLLIB_DL_ERR,"received DELBA while QOS or HT is not supported(%d, %d)\n",ieee->current_network.qos_data.active,ieee->pHTInfo->bCurrentHTSupport);
if(ieee->current_network.qos_data.active==0||
ieee->pHTInfo->bCurrentHTSupport==false){
RTLLIB_DEBUG(RTLLIB_DL_ERR,"received DELBA while QOS or HT "
"is not supported(%d, %d)\n",
ieee->current_network.qos_data.active,
ieee->pHTInfo->bCurrentHTSupport);
return-1;
}
@@ -455,37 +453,26 @@ int rtllib_rx_DELBA(struct rtllib_device* ieee,struct sk_buff *skb)
pDelBaParamSet=(uniondelba_param_set*)(delba+2);
pReasonCode=(u16*)(delba+4);
if(pDelBaParamSet->field.Initiator==1)
{
if(pDelBaParamSet->field.Initiator==1){
structrx_ts_record*pRxTs;
if(!GetTs(
ieee,
(structts_common_info**)&pRxTs,
dst,
(u8)pDelBaParamSet->field.TID,
RX_DIR,
false))
{
RTLLIB_DEBUG(RTLLIB_DL_ERR,"can't get TS for RXTS in %s().dst:"MAC_FMT" TID:%d\n",__func__,MAC_ARG(dst),(u8)pDelBaParamSet->field.TID);