2009-05-21 05:06:01

by Gustavo F. Padovan

[permalink] [raw]
Subject: [PATCH 1/3] Add case for Enhanced Retransmission and Streaming modes

Just add return values on mode2str for the new modes on L2CAP
---
parser/l2cap.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/parser/l2cap.c b/parser/l2cap.c
index a906f42..4ab4123 100644
--- a/parser/l2cap.c
+++ b/parser/l2cap.c
@@ -306,6 +306,10 @@ static char *mode2str(uint8_t mode)
return "Retransmission";
case 0x02:
return "Flow control";
+ case 0x03:
+ return "Enhanced Retransmission";
+ case 0x04:
+ return "Streaming";
default:
return "Reserved";
}
--
1.6.0.6



2009-05-21 05:06:03

by Gustavo F. Padovan

[permalink] [raw]
Subject: [PATCH 3/3] Add support to show RFC option for ERTM and Streaming Mode

Show TxWindow, MaxTransmit, Retransmission Timeout, Monitor Timeout and
MPS for ERTM and Streaming mode.
---
parser/l2cap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/parser/l2cap.c b/parser/l2cap.c
index 4ab4123..3bcb531 100644
--- a/parser/l2cap.c
+++ b/parser/l2cap.c
@@ -432,7 +432,7 @@ static void conf_rfc(void *ptr, int len, int in, uint16_t cid)
set_mode(in, cid, mode);

printf("RFC 0x%02x (%s", mode, mode2str(mode));
- if (mode == 0x01 || mode == 0x02) {
+ if (mode >= 0x01 && mode <= 0x04) {
uint8_t txwin, maxtrans;
uint16_t rto, mto, mps;
txwin = *((uint8_t *) (ptr + 1));
--
1.6.0.6


2009-05-21 05:06:02

by Gustavo F. Padovan

[permalink] [raw]
Subject: [PATCH 2/3] Add .gitignore for bluez-hcidump

this file avoids dirty things on git status
---
.gitignore | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..76bcb61
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,28 @@
+*.o
+*.a
+*.lo
+*.la
+*.so
+.deps
+.libs
+Makefile
+Makefile.in
+aclocal.m4
+config.guess
+config.h
+config.h.in
+config.log
+config.status
+config.sub
+configure
+depcomp
+install-sh
+libtool
+ltmain.sh
+missing
+stamp-h1
+autom4te.cache
+
+src/bpasniff
+src/csrsniff
+src/hcidump
--
1.6.0.6