/* 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)
/* 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;
	len += SNAP_SIZE + sizeof(u16);
	len += pattrib->pktlen;
	if (pattrib->encrypt == _TKIP_) len += 8;
	len += ((pattrib->bswenc) ? pattrib->icv_len : 0);
	return len;
}