OSDN Git Service

hcidump: Reset to basic mode when MTU config request is sent
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Sep 2007 05:08:47 +0000 (05:08 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 17 Dec 2012 22:52:59 +0000 (23:52 +0100)
tools/parser/l2cap.c

index 97071ea..a906f42 100644 (file)
@@ -456,6 +456,7 @@ static void conf_opt(int level, void *ptr, int len, int in, uint16_t cid)
 
                switch (h->type & 0x7f) {
                case L2CAP_CONF_MTU:
+                       set_mode(in, cid, 0x00);
                        printf("MTU");
                        if (h->len > 0)
                                printf(" %d", get_val(h->val, h->len));