Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ath10k patch to improve upload speeds
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -3399,6 +3399,8 @@
const struct ieee80211_hdr *hdr = (void *)skb->data;
__le16 fc = hdr->frame_control;
+ skb_orphan(skb);
+
if (!vif || vif->type == NL80211_IFTYPE_MONITOR)
return ATH10K_HW_TXRX_RAW;
@Cbhihe

This comment has been minimized.

Copy link

@Cbhihe Cbhihe commented Apr 26, 2019

I went to the source (mac.c) and check the latest available for compilation:

The "context" of the master branch has changed somewhat. See below:

ath10k_mac_tx_h_get_txmode(struct ath10k *ar,
			   struct ieee80211_vif *vif,
			   struct ieee80211_sta *sta,
			   struct sk_buff *skb)
{
	const struct ieee80211_hdr *hdr = (void *)skb->data;
	const struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(skb);
	__le16 fc = hdr->frame_control;

	if (!vif || vif->type == NL80211_IFTYPE_MONITOR)
		return ATH10K_HW_TXRX_RAW;

Do you mean to still apply your proposed patch to that ?

@3rdEyeBall

This comment has been minimized.

Copy link

@3rdEyeBall 3rdEyeBall commented Nov 18, 2019

How can I apply this as a single (if possible) installation for a new imaging of my Ubuntu Desktop. I have a laptop that has this Qualcomm card and it's atrocious.

@cascadingstyletrees

This comment has been minimized.

Copy link

@cascadingstyletrees cascadingstyletrees commented Nov 4, 2020

Is this still necessary with the 5.x kernels?

@harrykipper

This comment has been minimized.

Copy link
Owner Author

@harrykipper harrykipper commented Nov 4, 2020

Is this still necessary with the 5.x kernels?

Don't know, switched cards a long time ago. The patch comes from this thread https://bbs.archlinux.org/viewtopic.php?pid=1689990#p1689990

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment