hci,l2cap_signaling: fix warning for LE-only

This commit is contained in:
Matthias Ringwald 2020-08-06 20:56:38 +02:00
parent 34e29053a1
commit 1c79b5e3cc
2 changed files with 4 additions and 0 deletions

View File

@ -1896,6 +1896,8 @@ static void hci_handle_connection_failed(hci_connection_t * conn, uint8_t status
if (status == ERROR_CODE_AUTHENTICATION_FAILURE) {
gap_drop_link_key_for_bd_addr(bd_address);
}
#else
UNUSED(status);
#endif
}

View File

@ -94,6 +94,8 @@ static uint16_t l2cap_create_signaling_internal(uint8_t * acl_buffer, hci_con_ha
if (is_classic){
pb = hci_non_flushable_packet_boundary_flag_supported() ? 0x00 : 0x02;
}
#else
UNUSED(is_classic);
#endif
// 0 - Connection handle : PB=pb : BC=00