mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 05:42:49 +00:00
gap: trigger send of le conn param update on gap_request_connection_parameter_update
This commit is contained in:
parent
aaf0c1d162
commit
09c9c96382
@ -861,6 +861,11 @@ typedef uint8_t sm_key_t[16];
|
|||||||
*/
|
*/
|
||||||
#define L2CAP_EVENT_ERTM_BUFFER_RELEASED 0x7e
|
#define L2CAP_EVENT_ERTM_BUFFER_RELEASED 0x7e
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @format
|
||||||
|
*/
|
||||||
|
#define L2CAP_EVENT_TRIGGER_RUN 0x77
|
||||||
|
|
||||||
|
|
||||||
// RFCOMM EVENTS
|
// RFCOMM EVENTS
|
||||||
|
|
||||||
|
@ -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_conn_latency = conn_latency;
|
||||||
connection->le_supervision_timeout = supervision_timeout;
|
connection->le_supervision_timeout = supervision_timeout;
|
||||||
connection->le_con_parameter_update_state = CON_PARAMETER_UPDATE_SEND_REQUEST;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user