Home
last modified time | relevance | path

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

1234

/Zephyr-latest/subsys/bluetooth/mesh/
Dsubnet.c64 .net_idx = BT_MESH_KEY_UNUSED,
75 static void clear_net_key(uint16_t net_idx) in clear_net_key() argument
80 LOG_DBG("NetKeyIndex 0x%03x", net_idx); in clear_net_key()
82 snprintk(path, sizeof(path), "bt/mesh/NetKey/%x", net_idx); in clear_net_key()
85 LOG_ERR("Failed to clear NetKeyIndex 0x%03x", net_idx); in clear_net_key()
87 LOG_DBG("Cleared NetKeyIndex 0x%03x", net_idx); in clear_net_key()
91 static void store_subnet(uint16_t net_idx) in store_subnet() argument
98 sub = bt_mesh_subnet_get(net_idx); in store_subnet()
100 LOG_WRN("NetKeyIndex 0x%03x not found", net_idx); in store_subnet()
104 LOG_DBG("NetKeyIndex 0x%03x", net_idx); in store_subnet()
[all …]
Dapp_keys.c44 uint16_t net_idx; member
51 uint16_t net_idx; member
65 .net_idx = BT_MESH_KEY_UNUSED,
109 key.net_idx = app->net_idx, in store_app_key()
182 cb->evt_handler(app->app_idx, app->net_idx, evt); in app_key_evt()
214 app->net_idx = BT_MESH_KEY_UNUSED; in app_key_del()
239 uint8_t bt_mesh_app_key_add(uint16_t app_idx, uint16_t net_idx, in bt_mesh_app_key_add() argument
244 LOG_DBG("net_idx 0x%04x app_idx %04x val %s", net_idx, app_idx, bt_hex(key, 16)); in bt_mesh_app_key_add()
246 if (!bt_mesh_subnet_get(net_idx)) { in bt_mesh_app_key_add()
256 if (app->net_idx != net_idx) { in bt_mesh_app_key_add()
[all …]
Dcfg_cli.c60 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in comp_data_status()
96 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in state_status_u8()
177 uint16_t net_idx; member
186 uint16_t net_idx; in krp_status() local
189 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in krp_status()
193 net_idx = net_buf_simple_pull_le16(buf) & 0xfff; in krp_status()
197 if (param->net_idx != net_idx) { in krp_status()
215 cli->cb->krp_status(cli, ctx->addr, status, net_idx, phase); in krp_status()
234 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in relay_status()
277 uint16_t net_idx; member
[all …]
Dproxy_cli.c38 uint16_t net_idx; member
41 .net_idx = BT_MESH_KEY_UNUSED,
47 static struct bt_mesh_proxy_server *find_proxy_srv(uint16_t net_idx, in find_proxy_srv() argument
59 if (servers[i].net_idx == net_idx) { in find_proxy_srv()
165 srv = find_proxy_srv(sub->net_idx, true, true); in proxy_srv_check_and_get()
305 int bt_mesh_proxy_connect(uint16_t net_idx) in bt_mesh_proxy_connect() argument
309 if (net_idx == BT_MESH_KEY_ANY) { in bt_mesh_proxy_connect()
319 srv = find_proxy_srv(net_idx, true, true); in bt_mesh_proxy_connect()
329 srv->net_idx = net_idx; in bt_mesh_proxy_connect()
334 int bt_mesh_proxy_disconnect(uint16_t net_idx) in bt_mesh_proxy_disconnect() argument
[all …]
Dpriv_beacon_cli.c95 uint16_t net_idx; in handle_node_id_status() local
98 net_idx = net_buf_simple_pull_le16(buf); in handle_node_id_status()
110 rsp->net_idx = net_idx; in handle_node_id_status()
119 .net_idx = net_idx, in handle_node_id_status()
159 int bt_mesh_priv_beacon_cli_set(uint16_t net_idx, uint16_t addr, struct bt_mesh_priv_beacon *val, in bt_mesh_priv_beacon_cli_set() argument
162 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_DEV(net_idx, addr); in bt_mesh_priv_beacon_cli_set()
181 int bt_mesh_priv_beacon_cli_get(uint16_t net_idx, uint16_t addr, struct bt_mesh_priv_beacon *val) in bt_mesh_priv_beacon_cli_get() argument
183 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_DEV(net_idx, addr); in bt_mesh_priv_beacon_cli_get()
197 int bt_mesh_priv_beacon_cli_gatt_proxy_set(uint16_t net_idx, uint16_t addr, uint8_t val, in bt_mesh_priv_beacon_cli_gatt_proxy_set() argument
200 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_DEV(net_idx, addr); in bt_mesh_priv_beacon_cli_gatt_proxy_set()
[all …]
Dcdb.c48 uint16_t net_idx; member
65 uint16_t net_idx; member
92 .net_idx = BT_MESH_KEY_UNUSED,
98 .net_idx = BT_MESH_KEY_UNUSED,
250 val.net_idx); in cdb_node_set()
281 uint16_t net_idx; in cdb_subnet_set() local
289 net_idx = strtol(name, NULL, 16); in cdb_subnet_set()
290 sub = bt_mesh_cdb_subnet_get(net_idx); in cdb_subnet_set()
295 LOG_ERR("No subnet with NetKeyIndex 0x%03x", net_idx); in cdb_subnet_set()
299 LOG_DBG("Deleting NetKeyIndex 0x%03x", net_idx); in cdb_subnet_set()
[all …]
Drpr.h27 .addr = (ctx)->addr, .net_idx = (ctx)->net_idx, \
34 return (a->addr == b->addr) && (a->net_idx == b->net_idx); in rpr_node_equal()
Dpriv_beacon_srv.c138 uint16_t net_idx, uint8_t node_id) in node_id_status_rsp() argument
144 net_buf_simple_add_le16(&buf, net_idx); in node_id_status_rsp()
155 uint16_t net_idx; in handle_node_id_get() local
157 net_idx = net_buf_simple_pull_le16(buf) & 0xfff; in handle_node_id_get()
159 status = bt_mesh_subnet_priv_node_id_get(net_idx, (enum bt_mesh_feat_state *)&node_id); in handle_node_id_get()
160 node_id_status_rsp(mod, ctx, status, net_idx, node_id); in handle_node_id_get()
170 uint16_t net_idx; in handle_node_id_set() local
172 net_idx = net_buf_simple_pull_le16(buf) & 0xfff; in handle_node_id_set()
180 status = bt_mesh_subnet_priv_node_id_set(net_idx, node_id); in handle_node_id_set()
181 node_id_status_rsp(mod, ctx, status, net_idx, node_id); in handle_node_id_set()
Dfriend.h13 bool bt_mesh_friend_match(uint16_t net_idx, uint16_t addr);
15 struct bt_mesh_friend *bt_mesh_friend_find(uint16_t net_idx, uint16_t lpn_addr,
18 bool bt_mesh_friend_queue_has_space(uint16_t net_idx, uint16_t src, uint16_t dst,
33 void bt_mesh_friend_sec_update(uint16_t net_idx);
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dcfg_cli.h188 uint8_t status, uint16_t net_idx);
215 uint8_t status, uint16_t net_idx,
232 uint16_t net_idx, struct net_buf_simple *buf);
279 uint8_t status, uint16_t net_idx,
305 uint16_t net_idx, uint8_t phase);
491 uint16_t net_idx; member
502 int bt_mesh_cfg_cli_node_reset(uint16_t net_idx, uint16_t addr, bool *status);
523 int bt_mesh_cfg_cli_comp_data_get(uint16_t net_idx, uint16_t addr, uint8_t page, uint8_t *rsp,
540 int bt_mesh_cfg_cli_beacon_get(uint16_t net_idx, uint16_t addr, uint8_t *status);
556 int bt_mesh_cfg_cli_krp_get(uint16_t net_idx, uint16_t addr, uint16_t key_net_idx, uint8_t *status,
[all …]
Dcfg.h329 uint8_t bt_mesh_subnet_add(uint16_t net_idx, const uint8_t key[16]);
350 uint8_t bt_mesh_subnet_update(uint16_t net_idx, const uint8_t key[16]);
365 uint8_t bt_mesh_subnet_del(uint16_t net_idx);
373 bool bt_mesh_subnet_exists(uint16_t net_idx);
394 uint8_t bt_mesh_subnet_kr_phase_set(uint16_t net_idx, uint8_t *phase);
404 uint8_t bt_mesh_subnet_kr_phase_get(uint16_t net_idx, uint8_t *phase);
429 uint8_t bt_mesh_subnet_node_id_set(uint16_t net_idx,
440 uint8_t bt_mesh_subnet_node_id_get(uint16_t net_idx,
468 uint8_t bt_mesh_subnet_priv_node_id_set(uint16_t net_idx,
479 uint8_t bt_mesh_subnet_priv_node_id_get(uint16_t net_idx,
[all …]
Dproxy.h39 void (*identity_enabled)(uint16_t net_idx);
45 void (*identity_disabled)(uint16_t net_idx);
88 int bt_mesh_proxy_connect(uint16_t net_idx);
98 int bt_mesh_proxy_disconnect(uint16_t net_idx);
113 int bt_mesh_proxy_solicit(uint16_t net_idx);
Dpriv_beacon_cli.h48 uint16_t net_idx; member
115 int bt_mesh_priv_beacon_cli_set(uint16_t net_idx, uint16_t addr,
127 int bt_mesh_priv_beacon_cli_get(uint16_t net_idx, uint16_t addr,
143 int bt_mesh_priv_beacon_cli_gatt_proxy_set(uint16_t net_idx, uint16_t addr,
154 int bt_mesh_priv_beacon_cli_gatt_proxy_get(uint16_t net_idx, uint16_t addr,
170 int bt_mesh_priv_beacon_cli_node_id_set(uint16_t net_idx, uint16_t addr,
183 int bt_mesh_priv_beacon_cli_node_id_get(uint16_t net_idx, uint16_t addr,
Dbrg_cfg_cli.h128 int bt_mesh_brg_cfg_cli_get(uint16_t net_idx, uint16_t addr, enum bt_mesh_brg_cfg_state *status);
154 int bt_mesh_brg_cfg_cli_set(uint16_t net_idx, uint16_t addr, enum bt_mesh_brg_cfg_state val,
176 int bt_mesh_brg_cfg_cli_table_size_get(uint16_t net_idx, uint16_t addr, uint16_t *size);
198 int bt_mesh_brg_cfg_cli_table_add(uint16_t net_idx, uint16_t addr,
226 int bt_mesh_brg_cfg_cli_table_remove(uint16_t net_idx, uint16_t addr, uint16_t net_idx1,
256 int bt_mesh_brg_cfg_cli_subnets_get(uint16_t net_idx, uint16_t addr,
290 int bt_mesh_brg_cfg_cli_table_get(uint16_t net_idx, uint16_t addr, uint16_t net_idx1,
Dmain.h275 void (*complete)(uint16_t net_idx, uint16_t addr);
297 void (*node_added)(uint16_t net_idx, uint8_t uuid[16], uint16_t addr,
454 int bt_mesh_provision(const uint8_t net_key[16], uint16_t net_idx,
468 int bt_mesh_provision_adv(const uint8_t uuid[16], uint16_t net_idx, uint16_t addr,
481 int bt_mesh_provision_gatt(const uint8_t uuid[16], uint16_t net_idx, uint16_t addr,
498 const uint8_t uuid[16], uint16_t net_idx,
678 void (*established)(uint16_t net_idx, uint16_t friend_addr,
689 void (*terminated)(uint16_t net_idx, uint16_t friend_addr);
703 void (*polled)(uint16_t net_idx, uint16_t friend_addr, bool retry);
728 void (*established)(uint16_t net_idx, uint16_t lpn_addr,
[all …]
Dsar_cfg_cli.h61 int bt_mesh_sar_cfg_cli_transmitter_get(uint16_t net_idx, uint16_t addr,
73 int bt_mesh_sar_cfg_cli_transmitter_set(uint16_t net_idx, uint16_t addr,
85 int bt_mesh_sar_cfg_cli_receiver_get(uint16_t net_idx, uint16_t addr,
97 int bt_mesh_sar_cfg_cli_receiver_set(uint16_t net_idx, uint16_t addr,
Dcdb.h38 uint16_t net_idx; member
46 uint16_t net_idx; member
56 uint16_t net_idx; member
139 uint8_t num_elem, uint16_t net_idx);
255 struct bt_mesh_cdb_subnet *bt_mesh_cdb_subnet_alloc(uint16_t net_idx);
275 struct bt_mesh_cdb_subnet *bt_mesh_cdb_subnet_get(uint16_t net_idx);
335 struct bt_mesh_cdb_app_key *bt_mesh_cdb_app_key_alloc(uint16_t net_idx,
/Zephyr-latest/tests/bluetooth/tester/src/btp/
Dbtp_mesh.h152 uint16_t net_idx; member
162 uint16_t net_idx; member
171 uint16_t net_idx; member
181 uint16_t net_idx; member
190 uint16_t net_idx; member
200 uint16_t net_idx; member
209 uint16_t net_idx; member
219 uint16_t net_idx; member
228 uint16_t net_idx; member
238 uint16_t net_idx; member
[all …]
/Zephyr-latest/samples/bluetooth/mesh_demo/src/
Dmain.c37 static const uint16_t net_idx; variable
123 bt_mesh_cfg_cli_app_key_add(net_idx, addr, net_idx, app_idx, app_key, NULL); in configure()
126 bt_mesh_cfg_cli_mod_app_bind_vnd(net_idx, addr, addr, app_idx, MOD_LF, BT_COMP_ID_LF, NULL); in configure()
129 bt_mesh_cfg_cli_mod_app_bind(net_idx, addr, addr, app_idx, BT_MESH_MODEL_ID_HEALTH_SRV, in configure()
133 bt_mesh_cfg_cli_mod_sub_add_vnd(net_idx, addr, addr, GROUP_ADDR, MOD_LF, BT_COMP_ID_LF, in configure()
144 .net_idx = net_idx, in configure()
147 bt_mesh_cfg_cli_hb_pub_set(net_idx, addr, &pub, NULL); in configure()
188 err = bt_mesh_provision(net_key, net_idx, flags, iv_index, addr, in bt_ready()
213 bt_mesh_cfg_cli_hb_sub_set(net_idx, addr, &sub, NULL); in bt_ready()
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Drpr.c90 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_scan()
132 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_scan_ext()
173 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_scan_srv()
207 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_scan_caps()
235 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_scan_get()
263 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_scan_stop()
288 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_link_get()
314 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_link_close()
335 .net_idx = bt_mesh_shell_target_ctx.net_idx, in cmd_provision_remote()
340 uint16_t net_idx; in cmd_provision_remote() local
[all …]
Dod_priv_proxy.c18 uint16_t net_idx = bt_mesh_shell_target_ctx.net_idx; in cmd_od_priv_gatt_proxy_set() local
23 err = bt_mesh_od_priv_proxy_cli_get(net_idx, addr, &val_rsp); in cmd_od_priv_gatt_proxy_set()
32 err = bt_mesh_od_priv_proxy_cli_set(net_idx, addr, val, &val_rsp); in cmd_od_priv_gatt_proxy_set()
Dpriv_beacon.c19 err = bt_mesh_priv_beacon_cli_get(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_beacon_get()
49 err = bt_mesh_priv_beacon_cli_set(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_beacon_set()
65 err = bt_mesh_priv_beacon_cli_gatt_proxy_get(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_gatt_proxy_get()
88 err = bt_mesh_priv_beacon_cli_gatt_proxy_set(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_gatt_proxy_set()
106 err = bt_mesh_priv_beacon_cli_node_id_get(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_node_id_get()
114 val.net_idx, val.state, val.status); in cmd_priv_node_id_get()
124 val.net_idx = shell_strtoul(argv[1], 0, &err); in cmd_priv_node_id_set()
132 err = bt_mesh_priv_beacon_cli_node_id_set(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_node_id_set()
Dshell.c311 static void lpn_established(uint16_t net_idx, uint16_t friend_addr, in lpn_established() argument
319 static void lpn_terminated(uint16_t net_idx, uint16_t friend_addr) in lpn_terminated() argument
351 uint16_t net_idx; in cmd_proxy_connect() local
354 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_proxy_connect()
360 err = bt_mesh_proxy_connect(net_idx); in cmd_proxy_connect()
371 uint16_t net_idx; in cmd_proxy_disconnect() local
374 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_proxy_disconnect()
380 err = bt_mesh_proxy_disconnect(net_idx); in cmd_proxy_disconnect()
393 uint16_t net_idx; in cmd_proxy_solicit() local
396 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_proxy_solicit()
[all …]
Dcfg.c26 err = bt_mesh_cfg_cli_node_reset(bt_mesh_shell_target_ctx.net_idx, in cmd_reset()
94 err = bt_mesh_cfg_cli_comp_data_get(bt_mesh_shell_target_ctx.net_idx, in cmd_get_comp()
306 err = bt_mesh_cfg_cli_beacon_get(bt_mesh_shell_target_ctx.net_idx, in cmd_beacon()
316 err = bt_mesh_cfg_cli_beacon_set(bt_mesh_shell_target_ctx.net_idx, in cmd_beacon()
336 err = bt_mesh_cfg_cli_ttl_get(bt_mesh_shell_target_ctx.net_idx, in cmd_ttl()
346 err = bt_mesh_cfg_cli_ttl_set(bt_mesh_shell_target_ctx.net_idx, in cmd_ttl()
366 err = bt_mesh_cfg_cli_friend_get(bt_mesh_shell_target_ctx.net_idx, in cmd_friend()
376 err = bt_mesh_cfg_cli_friend_set(bt_mesh_shell_target_ctx.net_idx, in cmd_friend()
396 err = bt_mesh_cfg_cli_gatt_proxy_get(bt_mesh_shell_target_ctx.net_idx, in cmd_gatt_proxy()
406 err = bt_mesh_cfg_cli_gatt_proxy_set(bt_mesh_shell_target_ctx.net_idx, in cmd_gatt_proxy()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dfriendship_common.c54 static void friend_established(uint16_t net_idx, uint16_t lpn_addr, in friend_established() argument
62 static void friend_terminated(uint16_t net_idx, uint16_t lpn_addr) in friend_terminated() argument
68 static void friend_polled(uint16_t net_idx, uint16_t lpn_addr) in friend_polled() argument
80 static void lpn_established(uint16_t net_idx, uint16_t friend_addr, in lpn_established() argument
87 static void lpn_terminated(uint16_t net_idx, uint16_t friend_addr) in lpn_terminated() argument
93 static void lpn_polled(uint16_t net_idx, uint16_t friend_addr, bool retry) in lpn_polled() argument

1234