Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2016 02:51:55 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309222 - head/sys/dev/ath
Message-ID:  <201611280251.uAS2ptoi029444@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611280251.uAS2ptoi029444>