Skip to content
Snippets Groups Projects
Commit 4fccf1d3 authored by nbd's avatar nbd
Browse files

add another endianness fix for ath9k, ar9160 now works on ixp4xx, at least in sta mode :)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11886 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 7353ffb2
No related branches found
No related tags found
No related merge requests found
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,
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment