/Zephyr-latest/subsys/bluetooth/mesh/ |
D | subnet.c | 64 .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 …]
|
D | app_keys.c | 44 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 …]
|
D | cfg_cli.c | 60 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 …]
|
D | proxy_cli.c | 38 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 …]
|
D | priv_beacon_cli.c | 95 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 …]
|
D | cdb.c | 48 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 …]
|
D | rpr.h | 27 .addr = (ctx)->addr, .net_idx = (ctx)->net_idx, \ 34 return (a->addr == b->addr) && (a->net_idx == b->net_idx); in rpr_node_equal()
|
D | priv_beacon_srv.c | 138 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()
|
D | friend.h | 13 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/ |
D | cfg_cli.h | 188 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 …]
|
D | cfg.h | 329 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 …]
|
D | proxy.h | 39 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);
|
D | priv_beacon_cli.h | 48 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,
|
D | brg_cfg_cli.h | 128 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,
|
D | main.h | 275 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 …]
|
D | sar_cfg_cli.h | 61 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,
|
D | cdb.h | 38 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/ |
D | btp_mesh.h | 152 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/ |
D | main.c | 37 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/ |
D | rpr.c | 90 .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 …]
|
D | od_priv_proxy.c | 18 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()
|
D | priv_beacon.c | 19 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()
|
D | shell.c | 311 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 …]
|
D | cfg.c | 26 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/ |
D | friendship_common.c | 54 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
|