Luiz Augusto von Dentz
c35fd1b9b9
Bluetooth: L2CAP: Fix responding with wrong PDU type
...
[ Upstream commit 9aa9d9473f1550d1936c31259720b3f1f4690576 ]
L2CAP_ECRED_CONN_REQ shall be responded with L2CAP_ECRED_CONN_RSP not
L2CAP_LE_CONN_RSP:
L2CAP LE EATT Server - Reject - run
Listening for connections
New client connection with handle 0x002a
Sending L2CAP Request from client
Client received response code 0x15
Unexpected L2CAP response code (expected 0x18)
L2CAP LE EATT Server - Reject - test failed
> ACL Data RX: Handle 42 flags 0x02 dlen 26
LE L2CAP: Enhanced Credit Connection Request (0x17) ident 1 len 18
PSM: 39 (0x0027)
MTU: 64
MPS: 64
Credits: 5
Source CID: 65
Source CID: 66
Source CID: 67
Source CID: 68
Source CID: 69
< ACL Data TX: Handle 42 flags 0x00 dlen 16
LE L2CAP: LE Connection Response (0x15) ident 1 len 8
invalid size
00 00 00 00 00 00 06 00
L2CAP LE EATT Server - Reject - run
Listening for connections
New client connection with handle 0x002a
Sending L2CAP Request from client
Client received response code 0x18
L2CAP LE EATT Server - Reject - test passed
Fixes: 15f02b910562 ("Bluetooth: L2CAP: Add initial code for Enhanced Credit Based Mode")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-30 12:47:50 +02:00
..
2023-03-22 13:31:31 +01:00
2022-12-31 13:14:42 +01:00
2022-08-31 17:16:37 +02:00
2022-10-29 10:12:55 +02:00
2022-06-22 14:22:01 +02:00
2022-07-29 17:25:07 +02:00
2023-03-30 12:47:50 +02:00
2022-12-31 13:14:11 +01:00
2023-03-11 13:57:28 +01:00
2023-03-17 08:48:54 +01:00
2023-02-14 19:17:57 +01:00
2022-05-25 09:57:28 +02:00
2023-03-11 13:57:28 +01:00
2022-03-08 19:12:52 +01:00
2023-02-22 12:57:08 +01:00
2022-08-03 12:03:51 +02:00
2023-03-30 12:47:48 +02:00
2023-01-24 07:22:41 +01:00
2022-12-31 13:14:15 +01:00
2022-11-03 23:59:14 +09:00
2023-03-30 12:47:48 +02:00
2023-03-30 12:47:48 +02:00
2023-03-22 13:31:28 +01:00
2022-11-26 09:24:50 +01:00
2022-12-02 17:41:06 +01:00
2023-03-10 09:39:18 +01:00
2022-04-27 14:38:53 +02:00
2022-03-28 09:58:46 +02:00
2023-03-10 09:39:18 +01:00
2022-12-14 11:37:25 +01:00
2023-02-06 07:59:02 +01:00
2023-02-22 12:57:09 +01:00
2023-03-22 13:31:35 +01:00
2022-01-05 12:42:37 +01:00
2023-03-22 13:31:23 +01:00
2022-04-13 20:59:10 +02:00
2023-02-01 08:27:27 +01:00
2023-02-09 11:26:36 +01:00
2023-03-17 08:48:49 +01:00
2023-02-22 12:57:09 +01:00
2023-01-12 11:58:49 +01:00
2022-01-11 15:35:16 +01:00
2023-02-09 11:26:41 +01:00
2023-03-10 09:39:16 +01:00
2022-04-08 14:23:00 +02:00
2023-02-22 12:57:02 +01:00
2022-12-31 13:14:39 +01:00
2023-03-11 13:57:30 +01:00
2023-03-11 13:57:28 +01:00
2023-03-22 13:31:26 +01:00
2021-11-18 19:17:11 +01:00
2023-03-17 08:48:57 +01:00
2023-01-18 11:48:54 +01:00
2023-03-30 12:47:43 +02:00
2023-03-17 08:48:57 +01:00
2022-12-31 13:14:18 +01:00
2023-03-13 10:20:37 +01:00
2023-02-09 11:26:40 +01:00
2023-03-30 12:47:44 +02:00
2023-03-22 13:31:22 +01:00
2022-08-31 17:16:45 +02:00