Home
last modified time | relevance | path

Searched refs:kr_phase (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/subsys/bluetooth/mesh/
Dsubnet.c56 kr_phase:7; member
111 key.kr_phase = sub->kr_phase; in store_subnet()
150 if (sub && (sub->kr_phase == BT_MESH_KR_PHASE_2)) { in bt_mesh_net_flags()
213 LOG_DBG("Phase 0x%02x -> 0x%02x", sub->kr_phase, new_phase); in key_refresh()
218 sub->kr_phase = new_phase; in key_refresh()
223 sub->kr_phase = new_phase; in key_refresh()
228 if (sub->kr_phase == BT_MESH_KR_NORMAL) { in key_refresh()
233 sub->kr_phase = BT_MESH_KR_NORMAL; in key_refresh()
253 if (sub->kr_phase == BT_MESH_KR_PHASE_1) { in bt_mesh_kr_update()
259 } else if (sub->kr_phase == BT_MESH_KR_PHASE_2 && !kr_flag) { in bt_mesh_kr_update()
[all …]
Dsubnet.h27 #define SUBNET_KEY_TX_IDX(sub) ((sub)->kr_phase == BT_MESH_KR_PHASE_2)
56 uint8_t kr_phase; /* Key Refresh Phase */ member
159 int bt_mesh_subnet_set(uint16_t net_idx, uint8_t kr_phase,
230 return sub->kr_phase != BT_MESH_KR_NORMAL; in bt_mesh_subnet_has_new_key()
Dcdb.c59 kr_phase:7; member
319 sub->kr_phase = key.kr_phase; in cdb_subnet_set()
332 sub->kr_phase = key.kr_phase; in cdb_subnet_set()
495 key.kr_phase = sub->kr_phase; in store_cdb_subnet()
Dmain.c98 subnet->kr_phase = BT_MESH_KR_PHASE_2; in bt_mesh_provision()
100 subnet->kr_phase = BT_MESH_KR_NORMAL; in bt_mesh_provision()
Dapp_keys.c318 if (sub->kr_phase != BT_MESH_KR_PHASE_1) { in bt_mesh_app_key_update()
524 if ((*sub)->kr_phase == BT_MESH_KR_PHASE_2 && app->updated) { in bt_mesh_keys_resolve()
Dbeacon.c671 if (sub->kr_phase == BT_MESH_KR_PHASE_2 && !params->new_key) { in net_beacon_resolve()
Dcfg_srv.c2184 uint8_t kr_phase, status; in krp_get() local
2195 status = bt_mesh_subnet_kr_phase_get(idx, &kr_phase); in krp_get()
2197 return send_krp_status(model, ctx, idx, kr_phase, status); in krp_get()
Dlpn.c1064 if (sub->kr_phase == BT_MESH_KR_PHASE_2 && !rx->new_key) { in bt_mesh_lpn_friend_update()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dcdb.h48 uint8_t kr_phase; member
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_persistence.c516 if (tx.sub->kr_phase != ((test_flags & 1) << 1)) { in test_provisioning_data_load()