l2cap: fix L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST

This commit is contained in:
Matthias Ringwald 2022-08-26 11:01:50 +02:00
parent e938c062fd
commit 43d9636f05
3 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- HCI: only add paired LE devices with IRK to resolving list
- GAP: use static random address after power up
- L2CAP: fix L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST
### Changed
- HCI Dump: provide log level to log_message implementation

View File

@ -1161,7 +1161,7 @@ typedef uint8_t sm_key_t[16];
* @param handle
* @param interval_min
* @param interval_max
* @param latencey
* @param latency
* @param timeout_multiplier
*/
#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 0x76u

View File

@ -4145,7 +4145,7 @@ static int l2cap_le_signaling_handler_dispatch(hci_con_handle_t handle, uint8_t
}
event[0] = L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST;
event[1] = 8;
event[1] = 10;
little_endian_store_16(event, 2, handle);
(void)memcpy(&event[4], &command[4], 8);
l2cap_emit_event(event, sizeof(event));