summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ar9170/cmd.c
diff options
context:
space:
mode:
authorJoerg Albert <jal2@gmx.de>2009-09-15 23:27:53 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:38 -0400
commit181af387033e20065e94363d07ecbace7738278c (patch)
tree7022e3a625e89ac9f1bf55bdf75eb95b88752485 /drivers/net/wireless/ath/ar9170/cmd.c
parent7c52c07de8bd0433db6b3e0147544e5a2f01b786 (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.c3
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)
return err;
}
-static int ar9170_read_mreg(struct ar9170 *ar, int nregs,
- const u32 *regs, u32 *out)
+int ar9170_read_mreg(struct ar9170 *ar, int nregs, const u32 *regs, u32 *out)
{
int i, err;
__le32 *offs, *res;