You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2021/05/27 08:20:39 UTC

[mynewt-nimble] 12/31: Revert "mesh: Send Link Close message when closing link"

This is an automated email from the ASF dual-hosted git repository.

naraj pushed a commit to branch revert-958-mesh_sync_march21
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 08203561e2567035b49e0f598390386ae67bc6a1
Author: MichaƂ Narajowski <mi...@codecoup.pl>
AuthorDate: Thu May 27 10:20:19 2021 +0200

    Revert "mesh: Send Link Close message when closing link"
    
    This reverts commit 16efc1651aac7f82714c89d6338407cb67383aed.
---
 nimble/host/mesh/src/pb_adv.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/nimble/host/mesh/src/pb_adv.c b/nimble/host/mesh/src/pb_adv.c
index 653ec03..28391b1 100644
--- a/nimble/host/mesh/src/pb_adv.c
+++ b/nimble/host/mesh/src/pb_adv.c
@@ -125,7 +125,6 @@ static void gen_prov_ack_send(uint8_t xact_id);
 static void link_open(struct prov_rx *rx, struct os_mbuf *buf);
 static void link_ack(struct prov_rx *rx, struct os_mbuf *buf);
 static void link_close(struct prov_rx *rx, struct os_mbuf *buf);
-static void prov_link_close(enum prov_bearer_link_status status);
 
 static void buf_sent(int err, void *user_data)
 {
@@ -282,7 +281,7 @@ static void protocol_timeout(struct ble_npl_event *work)
 	BT_DBG("");
 
 	link.rx.seg = 0U;
-	prov_link_close(PROV_BEARER_LINK_STATUS_TIMEOUT);
+	close_link(PROV_BEARER_LINK_STATUS_TIMEOUT);
 }
 /*******************************************************************************
  * Generic provisioning