Comment 1 for bug 1692836

Revision history for this message
AceLan Kao (acelankao) wrote :

This patch seems to fix the issue on Ubuntu 4.4 kernel.
The ath10k driver structure has been changed after 4.4, so this fix can't apply to 4.8+ kernel,
and it looks like should stay in 4.4 kernel only.

--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -3563,6 +3563,8 @@ static void ath10k_tx(struct ieee80211_hw *hw,
      struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
      __le16 fc = hdr->frame_control;

+ skb_orphan(skb);
+
      /* We should disable CCK RATE due to P2P */
      if (info->flags & IEEE80211_TX_CTL_NO_CCK_RATE)