package/madwifi: apply AR71XX PCI workaround on ATH79 as well
authorGabor Juhos <juhosg@openwrt.org>
Fri, 10 Feb 2012 13:16:50 +0000 (13:16 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 10 Feb 2012 13:16:50 +0000 (13:16 +0000)
SVN-Revision: 30414

package/madwifi/Makefile
package/madwifi/patches/400-new_hal.patch
package/madwifi/patches/470-mac_addresss_from_ath5k_platform_data.patch

index a4bcbf70d2dc613b21a381695dc759981914bfc3..5205f9465bf87208d5155e7e0a23011ac24744ac 100644 (file)
@@ -12,7 +12,7 @@ PKG_NAME:=madwifi
 
 PKG_REV:=3314
 PKG_VERSION:=r$(PKG_REV)
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE_PROTO:=svn
 PKG_SOURCE_VERSION:=$(PKG_REV)
index 3989b0fb4d31233ccee5e6e6f99f2a682ba9a0e6..12a59687bed3cb9fd17f66412b004b79e7191849 100644 (file)
@@ -5,7 +5,7 @@
        sc->sc_ah = ah;
  
 +      /* WAR for AR7100 PCI bug */
-+#ifdef CONFIG_ATHEROS_AR71XX
++#if defined(CONFIG_ATHEROS_AR71XX) || defined(CONFIG_ATH79)
 +      if ((ar_device(sc->devid) >= 5210) && (ar_device(sc->devid) < 5416)) {
 +              ath_hal_setcapability(ah, HAL_CAP_DMABURST_RX, 0, HAL_DMABURST_4B, NULL);
 +              ath_hal_setcapability(ah, HAL_CAP_DMABURST_TX, 0, HAL_DMABURST_4B, NULL);
index 2bcd09d863132ba51bdb57695ae455d83bc73eeb..0c35050c5120006200dfcb35c6b419ee5d7666f4 100644 (file)
@@ -32,5 +32,5 @@
 +              ath_hal_setmac(ah, pdata->macaddr);
 +#endif
        /* WAR for AR7100 PCI bug */
- #ifdef CONFIG_ATHEROS_AR71XX
+ #if defined(CONFIG_ATHEROS_AR71XX) || defined(CONFIG_ATH79)
        if ((ar_device(sc->devid) >= 5210) && (ar_device(sc->devid) < 5416)) {