Luiz Augusto von Dentz
fce0e47e9e
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-04-05 11:23:36 +02:00
..
2020-07-19 18:16:41 -07:00
2022-01-27 10:53:45 +01:00
2021-08-26 08:35:40 -04:00
2023-01-14 10:15:45 +01:00
2022-12-14 11:32:01 +01:00
2021-03-04 11:37:25 +01:00
2020-02-28 08:30:02 +01:00
2022-12-14 11:32:01 +01:00
2021-03-07 12:34:10 +01:00
2019-06-05 17:36:37 +02:00
2020-08-07 11:33:22 -07:00
2021-05-11 14:47:36 +02:00
2022-06-09 10:21:09 +02:00
2023-02-01 08:23:21 +01:00
2022-06-09 10:21:09 +02:00
2023-02-06 07:56:16 +01:00
2022-06-09 10:21:09 +02:00
2020-07-30 09:34:43 +02:00
2023-03-11 16:40:19 +01:00
2022-10-26 13:25:46 +02:00
2020-09-25 20:21:55 +02:00
2023-04-05 11:23:36 +02:00
2023-03-11 16:39:26 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-05-11 12:16:27 +02:00
2020-06-12 21:41:07 +02:00
2022-06-09 10:21:08 +02:00
2020-06-18 13:11:03 +03:00
2022-06-09 10:21:09 +02:00
2020-10-29 17:22:59 -05:00
2020-06-18 13:11:21 +03:00
2022-07-29 17:19:26 +02:00
2020-07-31 16:42:04 +03:00
2022-06-09 10:21:09 +02:00
2018-09-26 12:39:32 +03:00