Skip to content
Permalink
Browse files

Bluetooth: Mesh: Rename reset_link() to reset_adv_link()

This is a PB-ADV specific internal helper, so rename it appropriately
to avoid any confusion.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information...
jhedberg committed Jun 25, 2019
1 parent d39fbf5 commit 8d9a65c2c849f9e1042da8cd14d0a531ae77087d
Showing with 3 additions and 3 deletions.
  1. +3 −3 subsys/bluetooth/host/mesh/prov.c
@@ -269,7 +269,7 @@ static void prov_clear_tx(void)
free_segments();
}

static void reset_link(void)
static void reset_adv_link(void)
{
prov_clear_tx();

@@ -1150,7 +1150,7 @@ static void prov_retransmit(struct k_work *work)

if (k_uptime_get() - link.tx.start > TRANSACTION_TIMEOUT) {
BT_WARN("Giving up transaction");
reset_link();
reset_adv_link();
return;
}

@@ -1224,7 +1224,7 @@ static void link_close(struct prov_rx *rx, struct net_buf_simple *buf)
{
BT_DBG("len %u", buf->len);

reset_link();
reset_adv_link();
}

static void gen_prov_ctl(struct prov_rx *rx, struct net_buf_simple *buf)

0 comments on commit 8d9a65c

Please sign in to comment.
You can’t perform that action at this time.