mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-19 15:40:52 +00:00
l2cap: hci_remote_features_query already called in l2cap_handle_connection_complete already for outgoing connections
This commit is contained in:
parent
dbe0d85cf7
commit
da93d0adf8
@ -2131,12 +2131,10 @@ uint8_t l2cap_create_channel(btstack_packet_handler_t channel_packet_handler, bd
|
|||||||
|
|
||||||
// state: L2CAP_STATE_WAIT_REMOTE_SUPPORTED_FEATURES
|
// state: L2CAP_STATE_WAIT_REMOTE_SUPPORTED_FEATURES
|
||||||
|
|
||||||
// check if remote supported features are already received
|
// simulate if remote supported features if already received
|
||||||
if (hci_remote_features_available(conn->con_handle)) {
|
if (hci_remote_features_available(conn->con_handle)) {
|
||||||
// simulate remote features received
|
// simulate remote features received
|
||||||
l2cap_handle_remote_supported_features_received(channel);
|
l2cap_handle_remote_supported_features_received(channel);
|
||||||
} else {
|
|
||||||
hci_remote_features_query(conn->con_handle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user