summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-20 16:32:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-20 16:32:43 +0000
commitd7bdc375604b6466af7978a9ecc526af62e77524 (patch)
treece05dfe7454a76993c8046f25412ba899f9cff0d /package
parent2043a450da6453f1a211237c3f0a22397186be21 (diff)
downloadmtk-20170518-d7bdc375604b6466af7978a9ecc526af62e77524.zip
mtk-20170518-d7bdc375604b6466af7978a9ecc526af62e77524.tar.gz
mtk-20170518-d7bdc375604b6466af7978a9ecc526af62e77524.tar.bz2
add another endianness fix for ath9k, ar9160 now works on ixp4xx, at least in sta mode :)
SVN-Revision: 11886
Diffstat (limited to 'package')
-rw-r--r--package/ath9k/patches/150-txq_endian.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/ath9k/patches/150-txq_endian.patch b/package/ath9k/patches/150-txq_endian.patch
new file mode 100644
index 0000000..11bb388
--- /dev/null
+++ b/package/ath9k/patches/150-txq_endian.patch
@@ -0,0 +1,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,