mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
gatt_client: wait until central re-encryption is complete
This commit is contained in:
parent
0234fbbca9
commit
d1e1a57fd3
@ -822,6 +822,9 @@ static int is_value_valid(gatt_client_t *peripheral, uint8_t *packet, uint16_t s
|
|||||||
static int gatt_client_run_for_peripheral( gatt_client_t * peripheral){
|
static int gatt_client_run_for_peripheral( gatt_client_t * peripheral){
|
||||||
// log_info("- handle_peripheral_list, mtu state %u, client state %u", peripheral->mtu_state, peripheral->gatt_client_state);
|
// log_info("- handle_peripheral_list, mtu state %u, client state %u", peripheral->mtu_state, peripheral->gatt_client_state);
|
||||||
|
|
||||||
|
// wait until re-encryption as central is complete
|
||||||
|
if (gap_reconnect_security_setup_active(peripheral->con_handle)) return 0;
|
||||||
|
|
||||||
switch (peripheral->mtu_state) {
|
switch (peripheral->mtu_state) {
|
||||||
case SEND_MTU_EXCHANGE:
|
case SEND_MTU_EXCHANGE:
|
||||||
peripheral->mtu_state = SENT_MTU_EXCHANGE;
|
peripheral->mtu_state = SENT_MTU_EXCHANGE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user