Skip to content

Commit de50834

Browse files
Johan Hedbergnashif
authored andcommitted
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 <[email protected]>
1 parent 683e14c commit de50834

File tree

1 file changed

+3
-3
lines changed
  • subsys/bluetooth/host/mesh

1 file changed

+3
-3
lines changed

subsys/bluetooth/host/mesh/prov.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static void prov_clear_tx(void)
269269
free_segments();
270270
}
271271

272-
static void reset_link(void)
272+
static void reset_adv_link(void)
273273
{
274274
prov_clear_tx();
275275

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

11511151
if (k_uptime_get() - link.tx.start > TRANSACTION_TIMEOUT) {
11521152
BT_WARN("Giving up transaction");
1153-
reset_link();
1153+
reset_adv_link();
11541154
return;
11551155
}
11561156

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

1227-
reset_link();
1227+
reset_adv_link();
12281228
}
12291229

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

0 commit comments

Comments
 (0)