diff options
author | Prathyusha N <prathyusha.n@samsung.com> | 2019-12-03 15:31:24 +0530 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-12-03 10:21:22 -0800 |
commit | 980525a7623ade2e0f164d3c4e1c6d702699f357 (patch) | |
tree | 66603685af537d666bf2b7f5949967a4e62b467f /mesh/pb-adv.c | |
parent | e21806eafc80d67894bd3642c8bc063f16ebb46f (diff) | |
download | bluez-980525a7623ade2e0f164d3c4e1c6d702699f357.tar.gz |
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.
Diffstat (limited to 'mesh/pb-adv.c')
-rw-r--r-- | mesh/pb-adv.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |