summaryrefslogtreecommitdiffstats
path: root/stack/rfcomm/rfc_ts_frames.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack/rfcomm/rfc_ts_frames.c')
-rw-r--r--stack/rfcomm/rfc_ts_frames.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stack/rfcomm/rfc_ts_frames.c b/stack/rfcomm/rfc_ts_frames.c
index 3831ab5eb..9b3cdca84 100644
--- a/stack/rfcomm/rfc_ts_frames.c
+++ b/stack/rfcomm/rfc_ts_frames.c
@@ -25,6 +25,7 @@
#include <stddef.h>
#include "bt_target.h"
+#include "btcore/include/counter.h"
#include "gki.h"
#include "rfcdefs.h"
#include "port_api.h"
@@ -218,7 +219,8 @@ void rfc_send_buf_uih (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf)
}
else
{
-
+ counter_add("rfcomm.tx.frames", 1);
+ counter_add("rfcomm.tx.bytes", p_buf->len);
L2CA_DataWrite (p_mcb->lcid, p_buf);
}
}