Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107690
b: refs/heads/master
c: ba37746
h: refs/heads/master
v: v3
  • Loading branch information
Nick Kossifidis authored and John W. Linville committed Aug 1, 2008
1 parent e502ecd commit 775d446
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0bacdf303f72a3ed34252934114bc04e79222687
refs/heads/master: ba37746e547e14703a5ac86560c6e056620bc4cf
6 changes: 6 additions & 0 deletions trunk/drivers/net/wireless/ath5k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ static int ath5k_hw_post(struct ath5k_hw *ah)
for (c = 0; c < 2; c++) {

cur_reg = regs[c];

/* Save previous value */
init_val = ath5k_hw_reg_read(ah, cur_reg);

for (i = 0; i < 256; i++) {
Expand Down Expand Up @@ -170,6 +172,10 @@ static int ath5k_hw_post(struct ath5k_hw *ah)
var_pattern = 0x003b080f;
ath5k_hw_reg_write(ah, var_pattern, cur_reg);
}

/* Restore previous value */
ath5k_hw_reg_write(ah, init_val, cur_reg);

}

return 0;
Expand Down

0 comments on commit 775d446

Please sign in to comment.