Bluetooth: Fix compilation with SMP disabled
This fix SMP dependency checks in connection code. Change-Id: Ic7e515885381bd243c89f2a6e10c356095e79b55 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
74333b74af
commit
bc18a867b4
3 changed files with 18 additions and 19 deletions
|
@ -100,6 +100,11 @@ static void notify_disconnected(struct bt_conn *conn)
|
|||
}
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_SMP)
|
||||
uint8_t bt_conn_enc_key_size(struct bt_conn *conn)
|
||||
{
|
||||
return conn->keys ? conn->keys->enc_size : 0;
|
||||
}
|
||||
|
||||
void bt_conn_identity_resolved(struct bt_conn *conn)
|
||||
{
|
||||
const bt_addr_le_t *rpa;
|
||||
|
@ -921,11 +926,6 @@ int bt_conn_le_conn_update(struct bt_conn *conn, uint16_t min, uint16_t max,
|
|||
return bt_hci_cmd_send(BT_HCI_OP_LE_CONN_UPDATE, buf);
|
||||
}
|
||||
|
||||
uint8_t bt_conn_enc_key_size(struct bt_conn *conn)
|
||||
{
|
||||
return conn->keys ? conn->keys->enc_size : 0;
|
||||
}
|
||||
|
||||
struct net_buf *bt_conn_create_pdu(struct nano_fifo *fifo, size_t reserve)
|
||||
{
|
||||
size_t head_reserve = reserve + sizeof(struct bt_hci_acl_hdr) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue