48 struct txpd *local_tx_pd;
51 u16 pkt_type, pkt_offset;
54 dev_err(adapter->
dev,
"Tx: bad packet length: %d\n", skb->
len);
59 pkt_type = mwifiex_is_skb_mgmt_frame(skb) ?
PKT_TYPE_MGMT : 0;
62 pad = (4 - (((
void *)skb->
data -
NULL) & 0x3)) % 4;
66 skb_push(skb,
sizeof(*local_tx_pd) + pad);
68 local_tx_pd = (
struct txpd *) skb->
data;
99 pkt_offset =
sizeof(
struct txpd) + pad;
127 struct txpd *local_tx_pd;
129 #define NULL_PACKET_HDR 64
144 skb = dev_alloc_skb(data_len);
148 tx_info = MWIFIEX_SKB_TXCB(skb);
154 local_tx_pd = (
struct txpd *) skb->
data;
176 dev_err(adapter->
dev,
"%s: host_to_card failed: ret=%d\n",
178 adapter->
dbg.num_tx_host_to_card_failure++;
182 dev_dbg(adapter->
dev,
"data: %s: host_to_card succeeded\n",