Skip to contentSkip to conversation

Add NULL packet stat to hciconfig

PATCH New Peter Hurley 1 participant 1 message Jul 2, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add NULL packet stat to hciconfig

---
 lib/hci.h         |    1 +
 tools/hciconfig.c |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
lib/hci.h +1 -0
index 51184ee..7f4812d 100644
@@ -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;
tools/hciconfig.c +3 -2
index cbd0d0e..cb65c06 100644
@@ -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);
Signature · 1 line
1.7.4.1