/Zephyr-latest/tests/bluetooth/mesh/brg/src/ |
D | main.c | 20 uint16_t net_idx1; member 35 test_vector[i].net_idx1 = (i / 8); in setup() 83 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, test_vector[i].net_idx1, in check_fill_all_bt_entries() 108 int err = bt_mesh_brg_cfg_tbl_remove(test_vector[i].net_idx1, in check_delete_all_bt_entries() 149 uint16_t net_idx1 = test_vector[TEST_VECT_SZ - 1].net_idx1; 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() 165 net_idx1 = 4096; in ZTEST() 166 err = bt_mesh_brg_cfg_tbl_remove(net_idx1, net_idx2, addr1, addr2, &status); in ZTEST() 169 net_idx1 = test_vector[TEST_VECT_SZ - 1].net_idx1; 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 152 net_idx1 = brg_tbl[i].net_idx1; 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() 282 brg_tbl[bt_mesh_brg_cfg_row_cnt].net_idx1 = net_idx1; in bt_mesh_brg_cfg_tbl_add() 304 brg_tbl[i].net_idx1 == net_idx && brg_tbl[i].addr1 == src && in bt_mesh_brg_cfg_tbl_foreach_subnet() [all …]
|
D | brg_cfg.h | 26 uint32_t net_idx1: 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() 130 rsp->net_idx1 = table_list.net_idx1; in table_list() 286 key_idx_pack_pair(&msg, entry->net_idx1, entry->net_idx2); in bt_mesh_brg_cfg_cli_table_add() 293 int bt_mesh_brg_cfg_cli_table_remove(uint16_t net_idx, uint16_t addr, uint16_t net_idx1, 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() 342 int bt_mesh_brg_cfg_cli_table_get(uint16_t net_idx, uint16_t addr, uint16_t net_idx1, 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 | 80 entry.net_idx1 = shell_strtoul(argv[2], 0, &err); in cmd_bridging_table_add() 106 uint16_t net_idx1, net_idx2, addr1, addr2; in cmd_bridging_table_remove() local 110 net_idx1 = shell_strtoul(argv[1], 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() 173 shell_print(sh, "\t\tnet_idx1: 0x%04x, net_idx2: 0x%04x", net_idx1, in cmd_bridged_subnets_get() 182 uint16_t net_idx1, net_idx2, start_idx; in cmd_bridging_table_get() local 190 net_idx1 = shell_strtoul(argv[1], 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 | 41 uint16_t net_idx1; member 80 uint16_t net_idx1; member
|
D | brg_cfg_cli.h | 226 int bt_mesh_brg_cfg_cli_table_remove(uint16_t net_idx, uint16_t addr, uint16_t net_idx1, 290 int bt_mesh_brg_cfg_cli_table_get(uint16_t net_idx, uint16_t addr, uint16_t net_idx1,
|
/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 221 entry.net_idx1 = net_idx1; in bridge_entry_add() 227 if (err || rsp.status || rsp.entry.directions != dir || rsp.entry.net_idx1 != net_idx1 || 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() 355 ASSERT_EQUAL(rsp.net_idx1, net_idx1); in bridge_table_verify()
|
/Zephyr-latest/tests/bluetooth/tester/src/btp/ |
D | btp_mesh.h | 922 uint16_t net_idx1; member 931 uint16_t net_idx1; member 948 uint16_t net_idx1; member
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 2149 entry.net_idx1 = sys_le16_to_cpu(cp->net_idx1); in bridging_table_add() 2173 net_key_idx, sys_le16_to_cpu(cp->addr), sys_le16_to_cpu(cp->net_idx1), in bridging_table_remove() 2226 net_key_idx, sys_le16_to_cpu(cp->addr), sys_le16_to_cpu(cp->net_idx1), in bridging_table_get()
|