acx-mac80211: another bigendian fix
authorNicolas Thill <nico@openwrt.org>
Thu, 30 Aug 2007 16:59:41 +0000 (16:59 +0000)
committerNicolas Thill <nico@openwrt.org>
Thu, 30 Aug 2007 16:59:41 +0000 (16:59 +0000)
SVN-Revision: 8553

package/acx-mac80211/patches/003-endianness_fixes.patch

index 5ced16479953153f33181275cd86f5b6ab06e8e9..f1d8da5b484b1ad8bb7c9a93a069851fdcf17b5f 100644 (file)
            "waiting for cards to probe...\n");
  
        res = pci_register_driver(&acxpci_drv_id);
+diff -ruN acx-mac80211-20070610-old/wlan_hdr.h acx-mac80211-20070610-new/wlan_hdr.h
+--- acx-mac80211-20070610-old/wlan_hdr.h       2007-06-10 20:23:27.000000000 +0200
++++ acx-mac80211-20070610-new/wlan_hdr.h       2007-08-30 18:56:23.000000000 +0200
+@@ -125,7 +125,7 @@
+  #define IEEE16(a,n) a = n, a##i = n,
+ #else
+  #ifdef __BIG_ENDIAN
+-  #define IEEE16(a,n) a = n a##i = ((n&0xff)*256 + ((n&0xff00/256)),
++  #define IEEE16(a,n) a = n, a##i = ((n&0xff)*256 + (n&0xff00)/256),
+  #endif
+ #endif