aboutsummaryrefslogtreecommitdiffstats
path: root/package/ath9k/patches/150-txq_endian.patch
blob: 11bb388154670efd37ece75145a784e6288191c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This patch fixes another endianness issue.
DMA descriptors must always be accessed in native endianness.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

--- a/drivers/net/wireless/ath9k/xmit.c
+++ b/drivers/net/wireless/ath9k/xmit.c
@@ -168,7 +168,7 @@
 			__func__, txq->axq_qnum,
 			ito64(bf->bf_daddr), bf->bf_desc);
 	} else {
-		*txq->axq_link = cpu_to_le32(bf->bf_daddr);
+		*txq->axq_link = bf->bf_daddr;
 		DPRINTF(sc, ATH_DEBUG_XMIT, "%s: link[%u] (%p)=%llx (%p)\n",
 			__func__,
 			txq->axq_qnum, txq->axq_link,