|
@@ -892,24 +892,6 @@ s32 rtw_txframes_sta_ac_pending(struct adapter *padapter, struct pkt_attrib *pat
|
|
|
return ptxservq->qcnt;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
- * Calculate wlan 802.11 packet MAX size from pkt_attrib
|
|
|
- * This function doesn't consider fragment case
|
|
|
- */
|
|
|
-u32 rtw_calculate_wlan_pkt_size_by_attribue(struct pkt_attrib *pattrib)
|
|
|
-{
|
|
|
- u32 len = 0;
|
|
|
-
|
|
|
- len = pattrib->hdrlen + pattrib->iv_len; /* WLAN Header and IV */
|
|
|
- len += SNAP_SIZE + sizeof(u16); /* LLC */
|
|
|
- len += pattrib->pktlen;
|
|
|
- if (pattrib->encrypt == _TKIP_)
|
|
|
- len += 8; /* MIC */
|
|
|
- len += ((pattrib->bswenc) ? pattrib->icv_len : 0); /* ICV */
|
|
|
-
|
|
|
- return len;
|
|
|
-}
|
|
|
-
|
|
|
/*
|
|
|
|
|
|
This sub-routine will perform all the following:
|