/Zephyr-latest/tests/bluetooth/mesh/brg/src/ |
D | main.c | 21 uint16_t net_idx2; member 37 test_vector[i].net_idx2 = (i / 8) + 16; in setup() 84 test_vector[i].net_idx2, test_vector[i].addr1, in check_fill_all_bt_entries() 109 test_vector[i].net_idx2, test_vector[i].addr1, in check_delete_all_bt_entries() 150 uint16_t net_idx2 = test_vector[TEST_VECT_SZ - 1].net_idx2; in ZTEST() local 156 err = bt_mesh_brg_cfg_tbl_remove(net_idx1, net_idx2, addr1, addr2, &status); in ZTEST() 161 err = bt_mesh_brg_cfg_tbl_remove(net_idx1, net_idx2, addr1, addr2, &status); in ZTEST() 166 err = bt_mesh_brg_cfg_tbl_remove(net_idx1, net_idx2, addr1, addr2, &status); in ZTEST() 170 net_idx2 = 4096; in ZTEST() 171 err = bt_mesh_brg_cfg_tbl_remove(net_idx1, net_idx2, addr1, addr2, &status); in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | brg_cfg_srv.c | 62 key_idx_pack_pair(&msg, entry->net_idx1, entry->net_idx2); in bridging_table_status_send() 71 static bool netkey_check(uint16_t net_idx1, uint16_t net_idx2) in netkey_check() argument 73 return bt_mesh_subnet_get(net_idx1) && bt_mesh_subnet_get(net_idx2); in netkey_check() 84 key_idx_unpack_pair(buf, &entry.net_idx1, &entry.net_idx2); in bridging_table_add() 88 err = bt_mesh_brg_cfg_tbl_add(entry.directions, entry.net_idx1, entry.net_idx2, entry.addr1, in bridging_table_add() 107 key_idx_unpack_pair(buf, &entry.net_idx1, &entry.net_idx2); in bridging_table_remove() 111 err = bt_mesh_brg_cfg_tbl_remove(entry.net_idx1, entry.net_idx2, entry.addr1, entry.addr2, in bridging_table_remove() 149 uint16_t net_idx1, net_idx2; in bridged_subnets_get() local 153 net_idx2 = brg_tbl[i].net_idx2; in bridged_subnets_get() 163 key_idx_pack_pair(&msg, net_idx1, net_idx2); in bridged_subnets_get() [all …]
|
D | brg_cfg.c | 177 if (brg_tbl[i].net_idx1 == sub->net_idx || brg_tbl[i].net_idx2 == sub->net_idx) { in brg_tbl_netkey_removed_evt() 231 static bool netkey_check(uint16_t net_idx1, uint16_t net_idx2) in netkey_check() argument 233 return bt_mesh_subnet_get(net_idx1) && bt_mesh_subnet_get(net_idx2); in netkey_check() 236 int bt_mesh_brg_cfg_tbl_add(uint8_t direction, uint16_t net_idx1, uint16_t net_idx2, uint16_t addr1, in bt_mesh_brg_cfg_tbl_add() argument 240 if (!BT_MESH_ADDR_IS_UNICAST(addr1) || net_idx1 == net_idx2 || addr1 == addr2 || in bt_mesh_brg_cfg_tbl_add() 241 net_idx1 > BT_MESH_BRG_CFG_KEY_INDEX_MAX || net_idx2 > BT_MESH_BRG_CFG_KEY_INDEX_MAX) { in bt_mesh_brg_cfg_tbl_add() 255 if (!netkey_check(net_idx1, net_idx2)) { in bt_mesh_brg_cfg_tbl_add() 267 if (brg_tbl[i].net_idx1 == net_idx1 && brg_tbl[i].net_idx2 == net_idx2 && in bt_mesh_brg_cfg_tbl_add() 283 brg_tbl[bt_mesh_brg_cfg_row_cnt].net_idx2 = net_idx2; in bt_mesh_brg_cfg_tbl_add() 306 cb(brg_tbl[i].net_idx2, user_data); in bt_mesh_brg_cfg_tbl_foreach_subnet() [all …]
|
D | brg_cfg.h | 27 uint32_t net_idx2: 12; member 42 int bt_mesh_brg_cfg_tbl_add(uint8_t direction, uint16_t net_idx1, uint16_t net_idx2, uint16_t addr1, 45 int bt_mesh_brg_cfg_tbl_remove(uint16_t net_idx1, uint16_t net_idx2, uint16_t addr1, uint16_t addr2,
|
D | brg_cfg_cli.c | 46 key_idx_unpack_pair(buf, &table_status.entry.net_idx1, &table_status.entry.net_idx2); in table_status() 118 key_idx_unpack_pair(buf, &table_list.net_idx1, &table_list.net_idx2); in table_list() 131 rsp->net_idx2 = table_list.net_idx2; in table_list() 286 key_idx_pack_pair(&msg, entry->net_idx1, entry->net_idx2); in bt_mesh_brg_cfg_cli_table_add() 294 uint16_t net_idx2, uint16_t addr1, uint16_t addr2, in bt_mesh_brg_cfg_cli_table_remove() argument 315 key_idx_pack_pair(&msg, net_idx1, net_idx2); in bt_mesh_brg_cfg_cli_table_remove() 343 uint16_t net_idx2, uint16_t start_idx, in bt_mesh_brg_cfg_cli_table_get() argument 356 key_idx_pack_pair(&msg, net_idx1, net_idx2); in bt_mesh_brg_cfg_cli_table_get()
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | brg_cfg.c | 81 entry.net_idx2 = shell_strtoul(argv[3], 0, &err); in cmd_bridging_table_add() 106 uint16_t net_idx1, net_idx2, addr1, addr2; in cmd_bridging_table_remove() local 111 net_idx2 = shell_strtoul(argv[2], 0, &err); in cmd_bridging_table_remove() 120 bt_mesh_shell_target_ctx.dst, net_idx1, net_idx2, in cmd_bridging_table_remove() 167 uint16_t net_idx1, net_idx2; in cmd_bridged_subnets_get() local 171 key_idx_unpack_pair(rsp.list, &net_idx1, &net_idx2); in cmd_bridged_subnets_get() 174 net_idx2); in cmd_bridged_subnets_get() 182 uint16_t net_idx1, net_idx2, start_idx; in cmd_bridging_table_get() local 191 net_idx2 = shell_strtoul(argv[2], 0, &err); in cmd_bridging_table_get() 199 bt_mesh_shell_target_ctx.dst, net_idx1, net_idx2, in cmd_bridging_table_get() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | brg_cfg.h | 43 uint16_t net_idx2; member 82 uint16_t net_idx2; member
|
D | brg_cfg_cli.h | 227 uint16_t net_idx2, uint16_t addr1, uint16_t addr2, 291 uint16_t net_idx2, uint16_t start_idx,
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_brg.c | 213 static void bridge_entry_add(uint16_t src, uint16_t dst, uint16_t net_idx1, uint16_t net_idx2, in bridge_entry_add() argument 222 entry.net_idx2 = net_idx2; in bridge_entry_add() 228 rsp.entry.net_idx2 != net_idx2 || rsp.entry.addr1 != src || rsp.entry.addr2 != dst) { in bridge_entry_add() 234 static void bridge_entry_remove(uint16_t src, uint16_t dst, uint16_t net_idx1, uint16_t net_idx2) in bridge_entry_remove() argument 238 ASSERT_OK(bt_mesh_brg_cfg_cli_table_remove(0, BRIDGE_ADDR, net_idx1, net_idx2, src, dst, in bridge_entry_remove() 343 static void bridge_table_verify(uint16_t net_idx1, uint16_t net_idx2, uint16_t start_idx, in bridge_table_verify() argument 353 bt_mesh_brg_cfg_cli_table_get(0, BRIDGE_ADDR, net_idx1, net_idx2, start_idx, &rsp)); in bridge_table_verify() 356 ASSERT_EQUAL(rsp.net_idx2, net_idx2); in bridge_table_verify()
|
/Zephyr-latest/tests/bluetooth/tester/src/btp/ |
D | btp_mesh.h | 923 uint16_t net_idx2; member 932 uint16_t net_idx2; member 949 uint16_t net_idx2; member
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 2150 entry.net_idx2 = sys_le16_to_cpu(cp->net_idx2); in bridging_table_add() 2174 sys_le16_to_cpu(cp->net_idx2), sys_le16_to_cpu(cp->addr1), in bridging_table_remove() 2227 sys_le16_to_cpu(cp->net_idx2), sys_le16_to_cpu(cp->start_idx), &rp); in bridging_table_get()
|