[package] mac80211: update compat-wireless to 2009-01-07, and refresh ath9k patches
[openwrt-10.03/.git] / package / mac80211 / patches / 409-ath9k-remove-u16-casts-from-rtc-register-access.patch
similarity index 78%
rename from package/mac80211/patches/410-ath9k-remove-u16-casts-from-rtc-register-access.patch
rename to package/mac80211/patches/409-ath9k-remove-u16-casts-from-rtc-register-access.patch
index 871979d149858b79921182ad47ad943c7f275f24..7aa2ee34f5e2c8d0edc20bbdb17ae1d87751cebe 100644 (file)
@@ -1,7 +1,7 @@
-From 2b4dfbbae2e9e78e09e9e6a82e2d744f54049202 Mon Sep 17 00:00:00 2001
+From 491719852fb049d0a65dc05550b645b62d799453 Mon Sep 17 00:00:00 2001
 From: Gabor Juhos <juhosg@openwrt.org>
-Date: Fri, 2 Jan 2009 16:15:39 +0100
-Subject: [RFC 10/12] ath9k: remove (u16) casts from rtc register access
+Date: Mon, 5 Jan 2009 11:11:28 +0100
+Subject: [PATCH 09/11] ath9k: remove (u16) casts from rtc register access
 
 The RTC register offsets don't fit into 'u16' on the AR913x, so we have
 to remove the existing casts.
@@ -14,7 +14,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
 
 --- a/drivers/net/wireless/ath9k/hw.c
 +++ b/drivers/net/wireless/ath9k/hw.c
-@@ -1026,7 +1026,7 @@ static void ath9k_hw_init_pll(struct ath
+@@ -1010,7 +1010,7 @@ static void ath9k_hw_init_pll(struct ath
                                pll |= SM(0xb, AR_RTC_PLL_DIV);
                }
        }
@@ -23,7 +23,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
  
        udelay(RTC_PLL_SETTLE_DELAY);
  
-@@ -1566,11 +1566,11 @@ static bool ath9k_hw_set_reset(struct at
+@@ -1550,11 +1550,11 @@ static bool ath9k_hw_set_reset(struct at
                        rst_flags |= AR_RTC_RC_MAC_COLD;
        }
  
@@ -38,7 +38,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
                DPRINTF(ah->ah_sc, ATH_DBG_RESET,
                        "RTC stuck in MAC reset\n");
                return false;
-@@ -1592,8 +1592,8 @@ static bool ath9k_hw_set_reset_power_on(
+@@ -1576,8 +1576,8 @@ static bool ath9k_hw_set_reset_power_on(
        REG_WRITE(ah, AR_RTC_FORCE_WAKE, AR_RTC_FORCE_WAKE_EN |
                  AR_RTC_FORCE_WAKE_ON_INT);
  
@@ -49,7 +49,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
  
        if (!ath9k_hw_wait(ah,
                           AR_RTC_STATUS,
-@@ -2662,7 +2662,7 @@ static void ath9k_set_power_sleep(struct
+@@ -2602,7 +2602,7 @@ static void ath9k_set_power_sleep(struct
                if (!AR_SREV_9100(ah))
                        REG_WRITE(ah, AR_RC, AR_RC_AHB | AR_RC_HOSTIF);