ble_mesh: stack: The value of expect_ack_for will be rewrited after send_pub_key().

For case MESH/PVNR/PROV/BV-04-C
This commit is contained in:
wangjialiang 2022-07-21 20:25:19 +08:00 committed by BOT
parent 5830ac8b12
commit ee7d448e3c

View File

@ -2943,6 +2943,12 @@ static void gen_prov_ack(const uint8_t idx, struct prov_rx *rx, struct net_buf_s
case PROV_START:
pub_key_oob = link[idx].conf_inputs[13];
send_pub_key(idx, pub_key_oob);
/* For case MESH/PVNR/PROV/BV-04-C, if using OOB public key,
* the value of expect_ack_for shall be PROV_PUB_KEY.
*/
if (pub_key_oob) {
return;
}
break;
case PROV_PUB_KEY:
prov_gen_dh_key(idx);