X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fmac80211%2Fpatches%2F201-ath5k-WAR-for-AR71xx-PCI-bug.patch;h=eb5547b2b638c3640e4e4386e623fb8d6832a1eb;hp=72274eefe94345907f447c3b532aa68675b9d01b;hb=691b253e47367f64097023ba2afcc595ca120786;hpb=232093a4f656aa2577c3c8425252e88717c1a9c2 diff --git a/package/mac80211/patches/201-ath5k-WAR-for-AR71xx-PCI-bug.patch b/package/mac80211/patches/201-ath5k-WAR-for-AR71xx-PCI-bug.patch index 72274eefe9..eb5547b2b6 100644 --- a/package/mac80211/patches/201-ath5k-WAR-for-AR71xx-PCI-bug.patch +++ b/package/mac80211/patches/201-ath5k-WAR-for-AR71xx-PCI-bug.patch @@ -1,10 +1,10 @@ --- a/drivers/net/wireless/ath/ath5k/initvals.c +++ b/drivers/net/wireless/ath/ath5k/initvals.c -@@ -60,8 +60,14 @@ static const struct ath5k_ini ar5210_ini +@@ -63,8 +63,14 @@ static const struct ath5k_ini ar5210_ini { AR5K_IMR, 0 }, { AR5K_IER, AR5K_IER_DISABLE }, { AR5K_BSR, 0, AR5K_INI_READ }, -+#ifndef CONFIG_ATHEROS_AR71XX ++#if !defined(CONFIG_ATHEROS_AR71XX) && !defined(CONFIG_ATH79) { AR5K_TXCFG, AR5K_DMASIZE_128B }, { AR5K_RXCFG, AR5K_DMASIZE_128B }, +#else @@ -17,11 +17,11 @@ { AR5K_RXNOFRM, 8 }, --- a/drivers/net/wireless/ath/ath5k/dma.c +++ b/drivers/net/wireless/ath/ath5k/dma.c -@@ -858,10 +858,18 @@ ath5k_hw_dma_init(struct ath5k_hw *ah) +@@ -861,10 +861,18 @@ ath5k_hw_dma_init(struct ath5k_hw *ah) * guess we can tweak it and see how it goes ;-) */ if (ah->ah_version != AR5K_AR5210) { -+#ifndef CONFIG_ATHEROS_AR71XX ++#if !defined(CONFIG_ATHEROS_AR71XX) && !defined(CONFIG_ATH79) AR5K_REG_WRITE_BITS(ah, AR5K_TXCFG, AR5K_TXCFG_SDMAMR, AR5K_DMASIZE_128B); AR5K_REG_WRITE_BITS(ah, AR5K_RXCFG,