Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2013 00:59:17 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r250344 - user/adrian/net80211_tx/tools/tools/ath/athalq
Message-ID:  <201305080059.r480xHN2054745@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed May  8 00:59:17 2013
New Revision: 250344
URL: http://svnweb.freebsd.org/changeset/base/250344

Log:
  Add beacon stuck/resume printing.

Modified:
  user/adrian/net80211_tx/tools/tools/ath/athalq/main.c

Modified: user/adrian/net80211_tx/tools/tools/ath/athalq/main.c
==============================================================================
--- user/adrian/net80211_tx/tools/tools/ath/athalq/main.c	Wed May  8 00:58:18 2013	(r250343)
+++ user/adrian/net80211_tx/tools/tools/ath/athalq/main.c	Wed May  8 00:59:17 2013	(r250344)
@@ -75,6 +75,36 @@ ath_alq_print_intr_status(struct if_ath_
 	    be32toh(is.intr_status));
 }
 
+static void
+ath_alq_print_beacon_miss(struct if_ath_alq_payload *a)
+{
+
+	printf("[%u.%06u] [%llu] BMISS\n",
+	    (unsigned int) be32toh(a->hdr.tstamp_sec),
+	    (unsigned int) be32toh(a->hdr.tstamp_usec),
+	    (unsigned long long) be64toh(a->hdr.threadid));
+}
+
+static void
+ath_alq_print_beacon_stuck(struct if_ath_alq_payload *a)
+{
+
+	printf("[%u.%06u] [%llu] BSTUCK\n",
+	    (unsigned int) be32toh(a->hdr.tstamp_sec),
+	    (unsigned int) be32toh(a->hdr.tstamp_usec),
+	    (unsigned long long) be64toh(a->hdr.threadid));
+}
+
+static void
+ath_alq_print_beacon_resume(struct if_ath_alq_payload *a)
+{
+
+	printf("[%u.%06u] [%llu] BRESUME\n",
+	    (unsigned int) be32toh(a->hdr.tstamp_sec),
+	    (unsigned int) be32toh(a->hdr.tstamp_usec),
+	    (unsigned long long) be64toh(a->hdr.threadid));
+}
+
 int
 main(int argc, const char *argv[])
 {
@@ -147,6 +177,15 @@ main(int argc, const char *argv[])
 			case ATH_ALQ_INTR_STATUS:
 				ath_alq_print_intr_status(a);
 				break;
+			case ATH_ALQ_MISSED_BEACON:
+				ath_alq_print_beacon_miss(a);
+				break;
+			case ATH_ALQ_STUCK_BEACON:
+				ath_alq_print_beacon_stuck(a);
+				break;
+			case ATH_ALQ_RESUME_BEACON:
+				ath_alq_print_beacon_resume(a);
+				break;
 			default:
 				if (be32toh(hdr.sc_hal_magic) == AR5210_MAGIC)
 					ar5210_alq_payload(a);



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