aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath5k/base.c')
-rw-r--r--drivers/net/wireless/ath5k/base.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index b5c0a0d7a81c..8862d245c82b 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -1739,8 +1739,10 @@ ath5k_check_ibss_tsf(struct ath5k_softc *sc, struct sk_buff *skb,
1739 1739
1740 ATH5K_DBG_UNLIMIT(sc, ATH5K_DEBUG_BEACON, 1740 ATH5K_DBG_UNLIMIT(sc, ATH5K_DEBUG_BEACON,
1741 "beacon %llx mactime %llx (diff %lld) tsf now %llx\n", 1741 "beacon %llx mactime %llx (diff %lld) tsf now %llx\n",
1742 bc_tstamp, rxs->mactime, 1742 (unsigned long long)bc_tstamp,
1743 (rxs->mactime - bc_tstamp), tsf); 1743 (unsigned long long)rxs->mactime,
1744 (unsigned long long)(rxs->mactime - bc_tstamp),
1745 (unsigned long long)tsf);
1744 1746
1745 /* 1747 /*
1746 * Sometimes the HW will give us a wrong tstamp in the rx 1748 * Sometimes the HW will give us a wrong tstamp in the rx
@@ -1756,7 +1758,8 @@ ath5k_check_ibss_tsf(struct ath5k_softc *sc, struct sk_buff *skb,
1756 if (bc_tstamp > rxs->mactime) { 1758 if (bc_tstamp > rxs->mactime) {
1757 ATH5K_DBG_UNLIMIT(sc, ATH5K_DEBUG_BEACON, 1759 ATH5K_DBG_UNLIMIT(sc, ATH5K_DEBUG_BEACON,
1758 "fixing mactime from %llx to %llx\n", 1760 "fixing mactime from %llx to %llx\n",
1759 rxs->mactime, tsf); 1761 (unsigned long long)rxs->mactime,
1762 (unsigned long long)tsf);
1760 rxs->mactime = tsf; 1763 rxs->mactime = tsf;
1761 } 1764 }
1762 1765