All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Hurley <peter@hurleysoftware.com>
To: linux-bluetooth <linux-bluetooth@vger.kernel.org>
Subject: [PATCH] Add NULL packet stat to hciconfig
Date: Sat, 2 Jul 2011 13:44:56 -0400	[thread overview]
Message-ID: <1309628696.22449.13.camel@THOR> (raw)

---
 lib/hci.h         |    1 +
 tools/hciconfig.c |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/hci.h b/lib/hci.h
index 51184ee..7f4812d 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -2284,6 +2284,7 @@ struct hci_filter {
 
 /* Ioctl requests structures */
 struct hci_dev_stats {
+	uint32_t null_rx;	/* # NULL pkts recvd */
 	uint32_t err_rx;
 	uint32_t err_tx;
 	uint32_t cmd_tx;
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index cbd0d0e..cb65c06 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -1863,8 +1863,9 @@ static void print_dev_info(int ctl, struct hci_dev_info *di)
 	printf("\t%s\n", str);
 	bt_free(str);
 
-	printf("\tRX bytes:%d acl:%d sco:%d events:%d errors:%d\n",
-		st->byte_rx, st->acl_rx, st->sco_rx, st->evt_rx, st->err_rx);
+	printf("\tRX bytes:%d acl:%d sco:%d events:%d errors:%d nulls:%d\n",
+		st->byte_rx, st->acl_rx, st->sco_rx, st->evt_rx, st->err_rx,
+		st->null_rx);
 
 	printf("\tTX bytes:%d acl:%d sco:%d commands:%d errors:%d\n",
 		st->byte_tx, st->acl_tx, st->sco_tx, st->cmd_tx, st->err_tx);
-- 
1.7.4.1


                 reply	other threads:[~2011-07-02 17:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1309628696.22449.13.camel@THOR \
    --to=peter@hurleysoftware.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.