[BUG 5 / 6] L2cap: Spec violations

From: Sungwoo Kim
Date: Thu Nov 17 2022 - 23:04:33 EST


5. BT_DISCONN -> BT_CONFIG by L2CAP_CONN_RSP

btmon log:

Bluetooth monitor ver 5.64
= Note: Linux version 6.1.0-rc2 (x86_64) 0.240003
= Note: Bluetooth subsystem version 2.22 0.240035
(...)
> ACL Data RX: Handle 200 flags 0x00 dlen 1033 #32 [hci0] 11.525124
invalid packet size (12 != 1033)
08 00 01 00 02 01 04 00 01 10 ff ff ............
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0001} [hci0] 11.546310
BR/EDR Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA)
Flags: 0x00000000
Data length: 0
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0002} [hci0] 11.546310
BR/EDR Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA)
Flags: 0x00000000
Data length: 0
> ACL Data RX: Handle 200 flags 0x00 dlen 2061 #33 [hci0] 11.540575
invalid packet size (16 != 2061)
0c 00 01 00 04 01 08 00 40 00 00 00 07 02 00 00 ........@.......
> ACL Data RX: Handle 200 flags 0x00 dlen 2061 #34 [hci0] 11.543844
invalid packet size (16 != 2061)
0c 00 01 00 03 01 08 00 00 00 00 00 00 00 00 00 ................