mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02: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:
@@ -2943,6 +2943,12 @@ static void gen_prov_ack(const uint8_t idx, struct prov_rx *rx, struct net_buf_s
|
|||||||
case PROV_START:
|
case PROV_START:
|
||||||
pub_key_oob = link[idx].conf_inputs[13];
|
pub_key_oob = link[idx].conf_inputs[13];
|
||||||
send_pub_key(idx, pub_key_oob);
|
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;
|
break;
|
||||||
case PROV_PUB_KEY:
|
case PROV_PUB_KEY:
|
||||||
prov_gen_dh_key(idx);
|
prov_gen_dh_key(idx);
|
||||||
|
Reference in New Issue
Block a user