Luiz Augusto von Dentz
fce0e47e9e
Bluetooth: L2CAP: Fix responding with wrong PDU type
[ Upstream commit 9aa9d9473f ]
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: 15f02b9105 ("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-04-05 11:23:36 +02:00
..
2021-09-15 09:50:34 +02:00
2023-03-11 16:40:13 +01:00
2023-01-14 10:16:18 +01:00
2022-07-29 17:19:07 +02:00
2022-10-30 09:41:16 +01:00
2022-06-22 14:13:17 +02:00
2022-05-18 10:23:42 +02:00
2023-04-05 11:23:36 +02:00
2023-01-14 10:15:31 +01:00
2021-07-14 16:56:29 +02:00
2023-03-11 16:40:12 +01:00
2023-03-17 08:45:11 +01:00
2023-02-15 17:22:23 +01:00
2022-05-25 09:17:56 +02:00
2023-03-17 08:45:15 +01:00
2022-03-08 19:09:37 +01:00
2023-02-22 12:55:57 +01:00
2022-08-31 17:15:19 +02:00
2022-12-14 11:32:01 +01:00
2023-01-24 07:19:55 +01:00
2023-01-14 10:15:37 +01:00
2022-11-03 23:57:51 +09:00
2023-04-05 11:23:35 +02:00
2023-04-05 11:23:35 +02:00
2023-03-22 13:30:00 +01:00
2022-11-25 17:45:56 +01:00
2022-12-02 17:39:58 +01:00
2023-03-11 16:39:29 +01:00
2022-04-27 13:53:50 +02:00
2022-03-28 09:57:10 +02:00
2023-03-11 16:39:28 +01:00
2022-12-14 11:32:01 +01:00
2023-02-22 12:55:58 +01:00
2023-03-22 13:30:04 +01:00
2022-01-05 12:40:32 +01:00
2023-03-22 13:29:57 +01:00
2022-04-13 21:01:00 +02:00
2023-02-01 08:23:24 +01:00
2023-02-15 17:22:12 +01:00
2023-03-17 08:45:07 +01:00
2023-02-22 12:55:57 +01:00
2023-01-14 10:16:29 +01:00
2022-01-11 15:25:01 +01:00
2023-02-15 17:22:16 +01:00
2023-03-11 16:39:26 +01:00
2023-02-22 12:55:53 +01:00
2023-01-14 10:16:12 +01:00
2023-03-11 16:40:13 +01:00
2023-03-11 16:40:12 +01:00
2023-03-22 13:29:58 +01:00
2021-11-18 14:04:27 +01:00
2023-03-17 08:45:12 +01:00
2023-01-18 11:44:58 +01:00
2023-04-05 11:23:31 +02:00
2022-12-14 11:32:01 +01:00
2023-01-14 10:15:42 +01:00
2023-03-13 10:19:36 +01:00
2023-02-15 17:22:15 +01:00
2023-04-05 11:23:32 +02:00
2023-03-22 13:29:55 +01:00
2021-06-18 10:00:06 +02:00
2023-01-04 11:39:24 +01:00