Add ACL flow control state (MTU, packets available, packets total) for debug.
Accessed with the debug tool 'hcitool con'
Change-Id: I637d6ac9e2ca63c6e4fc1d24a149f73901704550
diff --git a/lib/bluetooth/hci.h b/lib/bluetooth/hci.h
index 9b5388b..1ed0189 100644
--- a/lib/bluetooth/hci.h
+++ b/lib/bluetooth/hci.h
@@ -2316,6 +2316,9 @@
uint8_t out;
uint16_t state;
uint32_t link_mode;
+ uint32_t mtu;
+ uint32_t cnt;
+ uint32_t pkts;
};
struct hci_dev_req {
diff --git a/tools/hcitool.c b/tools/hcitool.c
index d7a82cc..f489b70 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -135,9 +135,9 @@
char *str;
ba2str(&ci->bdaddr, addr);
str = hci_lmtostr(ci->link_mode);
- printf("\t%s %s %s handle %d state %d lm %s\n",
+ printf("\t%s %s %s handle %d state %d lm %s mtu %d credits %d/%d\n",
ci->out ? "<" : ">", type2str(ci->type),
- addr, ci->handle, ci->state, str);
+ addr, ci->handle, ci->state, str, ci->mtu, ci->cnt, ci->pkts);
bt_free(str);
}