mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
5830ac8b12
commit
ee7d448e3c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user