aboutsummaryrefslogtreecommitdiffstats
path: root/package/acx-mac80211
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2011-06-02 14:37:56 +0000
committerFlorian Fainelli <florian@openwrt.org>2011-06-02 14:37:56 +0000
commit54e9324ca37ec0fbc6875a2b2826019712c76f56 (patch)
tree8e9b305defb716e2107f283ff8582925f582e1d1 /package/acx-mac80211
parent1184342f70242016b49c1238108a3bc84ebeb5ad (diff)
downloadmaster-187ad058-54e9324ca37ec0fbc6875a2b2826019712c76f56.tar.gz
master-187ad058-54e9324ca37ec0fbc6875a2b2826019712c76f56.tar.bz2
master-187ad058-54e9324ca37ec0fbc6875a2b2826019712c76f56.zip
[package] acx-mac80211: add io endianness patch
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27095 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/acx-mac80211')
-rw-r--r--package/acx-mac80211/patches/010-io-endianness.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/acx-mac80211/patches/010-io-endianness.patch b/package/acx-mac80211/patches/010-io-endianness.patch
new file mode 100644
index 0000000000..0515b1fbae
--- /dev/null
+++ b/package/acx-mac80211/patches/010-io-endianness.patch
@@ -0,0 +1,19 @@
+diff --git a/pci.c b/pci.c
+index 4f5c0a7..160f3e0 100644
+--- a/pci.c
++++ b/pci.c
+@@ -273,10 +273,10 @@ static void acxpci_log_txbuffer(acx_device_t * adev)
+ */
+
+ /* OS I/O routines *always* be endianness-clean but having them doesn't hurt */
+-#define acx_readl(v) le32_to_cpu(readl((v)))
+-#define acx_readw(v) le16_to_cpu(readw((v)))
+-#define acx_writew(v,r) writew(le16_to_cpu((v)), r)
+-#define acx_writel(v,r) writel(le32_to_cpu((v)), r)
++#define acx_readl(v) readl((v))
++#define acx_readw(v) readw((v))
++#define acx_writew(v,r) writew((v), r)
++#define acx_writel(v,r) writel((v), r)
+
+ INLINE_IO u32 read_reg32(acx_device_t * adev, unsigned int offset)
+ {