context = priv->tx_context[ii];
if (!context->in_use) {
context->in_use = true;
- context->hdr = NULL;
-
return context;
}
}
struct sk_buff *skb, u16 payload_len,
struct vnt_mic_hdr *mic_hdr)
{
- struct ieee80211_hdr *hdr = tx_context->hdr;
+ struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
u64 pn64;
u8 *iv = ((u8 *)hdr + ieee80211_get_hdrlen_from_skb(skb));
tx_context->need_ack = false;
tx_context->frame_len = skb->len + 4;
tx_context->tx_rate = rate->hw_value;
- tx_context->hdr = hdr;
spin_unlock_irqrestore(&priv->lock, flags);