diff options
author | Joerg Albert <jal2@gmx.de> | 2009-09-15 17:27:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:38 -0400 |
commit | 181af387033e20065e94363d07ecbace7738278c (patch) | |
tree | 7022e3a625e89ac9f1bf55bdf75eb95b88752485 /drivers/net/wireless/ath/ar9170/cmd.c | |
parent | 7c52c07de8bd0433db6b3e0147544e5a2f01b786 (diff) |
ar9170: handle overflow in tsf_low register during get_tsf
ar9170_op_get_tsf: handle a carry from TSF_L into TSF_H
by reading TSF_H twice.
Signed-off-by: Joerg Albert <jal2@gmx.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/cmd.c')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ar9170/cmd.c b/drivers/net/wireless/ath/ar9170/cmd.c index f57a6200167b..cf6f5c4174a6 100644 --- a/drivers/net/wireless/ath/ar9170/cmd.c +++ b/drivers/net/wireless/ath/ar9170/cmd.c | |||
@@ -72,8 +72,7 @@ int ar9170_write_reg(struct ar9170 *ar, const u32 reg, const u32 val) | |||
72 | return err; | 72 | return err; |
73 | } | 73 | } |
74 | 74 | ||
75 | static int ar9170_read_mreg(struct ar9170 *ar, int nregs, | 75 | int ar9170_read_mreg(struct ar9170 *ar, int nregs, const u32 *regs, u32 *out) |
76 | const u32 *regs, u32 *out) | ||
77 | { | 76 | { |
78 | int i, err; | 77 | int i, err; |
79 | __le32 *offs, *res; | 78 | __le32 *offs, *res; |