l2cap: hci_remote_features_query already called in l2cap_handle_connection_complete already for outgoing connections

This commit is contained in:
Matthias Ringwald 2021-10-29 10:20:44 +02:00
parent dbe0d85cf7
commit da93d0adf8

View File

@ -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);
} }
} }