Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256451
b: refs/heads/master
c: 86fbe17
h: refs/heads/master
i:
  256449: 16e778b
  256447: 73f7a8b
v: v3
  • Loading branch information
Pavel Roskin authored and John W. Linville committed Jul 11, 2011
1 parent b8f1118 commit 5a97dab
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 21394754bcca59aeb4a0b74c95c0220bb727808f
refs/heads/master: 86fbe17d7f0856f4111e1ceaf3f5c399315fb4e7
5 changes: 5 additions & 0 deletions trunk/drivers/net/wireless/ath/ath5k/ani.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,11 @@ ath5k_ani_init(struct ath5k_hw *ah, enum ath5k_ani_mode mode)
if (ah->ah_version < AR5K_AR5212)
return;

if (mode < ATH5K_ANI_MODE_OFF || mode > ATH5K_ANI_MODE_AUTO) {
ATH5K_ERR(ah->ah_sc, "ANI mode %d out of range", mode);
return;
}

/* clear old state information */
memset(&ah->ah_sc->ani_state, 0, sizeof(ah->ah_sc->ani_state));

Expand Down

0 comments on commit 5a97dab

Please sign in to comment.