Bluetooth: Export bt_hci_cmd_send_sync() for SMP use

The function bt_hci_cmd_send_sync() would be used in LE SMP code for
using HCI controller for encryption.

Change-Id: I0f8f7963a0bf0597b59f24e6d21b6d1f49072f43
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2015-05-08 12:55:03 +03:00 committed by Anas Nashif
commit 7a995c0a60
2 changed files with 4 additions and 2 deletions

View file

@ -109,8 +109,8 @@ int bt_hci_cmd_send(uint16_t opcode, struct bt_buf *buf)
return 0;
}
static int bt_hci_cmd_send_sync(uint16_t opcode, struct bt_buf *buf,
struct bt_buf **rsp)
int bt_hci_cmd_send_sync(uint16_t opcode, struct bt_buf *buf,
struct bt_buf **rsp)
{
struct nano_sem sync_sem;
int err;

View file

@ -79,3 +79,5 @@ struct bt_dev {
struct bt_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len);
int bt_hci_cmd_send(uint16_t opcode, struct bt_buf *buf);
int bt_hci_cmd_send_sync(uint16_t opcode, struct bt_buf *buf,
struct bt_buf **rsp);