Searched refs:bt_mesh_prov_link (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/ |
D | provisioner.c | 56 if (!atomic_test_bit(bt_mesh_prov_link.flags, REPROVISION) && in reset_state() 67 bt_mesh_prov_link.expect = PROV_NO_PDU; in prov_link_close() 69 bt_mesh_prov_link.bearer->link_close(status); in prov_link_close() 91 memcpy(bt_mesh_prov_link.conf_inputs.invite, &provisionee.attention_duration, in send_invite() 99 bt_mesh_prov_link.expect = PROV_CAPABILITIES; in send_invite() 113 bool oob_pub_key = bt_mesh_prov_link.conf_inputs.capabilities[3] == PUB_KEY_OOB; in send_start() 116 net_buf_simple_add_u8(&start, bt_mesh_prov_link.algorithm); in send_start() 118 if (atomic_test_bit(bt_mesh_prov_link.flags, REMOTE_PUB_KEY) && oob_pub_key) { in send_start() 120 atomic_set_bit(bt_mesh_prov_link.flags, OOB_PUB_KEY); in send_start() 125 net_buf_simple_add_u8(&start, bt_mesh_prov_link.oob_method); in send_start() [all …]
|
D | provisionee.c | 47 bt_mesh_prov_link.expect = PROV_NO_PDU; in prov_send_fail_msg() 66 atomic_test_bit(bt_mesh_prov_link.flags, REPROVISION)) { in prov_fail() 81 memcpy(bt_mesh_prov_link.conf_inputs.invite, data, PDU_LEN_INVITE); in prov_invite() 129 memcpy(bt_mesh_prov_link.conf_inputs.capabilities, &buf.data[1], PDU_LEN_CAPABILITIES); in prov_invite() 136 bt_mesh_prov_link.expect = PROV_START; in prov_invite() 149 bt_mesh_prov_link.algorithm = data[0]; in prov_start() 152 bt_mesh_prov_link.algorithm = data[0]; in prov_start() 169 atomic_set_bit_to(bt_mesh_prov_link.flags, OOB_PUB_KEY, data[1] == PUB_KEY_OOB); in prov_start() 171 memcpy(bt_mesh_prov_link.conf_inputs.start, data, PDU_LEN_START); in prov_start() 173 bt_mesh_prov_link.expect = PROV_PUB_KEY; in prov_start() [all …]
|
D | prov.c | 31 struct bt_mesh_prov_link bt_mesh_prov_link; variable 35 BUILD_ASSERT(sizeof(bt_mesh_prov_link.conf_inputs) == 145, 41 const size_t offset = offsetof(struct bt_mesh_prov_link, addr); in bt_mesh_prov_reset_state() 43 atomic_clear(bt_mesh_prov_link.flags); in bt_mesh_prov_reset_state() 44 (void)memset((uint8_t *)&bt_mesh_prov_link + offset, 0, in bt_mesh_prov_reset_state() 45 sizeof(bt_mesh_prov_link) - offset); in bt_mesh_prov_reset_state() 141 memcpy(bt_mesh_prov_link.auth, str, size); in get_auth_string() 142 memset(bt_mesh_prov_link.auth + size, 0, in get_auth_string() 143 sizeof(bt_mesh_prov_link.auth) - size); in get_auth_string() 166 sys_put_be32(num, &bt_mesh_prov_link.auth[auth_size - sizeof(num)]); in get_auth_number() [all …]
|
D | prov.h | 119 struct bt_mesh_prov_link { struct 152 extern struct bt_mesh_prov_link bt_mesh_prov_link; argument 158 return bt_mesh_prov_link.bearer->send(buf, cb, NULL); in bt_mesh_prov_send() 170 return bt_mesh_prov_link.algorithm == BT_MESH_PROV_AUTH_CMAC_AES128_AES_CCM ? 16 : 32; in bt_mesh_prov_auth_size_get() 175 return (bt_mesh_prov_link.oob_method == AUTH_METHOD_INPUT || in bt_mesh_prov_protocol_timeout_get() 176 bt_mesh_prov_link.oob_method == AUTH_METHOD_OUTPUT) in bt_mesh_prov_protocol_timeout_get()
|
D | pb_gatt.c | 63 if (!atomic_test_bit(bt_mesh_prov_link.flags, LINK_ACTIVE)) { in protocol_timeout() 69 atomic_test_bit(bt_mesh_prov_link.flags, PROVISIONER)) { in protocol_timeout()
|
D | main.c | 639 bt_mesh_prov_link.bearer->type == BT_MESH_PROV_ADV) { in bt_mesh_start()
|