Home
last modified time | relevance | path

Searched refs:net_idx (Results 1 – 25 of 87) sorted by relevance

1234

/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_core/
Dfast_prov.c39 struct bt_mesh_subnet *bt_mesh_fast_prov_subnet_get(uint16_t net_idx) in bt_mesh_fast_prov_subnet_get() argument
46 if (sub->net_idx == net_idx) { in bt_mesh_fast_prov_subnet_get()
53 if (sub && sub->net_idx == net_idx) { in bt_mesh_fast_prov_subnet_get()
68 if (key->net_idx != BLE_MESH_KEY_UNUSED && in bt_mesh_fast_prov_app_key_find()
76 if (key && key->net_idx != BLE_MESH_KEY_UNUSED && in bt_mesh_fast_prov_app_key_find()
85 uint8_t bt_mesh_set_fast_prov_net_idx(uint16_t net_idx) in bt_mesh_set_fast_prov_net_idx() argument
88 bt_mesh_provisioner_set_fast_prov_net_idx(net_idx); in bt_mesh_set_fast_prov_net_idx()
90 if (bt_mesh_fast_prov_subnet_get(net_idx) == NULL) { in bt_mesh_set_fast_prov_net_idx()
101 uint16_t net_idx = 0U; in bt_mesh_fast_prov_net_key_add() local
104 net_idx = bt_mesh_provisioner_get_fast_prov_net_idx(); in bt_mesh_fast_prov_net_key_add()
[all …]
Dprovisioner_main.c119 sub->net_idx = BLE_MESH_KEY_PRIMARY; in bt_mesh_provisioner_net_create()
150 BT_INFO("NetKeyIndex 0x%03x, NID 0x%02x", sub->net_idx, sub->keys[0].nid); in bt_mesh_provisioner_net_create()
162 bt_mesh_provisioner_local_net_key_del(bt_mesh.p_sub[i]->net_idx, erase); in bt_mesh_provisioner_main_reset()
312 uint8_t element_num, uint16_t net_idx, in bt_mesh_provisioner_provision() argument
326 unicast_addr, element_num, net_idx); in bt_mesh_provisioner_provision()
336 node.net_idx = net_idx; in bt_mesh_provisioner_provision()
709 const uint8_t *bt_mesh_provisioner_net_key_get(uint16_t net_idx) in bt_mesh_provisioner_net_key_get() argument
718 if (sub && sub->net_idx == net_idx) { in bt_mesh_provisioner_net_key_get()
730 struct bt_mesh_subnet *bt_mesh_provisioner_subnet_get(uint16_t net_idx) in bt_mesh_provisioner_subnet_get() argument
737 if (net_idx == BLE_MESH_KEY_ANY) { in bt_mesh_provisioner_subnet_get()
[all …]
Dlocal_operation.c125 const uint8_t *bt_mesh_node_get_local_net_key(uint16_t net_idx) in bt_mesh_node_get_local_net_key() argument
129 if (net_idx > 0xFFF) { in bt_mesh_node_get_local_net_key()
130 BT_ERR("Invalid NetKeyIndex 0x%04x", net_idx); in bt_mesh_node_get_local_net_key()
134 sub = bt_mesh_subnet_get(net_idx); in bt_mesh_node_get_local_net_key()
136 BT_ERR("NetKey 0x%04x not exists", net_idx); in bt_mesh_node_get_local_net_key()
161 int bt_mesh_node_local_net_key_add(uint16_t net_idx, const uint8_t net_key[16]) in bt_mesh_node_local_net_key_add() argument
167 if (net_idx > 0xFFF || net_key == NULL) { in bt_mesh_node_local_net_key_add()
177 sub = bt_mesh_subnet_get(net_idx); in bt_mesh_node_local_net_key_add()
179 BT_WARN("NetKey 0x%04x already exists", net_idx); in bt_mesh_node_local_net_key_add()
184 if (bt_mesh.sub[i].net_idx != BLE_MESH_KEY_UNUSED) { in bt_mesh_node_local_net_key_add()
[all …]
Dprovisioner_main.h31 uint16_t net_idx; /* Node NetKey Index */ member
58 uint8_t element_num, uint16_t net_idx,
90 const uint8_t *bt_mesh_provisioner_net_key_get(uint16_t net_idx);
92 struct bt_mesh_subnet *bt_mesh_provisioner_subnet_get(uint16_t net_idx);
101 uint16_t net_idx, uint16_t *app_idx);
104 uint16_t net_idx, uint16_t app_idx);
106 const uint8_t *bt_mesh_provisioner_local_app_key_get(uint16_t net_idx, uint16_t app_idx);
108 int bt_mesh_provisioner_local_app_key_del(uint16_t net_idx, uint16_t app_idx, bool store);
110 int bt_mesh_provisioner_local_net_key_add(const uint8_t net_key[16], uint16_t *net_idx);
112 int bt_mesh_provisioner_local_net_key_update(const uint8_t net_key[16], uint16_t net_idx);
[all …]
Dsettings.c86 uint16_t net_idx:12, member
123 uint16_t net_idx; member
165 uint16_t net_idx; member
408 static struct bt_mesh_subnet *subnet_alloc(uint16_t net_idx) in subnet_alloc() argument
413 if (bt_mesh.sub[i].net_idx == BLE_MESH_KEY_UNUSED) { in subnet_alloc()
414 bt_mesh.sub[i].net_idx = net_idx; in subnet_alloc()
443 uint16_t net_idx = net_buf_simple_pull_le16(buf); in net_key_set() local
444 sprintf(get, "mesh/nk/%04x", net_idx); in net_key_set()
448 BT_ERR("Failed to load NetKey 0x%03x", net_idx); in net_key_set()
456 sub = bt_mesh_subnet_get(net_idx); in net_key_set()
[all …]
Dcfg_cli.c232 bt_mesh_free_buf(val->net_idx); in cfg_client_recv_status()
258 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in comp_data_status()
280 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in state_status_u8()
323 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in relay_status()
339 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in net_key_status()
343 status.net_idx = net_buf_simple_pull_le16(buf) & 0xfff; in net_key_status()
355 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in app_key_status()
359 key_idx_unpack(buf, &status.net_idx, &status.app_idx); in app_key_status()
371 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in mod_app_status()
394 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in mod_pub_status()
[all …]
Dnet.c73 .net_idx = BLE_MESH_KEY_UNUSED,
78 .net_idx = BLE_MESH_KEY_UNUSED,
147 struct bt_mesh_subnet *bt_mesh_subnet_get(uint16_t net_idx) in bt_mesh_subnet_get() argument
151 if (net_idx == BLE_MESH_KEY_ANY) { in bt_mesh_subnet_get()
156 if (bt_mesh.sub[i].net_idx == net_idx) { in bt_mesh_subnet_get()
258 void friend_cred_refresh(uint16_t net_idx) in friend_cred_refresh() argument
266 cred->net_idx == net_idx) { in friend_cred_refresh()
277 BT_DBG("net_idx 0x%04x", sub->net_idx); in friend_cred_update()
283 cred->net_idx != sub->net_idx) { in friend_cred_update()
302 BT_DBG("net_idx 0x%04x addr 0x%04x", sub->net_idx, addr); in friend_cred_create()
[all …]
Dfriend.c70 static struct bt_mesh_subnet *friend_subnet_get(uint16_t net_idx) in friend_subnet_get() argument
75 sub = bt_mesh_subnet_get(net_idx); in friend_subnet_get()
77 sub = bt_mesh_provisioner_subnet_get(net_idx); in friend_subnet_get()
98 struct bt_mesh_friend *bt_mesh_friend_find(uint16_t net_idx, uint16_t lpn_addr, in bt_mesh_friend_find() argument
103 BT_DBG("net_idx 0x%04x lpn_addr 0x%04x", net_idx, lpn_addr); in bt_mesh_friend_find()
116 if (net_idx != BLE_MESH_KEY_ANY && frnd->net_idx != net_idx) { in bt_mesh_friend_find()
170 friend_cred_del(frnd->net_idx, frnd->lpn); in friend_clear()
203 void bt_mesh_friend_clear_net_idx(uint16_t net_idx) in bt_mesh_friend_clear_net_idx() argument
207 BT_DBG("net_idx 0x%04x", net_idx); in bt_mesh_friend_clear_net_idx()
212 if (frnd->net_idx == BLE_MESH_KEY_UNUSED) { in bt_mesh_friend_clear_net_idx()
[all …]
Dproxy_client.c46 uint16_t net_idx; member
137 …proxy_client_filter_status_recv_cb(server - servers, rx->ctx.addr, server->net_idx, filter_type, l… in filter_status()
440 proxy_client_disconnect_cb(addr, server - servers, server->net_idx, reason); in proxy_disconnected()
449 server->net_idx = BLE_MESH_KEY_UNUSED; in proxy_disconnected()
542 proxy_client_connect_cb(addr, server - servers, server->net_idx); in proxy_write_ccc()
681 ctx.net_id.net_idx = sub->net_idx; in bt_mesh_proxy_client_gatt_adv_recv()
701 int bt_mesh_proxy_client_connect(const uint8_t addr[6], uint8_t addr_type, uint16_t net_idx) in bt_mesh_proxy_client_connect() argument
720 servers[result].net_idx = net_idx; in bt_mesh_proxy_client_connect()
798 if (bt_mesh.sub[i].net_idx != BLE_MESH_KEY_UNUSED) { in bt_mesh_proxy_client_beacon_send()
808 if (bt_mesh.p_sub[i] && bt_mesh.p_sub[i]->net_idx != BLE_MESH_KEY_UNUSED) { in bt_mesh_proxy_client_beacon_send()
[all …]
Dbeacon.c56 if (sub == NULL || sub->net_idx == BLE_MESH_KEY_UNUSED) { in cache_check()
76 uint16_t net_idx = BLE_MESH_KEY_UNUSED; in beacon_complete() local
80 net_idx = (uint16_t)SNB_NET_IDX_GET(user_data); in beacon_complete()
90 sub = bt_mesh_subnet_get(net_idx); in beacon_complete()
93 sub = bt_mesh_provisioner_subnet_get(net_idx); in beacon_complete()
126 sub->net_idx, bt_mesh.iv_index, flags); in bt_mesh_beacon_create()
152 if (sub == NULL || sub->net_idx == BLE_MESH_KEY_UNUSED) { in secure_beacon_send()
193 bt_mesh_adv_send(buf, &send_cb, SNB_NET_IDX_SET(sub->net_idx)); in secure_beacon_send()
285 if (sub == NULL || sub->net_idx == BLE_MESH_KEY_UNUSED) { in update_beacon_observation()
379 sub->net_idx != BLE_MESH_KEY_PRIMARY) { in secure_beacon_recv()
[all …]
Dproxy_client.h33 uint16_t net_idx; member
81 uint8_t conn_handle, uint16_t net_idx);
83 uint16_t net_idx, uint8_t reason);
84 …f void (*proxy_client_recv_filter_status_cb_t)(uint8_t conn_handle, uint16_t src, uint16_t net_idx,
95 int bt_mesh_proxy_client_connect(const uint8_t addr[6], uint8_t addr_type, uint16_t net_idx);
102 int bt_mesh_proxy_client_cfg_send(uint8_t conn_handle, uint16_t net_idx,
Dfriend.h24 bool bt_mesh_friend_match(uint16_t net_idx, uint16_t addr);
26 struct bt_mesh_friend *bt_mesh_friend_find(uint16_t net_idx, uint16_t lpn_addr,
29 bool bt_mesh_friend_queue_has_space(uint16_t net_idx, uint16_t src, uint16_t dst,
44 void bt_mesh_friend_sec_update(uint16_t net_idx);
46 void bt_mesh_friend_clear_net_idx(uint16_t net_idx);
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/api/models/include/
Desp_ble_mesh_config_model_api.h65 uint16_t net_idx; /*!< NetKey Index used by Heartbeat Publication */ member
110 uint16_t net_idx; /*!< The network key index */ member
115 uint16_t net_idx; /*!< The network key index */ member
133 uint16_t net_idx; /*!< The network key index */ member
169 uint16_t net_idx; /*!< The network key index */ member
175 uint16_t net_idx; /*!< The network key index */ member
271 uint16_t net_idx; /*!< The network key index */ member
277 uint16_t net_idx; /*!< The network key index */ member
282 uint16_t net_idx; /*!< The network key index */ member
289 uint16_t net_idx; /*!< The network key index */ member
[all …]
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_core/include/
Dcfg_cli.h62 uint16_t net_idx, const uint8_t net_key[16]);
65 uint16_t net_idx, uint16_t app_idx,
129 uint16_t net_idx; member
153 uint16_t net_idx; member
158 uint16_t net_idx; member
208 uint16_t net_idx; member
220 struct net_buf_simple *net_idx; member
225 uint16_t net_idx; member
231 uint16_t net_idx; member
245 uint16_t net_idx; member
[all …]
Dcfg_srv.h47 uint16_t net_idx; member
150 uint16_t net_idx; member
154 uint16_t net_idx; member
158 uint16_t net_idx; member
161 uint16_t net_idx; member
166 uint16_t net_idx; member
171 uint16_t net_idx; member
175 uint16_t net_idx; member
194 uint16_t net_idx; member
203 uint16_t net_idx; member
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/
Dble_mesh_fast_prov_operation.c37 .net_idx = ESP_BLE_MESH_KEY_UNUSED,
53 uint8_t elem_num, uint16_t net_idx, in example_store_node_info() argument
69 node->net_idx = net_idx; in example_store_node_info()
83 node->net_idx = net_idx; in example_store_node_info()
339 set.app_key_add.net_idx = add_key->net_idx; in example_send_config_appkey_add()
344 key = esp_ble_mesh_get_fast_prov_app_key(info->net_idx, info->app_idx); in example_send_config_appkey_add()
349 set.app_key_add.net_idx = info->net_idx; in example_send_config_appkey_add()
356 common.ctx.net_idx = info->net_idx; in example_send_config_appkey_add()
379 common.ctx.net_idx = info->net_idx; in example_send_generic_onoff_get()
412 common.ctx.net_idx = info->net_idx; in example_send_generic_onoff_set()
[all …]
Dble_mesh_fast_prov_client_model.c136 .net_idx = fast_prov_srv->net_idx, in example_send_self_prov_node_addr()
186 .net_idx = node->net_idx, in example_get_all_node_addr()
231 .net_idx = node->net_idx, in example_fast_prov_client_recv_timeout()
265 .net_idx = fast_prov_srv->net_idx, in example_fast_prov_client_recv_timeout()
293 .net_idx = node->net_idx, in example_fast_prov_client_recv_timeout()
391 .net_idx = node->net_idx, in example_fast_prov_client_recv_status()
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_proxy_api.c56 uint16_t net_idx) in esp_ble_mesh_proxy_client_connect() argument
73 arg.proxy_client_connect.net_idx = net_idx; in esp_ble_mesh_proxy_client_connect()
96 esp_err_t esp_ble_mesh_proxy_client_set_filter_type(uint8_t conn_handle, uint16_t net_idx, in esp_ble_mesh_proxy_client_set_filter_type() argument
113 arg.proxy_client_set_filter_type.net_idx = net_idx; in esp_ble_mesh_proxy_client_set_filter_type()
120 esp_err_t esp_ble_mesh_proxy_client_add_filter_addr(uint8_t conn_handle, uint16_t net_idx, in esp_ble_mesh_proxy_client_add_filter_addr() argument
137 arg.proxy_client_add_filter_addr.net_idx = net_idx; in esp_ble_mesh_proxy_client_add_filter_addr()
145 esp_err_t esp_ble_mesh_proxy_client_remove_filter_addr(uint8_t conn_handle, uint16_t net_idx, in esp_ble_mesh_proxy_client_remove_filter_addr() argument
162 arg.proxy_client_remove_filter_addr.net_idx = net_idx; in esp_ble_mesh_proxy_client_remove_filter_addr()
Desp_ble_mesh_local_data_operation_api.c127 const uint8_t *esp_ble_mesh_node_get_local_net_key(uint16_t net_idx) in esp_ble_mesh_node_get_local_net_key() argument
129 return btc_ble_mesh_node_get_local_net_key(net_idx); in esp_ble_mesh_node_get_local_net_key()
137 esp_err_t esp_ble_mesh_node_add_local_net_key(const uint8_t net_key[16], uint16_t net_idx) in esp_ble_mesh_node_add_local_net_key() argument
142 if (net_key == NULL || net_idx > 0xFFF) { in esp_ble_mesh_node_add_local_net_key()
152 arg.node_add_local_net_key.net_idx = net_idx; in esp_ble_mesh_node_add_local_net_key()
159 esp_err_t esp_ble_mesh_node_add_local_app_key(const uint8_t app_key[16], uint16_t net_idx, uint16_t… in esp_ble_mesh_node_add_local_app_key() argument
164 if (app_key == NULL || net_idx > 0xFFF || app_idx > 0xFFF) { in esp_ble_mesh_node_add_local_app_key()
174 arg.node_add_local_app_key.net_idx = net_idx; in esp_ble_mesh_node_add_local_app_key()
Desp_ble_mesh_networking_api.c178 ctx->net_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_server_model_send_msg()
195 ctx->net_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_client_model_send_msg()
399 uint16_t net_idx, uint16_t app_idx) in esp_ble_mesh_provisioner_add_local_app_key() argument
410 arg.add_local_app_key.net_idx = net_idx; in esp_ble_mesh_provisioner_add_local_app_key()
422 uint16_t net_idx, uint16_t app_idx) in esp_ble_mesh_provisioner_update_local_app_key() argument
438 arg.update_local_app_key.net_idx = net_idx; in esp_ble_mesh_provisioner_update_local_app_key()
444 const uint8_t *esp_ble_mesh_provisioner_get_local_app_key(uint16_t net_idx, uint16_t app_idx) in esp_ble_mesh_provisioner_get_local_app_key() argument
446 return bt_mesh_provisioner_local_app_key_get(net_idx, app_idx); in esp_ble_mesh_provisioner_get_local_app_key()
473 esp_err_t esp_ble_mesh_provisioner_add_local_net_key(const uint8_t net_key[16], uint16_t net_idx) in esp_ble_mesh_provisioner_add_local_net_key() argument
478 if (net_idx == ESP_BLE_MESH_KEY_PRIMARY) { in esp_ble_mesh_provisioner_add_local_net_key()
[all …]
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_config_model.c178 if (p_src_data->status_cb.netkey_list.net_idx) { in btc_ble_mesh_config_client_copy_req_data()
179 length = p_src_data->status_cb.netkey_list.net_idx->len; in btc_ble_mesh_config_client_copy_req_data()
180 p_dest_data->status_cb.netkey_list.net_idx = bt_mesh_alloc_buf(length); in btc_ble_mesh_config_client_copy_req_data()
181 if (!p_dest_data->status_cb.netkey_list.net_idx) { in btc_ble_mesh_config_client_copy_req_data()
185 net_buf_simple_add_mem(p_dest_data->status_cb.netkey_list.net_idx, in btc_ble_mesh_config_client_copy_req_data()
186 p_src_data->status_cb.netkey_list.net_idx->data, in btc_ble_mesh_config_client_copy_req_data()
187 p_src_data->status_cb.netkey_list.net_idx->len); in btc_ble_mesh_config_client_copy_req_data()
260 bt_mesh_free_buf(arg->status_cb.netkey_list.net_idx); in btc_ble_mesh_config_client_free_req_data()
339 params.ctx.net_idx = ctx->net_idx; in bt_mesh_config_client_cb_evt_to_btc()
405 param.ctx.net_idx = params->ctx.net_idx; in btc_ble_mesh_config_client_get_state()
[all …]
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/btc/include/
Dbtc_ble_mesh_prov.h118 uint16_t net_idx; member
122 uint16_t net_idx; member
187 uint16_t net_idx; member
192 uint16_t net_idx; member
203 uint16_t net_idx; member
207 uint16_t net_idx; member
254 uint16_t net_idx; member
276 uint16_t net_idx; member
283 uint16_t net_idx; member
288 uint16_t net_idx; member
[all …]
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_client/main/
Dmain.c33 uint16_t net_idx; /* NetKey Index */ member
38 .net_idx = ESP_BLE_MESH_KEY_UNUSED,
116 store.net_idx, store.app_idx, store.onoff, store.tid); in mesh_example_info_restore()
120 static void prov_complete(uint16_t net_idx, uint16_t addr, uint8_t flags, uint32_t iv_index) in prov_complete() argument
122 ESP_LOGI(TAG, "net_idx: 0x%04x, addr: 0x%04x", net_idx, addr); in prov_complete()
125 store.net_idx = net_idx; in prov_complete()
158 prov_complete(param->node_prov_complete.net_idx, param->node_prov_complete.addr, in example_ble_mesh_provisioning_cb()
179 common.ctx.net_idx = store.net_idx; in example_ble_mesh_send_gen_onoff_set()
243 param->value.state_change.appkey_add.net_idx, in example_ble_mesh_config_server_cb()
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/api/core/include/
Desp_ble_mesh_networking_api.h329 uint16_t net_idx, uint16_t app_idx);
342 uint16_t net_idx, uint16_t app_idx);
353 const uint8_t *esp_ble_mesh_provisioner_get_local_app_key(uint16_t net_idx, uint16_t app_idx);
385 esp_err_t esp_ble_mesh_provisioner_add_local_net_key(const uint8_t net_key[16], uint16_t net_idx);
396 esp_err_t esp_ble_mesh_provisioner_update_local_net_key(const uint8_t net_key[16], uint16_t net_idx
406 const uint8_t *esp_ble_mesh_provisioner_get_local_net_key(uint16_t net_idx);
642 const uint8_t *esp_ble_mesh_get_fast_prov_app_key(uint16_t net_idx, uint16_t app_idx);
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_client/main/
Dmain.c116 .net_idx = ESP_BLE_MESH_KEY_PRIMARY,
140 uint8_t elem_num, uint16_t net_idx) in provisioner_prov_complete() argument
147 node_index, unicast_addr, elem_num, net_idx); in provisioner_prov_complete()
157 err = example_store_node_info(uuid, unicast_addr, elem_num, prov_info.net_idx, in provisioner_prov_complete()
173 .net_idx = node->net_idx, in provisioner_prov_complete()
180 .net_idx = prov_info.net_idx, in provisioner_prov_complete()
420 node->fp_net_idx = prov_info.net_idx; in example_config_client_callback()
430 .net_idx = node->net_idx, in example_config_client_callback()
453 .net_idx = node->net_idx, in example_config_client_callback()
460 .net_idx = prov_info.net_idx, in example_config_client_callback()
[all …]

1234