add another endianness fix for ath9k, ar9160 now works on ixp4xx, at least in sta...
[openwrt-10.03/.git] / package / ath9k / patches / 150-txq_endian.patch
1 This patch fixes another endianness issue.
2 DMA descriptors must always be accessed in native endianness.
3
4 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5
6 --- a/drivers/net/wireless/ath9k/xmit.c
7 +++ b/drivers/net/wireless/ath9k/xmit.c
8 @@ -168,7 +168,7 @@
9                         __func__, txq->axq_qnum,
10                         ito64(bf->bf_daddr), bf->bf_desc);
11         } else {
12 -               *txq->axq_link = cpu_to_le32(bf->bf_daddr);
13 +               *txq->axq_link = bf->bf_daddr;
14                 DPRINTF(sc, ATH_DEBUG_XMIT, "%s: link[%u] (%p)=%llx (%p)\n",
15                         __func__,
16                         txq->axq_qnum, txq->axq_link,