From 980525a7623ade2e0f164d3c4e1c6d702699f357 Mon Sep 17 00:00:00 2001 From: Prathyusha N Date: Tue, 3 Dec 2019 15:31:24 +0530 Subject: [PATCH] mesh: Fix invalid transaction number in PROV_INVITE For initiator, transaction number starts from 0x00 where as for acceptor transaction number starts from 0x80. Since transaction number is pre-incremented and sent in every packet, initialize it with 0xFF for initiator and 0x7F for acceptor. --- mesh/pb-adv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mesh/pb-adv.c b/mesh/pb-adv.c index 6b4a70052..19d14532a 100644 --- a/mesh/pb-adv.c +++ b/mesh/pb-adv.c @@ -292,6 +292,7 @@ static void pb_adv_packet(void *user_data, const uint8_t *pkt, uint16_t len) /* Only call Open callback once */ if (first) { l_debug("PB-ADV open confirmed"); + session->local_trans_num = 0xFF; session->open_cb(session->user_data, pb_adv_tx, session, PB_ADV); } -- 2.47.3