Lines Matching refs:net_idx

300 static void lpn_established(uint16_t net_idx, uint16_t friend_addr,  in lpn_established()  argument
308 static void lpn_terminated(uint16_t net_idx, uint16_t friend_addr) in lpn_terminated() argument
339 uint16_t net_idx; in cmd_proxy_connect() local
342 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_proxy_connect()
348 err = bt_mesh_proxy_connect(net_idx); in cmd_proxy_connect()
359 uint16_t net_idx; in cmd_proxy_disconnect() local
362 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_proxy_disconnect()
368 err = bt_mesh_proxy_disconnect(net_idx); in cmd_proxy_disconnect()
381 uint16_t net_idx; in cmd_proxy_solicit() local
384 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_proxy_solicit()
390 err = bt_mesh_proxy_solicit(net_idx); in cmd_proxy_solicit()
449 static void prov_complete(uint16_t net_idx, uint16_t addr) in prov_complete() argument
452 bt_shell_print("Local node provisioned, net_idx 0x%04x address 0x%04x", net_idx, addr); in prov_complete()
454 bt_mesh_shell_target_ctx.net_idx = net_idx; in prov_complete()
467 static void prov_node_added(uint16_t net_idx, uint8_t uuid[16], uint16_t addr, in prov_node_added() argument
471 net_idx, addr, num_elem); in prov_node_added()
473 bt_mesh_shell_target_ctx.net_idx = net_idx; in prov_node_added()
730 uint16_t net_idx; in cmd_provision_gatt() local
738 net_idx = shell_strtoul(argv[2], 0, &err); in cmd_provision_gatt()
746 err = bt_mesh_provision_gatt(uuid, net_idx, addr, attention_duration); in cmd_provision_gatt()
901 uint16_t net_idx; in cmd_provision_adv() local
909 net_idx = shell_strtoul(argv[2], 0, &err); in cmd_provision_adv()
917 err = bt_mesh_provision_adv(uuid, net_idx, addr, attention_duration); in cmd_provision_adv()
929 uint16_t net_idx, addr; in cmd_provision_local() local
933 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_provision_local()
952 sub = bt_mesh_cdb_subnet_get(net_idx); in cmd_provision_local()
954 shell_error(sh, "No cdb entry for subnet 0x%03x", net_idx); in cmd_provision_local()
959 shell_error(sh, "Unable to export key for subnet 0x%03x", net_idx); in cmd_provision_local()
964 err = bt_mesh_provision(net_key, net_idx, 0, iv_index, addr, bt_mesh_shell_default_key); in cmd_provision_local()
984 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT(bt_mesh_shell_target_ctx.net_idx, in cmd_net_send()
1242 if (subnet->net_idx == BT_MESH_KEY_UNUSED) { in cdb_print_subnets()
1248 subnet->net_idx); in cdb_print_subnets()
1254 shell_print(sh, "0x%03x %s", subnet->net_idx, key_hex_str); in cdb_print_subnets()
1271 if (key->net_idx == BT_MESH_KEY_UNUSED) { in cdb_print_app_keys()
1282 shell_print(sh, "0x%03x 0x%03x %s", key->net_idx, key->app_idx, key_hex_str); in cdb_print_app_keys()
1313 uint16_t addr, net_idx; in cmd_cdb_node_add() local
1323 net_idx = shell_strtoul(argv[4], 0, &err); in cmd_cdb_node_add()
1337 node = bt_mesh_cdb_node_alloc(uuid, addr, num_elem, net_idx); in cmd_cdb_node_add()
1389 uint16_t net_idx; in cmd_cdb_subnet_add() local
1393 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_cdb_subnet_add()
1407 sub = bt_mesh_cdb_subnet_alloc(net_idx); in cmd_cdb_subnet_add()
1414 shell_error(sh, "Unable to import key for subnet 0x%03x", net_idx); in cmd_cdb_subnet_add()
1422 shell_print(sh, "Added Subnet 0x%03x", net_idx); in cmd_cdb_subnet_add()
1431 uint16_t net_idx; in cmd_cdb_subnet_del() local
1434 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_cdb_subnet_del()
1440 sub = bt_mesh_cdb_subnet_get(net_idx); in cmd_cdb_subnet_del()
1442 shell_print(sh, "No subnet with NetIdx 0x%03x", net_idx); in cmd_cdb_subnet_del()
1448 shell_print(sh, "Deleted subnet 0x%03x", net_idx); in cmd_cdb_subnet_del()
1457 uint16_t net_idx, app_idx; in cmd_cdb_app_key_add() local
1462 net_idx = shell_strtoul(argv[1], 0, &err); in cmd_cdb_app_key_add()
1477 key = bt_mesh_cdb_app_key_alloc(net_idx, app_idx); in cmd_cdb_app_key_add()
1557 shell_print(sh, "NetIdx: 0x%04x", bt_mesh_shell_target_ctx.net_idx); in cmd_netidx()
1561 bt_mesh_shell_target_ctx.net_idx = shell_strtoul(argv[1], 0, &err); in cmd_netidx()
1567 shell_print(sh, "NetIdx set to 0x%04x", bt_mesh_shell_target_ctx.net_idx); in cmd_netidx()