diff options
-rw-r--r-- | drivers/net/wireless/ath/ath5k/desc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/desc.c b/drivers/net/wireless/ath/ath5k/desc.c index 0391813befd1..dd7cd95c364a 100644 --- a/drivers/net/wireless/ath/ath5k/desc.c +++ b/drivers/net/wireless/ath/ath5k/desc.c | |||
@@ -184,6 +184,11 @@ static int ath5k_hw_setup_4word_tx_desc(struct ath5k_hw *ah, | |||
184 | { | 184 | { |
185 | struct ath5k_hw_4w_tx_ctl *tx_ctl; | 185 | struct ath5k_hw_4w_tx_ctl *tx_ctl; |
186 | unsigned int frame_len; | 186 | unsigned int frame_len; |
187 | |||
188 | /* | ||
189 | * Use local variables for these to reduce load/store access on | ||
190 | * uncached memory | ||
191 | */ | ||
187 | u32 txctl0 = 0, txctl1 = 0, txctl2 = 0, txctl3 = 0; | 192 | u32 txctl0 = 0, txctl1 = 0, txctl2 = 0, txctl3 = 0; |
188 | 193 | ||
189 | tx_ctl = &desc->ud.ds_tx5212.tx_ctl; | 194 | tx_ctl = &desc->ud.ds_tx5212.tx_ctl; |
@@ -209,7 +214,7 @@ static int ath5k_hw_setup_4word_tx_desc(struct ath5k_hw *ah, | |||
209 | if (tx_power > AR5K_TUNE_MAX_TXPOWER) | 214 | if (tx_power > AR5K_TUNE_MAX_TXPOWER) |
210 | tx_power = AR5K_TUNE_MAX_TXPOWER; | 215 | tx_power = AR5K_TUNE_MAX_TXPOWER; |
211 | 216 | ||
212 | /* Clear descriptor */ | 217 | /* Clear descriptor status area */ |
213 | memset(&desc->ud.ds_tx5212.tx_stat, 0, | 218 | memset(&desc->ud.ds_tx5212.tx_stat, 0, |
214 | sizeof(desc->ud.ds_tx5212.tx_stat)); | 219 | sizeof(desc->ud.ds_tx5212.tx_stat)); |
215 | 220 | ||