gap: trigger send of le conn param update on gap_request_connection_parameter_update

This commit is contained in:
Matthias Ringwald 2019-12-04 14:23:24 +01:00
parent aaf0c1d162
commit 09c9c96382
2 changed files with 7 additions and 1 deletions

View File

@ -861,6 +861,11 @@ typedef uint8_t sm_key_t[16];
*/
#define L2CAP_EVENT_ERTM_BUFFER_RELEASED 0x7e
/*
* @format
*/
#define L2CAP_EVENT_TRIGGER_RUN 0x77
// RFCOMM EVENTS

View File

@ -4710,7 +4710,8 @@ int gap_request_connection_parameter_update(hci_con_handle_t con_handle, uint16_
connection->le_conn_latency = conn_latency;
connection->le_supervision_timeout = supervision_timeout;
connection->le_con_parameter_update_state = CON_PARAMETER_UPDATE_SEND_REQUEST;
hci_run();
uint8_t l2cap_trigger_run_event[2] = { L2CAP_EVENT_TRIGGER_RUN, 0};
hci_emit_event(l2cap_trigger_run_event, sizeof(l2cap_trigger_run_event), 0);
return 0;
}