diff mbox

add delays in pcu.c and qcu.c of ath5k when creating mesh-network on routerstation pro with ar71xx board and atheros 5213A

Message ID 201010121117.45101.br1@einfach.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Bruno Randolf Oct. 12, 2010, 2:17 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath5k/pcu.c 
b/drivers/net/wireless/ath/ath5k/pcu.c
index 095d30b..6dc01d6 100644
--- a/drivers/net/wireless/ath/ath5k/pcu.c
+++ b/drivers/net/wireless/ath/ath5k/pcu.c
@@ -615,8 +615,9 @@  void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 
next_beacon, u32 
        if (ah->ah_sc->opmode == NL80211_IFTYPE_AP ||
            ah->ah_sc->opmode == NL80211_IFTYPE_MESH_POINT)                             
                ath5k_hw_reg_write(ah, 0, AR5K_TIMER0);                                 
+       else                                                                            
+               ath5k_hw_reg_write(ah, next_beacon, AR5K_TIMER0);                       
                                                                                        
-       ath5k_hw_reg_write(ah, next_beacon, AR5K_TIMER0);                               
        ath5k_hw_reg_write(ah, timer1, AR5K_TIMER1);                                    
        ath5k_hw_reg_write(ah, timer2, AR5K_TIMER2);