svn commit: r309222 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Mon Nov 28 02:51:56 UTC 2016
Author: adrian
Date: Mon Nov 28 02:51:55 2016
New Revision: 309222
URL: https://svnweb.freebsd.org/changeset/base/309222
Log:
[ath] include logging of TU versions of the TSF values.
The beacon programming side of things deals in TUs and 1/8th TUs, so
it's good to se the TU value here when debugging beaconing issues.
Modified:
head/sys/dev/ath/if_ath_rx.c
Modified: head/sys/dev/ath/if_ath_rx.c
==============================================================================
--- head/sys/dev/ath/if_ath_rx.c Sun Nov 27 20:52:52 2016 (r309221)
+++ head/sys/dev/ath/if_ath_rx.c Mon Nov 28 02:51:55 2016 (r309222)
@@ -420,19 +420,24 @@ ath_recv_mgmt(struct ieee80211_node *ni,
tsf_remainder = (tsf_beacon - tsf_beacon_old) % tsf_intval;
}
- DPRINTF(sc, ATH_DEBUG_BEACON, "%s: old_tsf=%llu, new_tsf=%llu, target_tsf=%llu, delta=%lld, bmiss=%d, remainder=%d\n",
+ DPRINTF(sc, ATH_DEBUG_BEACON, "%s: old_tsf=%llu (%u), new_tsf=%llu (%u), target_tsf=%llu (%u), delta=%lld, bmiss=%d, remainder=%d\n",
__func__,
(unsigned long long) tsf_beacon_old,
+ (unsigned int) (tsf_beacon_old >> 10),
(unsigned long long) tsf_beacon,
+ (unsigned int ) (tsf_beacon >> 10),
(unsigned long long) tsf_beacon_target,
+ (unsigned int) (tsf_beacon_target >> 10),
(long long) tsf_delta,
tsf_delta_bmiss,
tsf_remainder);
- DPRINTF(sc, ATH_DEBUG_BEACON, "%s: tsf=%llu, nexttbtt=%llu, delta=%d\n",
+ DPRINTF(sc, ATH_DEBUG_BEACON, "%s: tsf=%llu (%u), nexttbtt=%llu (%u), delta=%d\n",
__func__,
(unsigned long long) tsf_beacon,
+ (unsigned int) (tsf_beacon >> 10),
(unsigned long long) nexttbtt,
+ (unsigned int) (nexttbtt >> 10),
(int32_t) tsf_beacon - (int32_t) nexttbtt + tsf_intval);
/* We only do syncbeacon on STA VAPs; not on IBSS */
More information about the svn-src-all
mailing list