host/mesh: Update SNB beacon before sending it

Authentication value must be recalculated before sending it.

This is port of 5513b86864e3ccd3de710724308e46abbcaa44af
This commit is contained in:
Krzysztof Kopyściński
2021-11-10 06:24:00 +01:00
committed by Krzysztof Kopyściński
parent c3a4b94f6f
commit 4b0e349592
+2 -2
View File
@@ -314,13 +314,13 @@ do_update:
bt_mesh_friend_sec_update(BT_MESH_KEY_ANY);
}
bt_mesh_subnet_foreach(bt_mesh_beacon_update);
if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY) &&
bt_mesh_gatt_proxy_get() == BT_MESH_GATT_PROXY_ENABLED) {
bt_mesh_proxy_beacon_send(NULL);
}
bt_mesh_subnet_foreach(bt_mesh_beacon_update);
if (MYNEWT_VAL(BLE_MESH_CDB)) {
bt_mesh_cdb_iv_update(iv_index, iv_update);
}