Bluetooth: SMP: Fix smp_send_pairing_req function name

Prefix smp_send_pairing_req with bt_* to maintain proper
namespace in API.

Change-Id: Ia1f0d1291c5298034b9f1312b0d5a94aaa099cd0
Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
This commit is contained in:
Mariusz Skamra 2015-07-06 14:47:06 +02:00 committed by Anas Nashif
commit 8beeb0f3d3
3 changed files with 4 additions and 4 deletions

View file

@ -466,5 +466,5 @@ int bt_security(struct bt_conn *conn, bt_security_t sec)
keys->ltk.val);
}
return smp_send_pairing_req(conn);
return bt_smp_send_pairing_req(conn);
}

View file

@ -388,7 +388,7 @@ static uint8_t smp_pairing_req(struct bt_conn *conn, struct bt_buf *buf)
return 0;
}
int smp_send_pairing_req(struct bt_conn *conn)
int bt_smp_send_pairing_req(struct bt_conn *conn)
{
struct bt_smp *smp = conn->smp;
struct bt_smp_pairing *req;
@ -830,7 +830,7 @@ static uint8_t smp_security_request(struct bt_conn *conn, struct bt_buf *buf)
return 0;
pair:
if (smp_send_pairing_req(conn) < 0) {
if (bt_smp_send_pairing_req(conn) < 0) {
return BT_SMP_ERR_UNSPECIFIED;
}

View file

@ -132,6 +132,6 @@ struct bt_smp_security_request {
} __packed;
bool bt_smp_irk_matches(const uint8_t irk[16], const bt_addr_t *addr);
int smp_send_pairing_req(struct bt_conn *conn);
int bt_smp_send_pairing_req(struct bt_conn *conn);
void bt_smp_init(void);