aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 9d48f9a461e1..a0a202de1109 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -2057,9 +2057,7 @@ ath5k_beacon_update_timers(struct ath5k_hw *ah, u64 bc_tsf)
2057void 2057void
2058ath5k_beacon_config(struct ath5k_hw *ah) 2058ath5k_beacon_config(struct ath5k_hw *ah)
2059{ 2059{
2060 unsigned long flags; 2060 spin_lock_bh(&ah->block);
2061
2062 spin_lock_irqsave(&ah->block, flags);
2063 ah->bmisscount = 0; 2061 ah->bmisscount = 0;
2064 ah->imask &= ~(AR5K_INT_BMISS | AR5K_INT_SWBA); 2062 ah->imask &= ~(AR5K_INT_BMISS | AR5K_INT_SWBA);
2065 2063
@@ -2086,7 +2084,7 @@ ath5k_beacon_config(struct ath5k_hw *ah)
2086 2084
2087 ath5k_hw_set_imr(ah, ah->imask); 2085 ath5k_hw_set_imr(ah, ah->imask);
2088 mmiowb(); 2086 mmiowb();
2089 spin_unlock_irqrestore(&ah->block, flags); 2087 spin_unlock_bh(&ah->block);
2090} 2088}
2091 2089
2092static void ath5k_tasklet_beacon(unsigned long data) 2090static void ath5k_tasklet_beacon(unsigned long data)