Lines Matching refs:status
164 uint8_t status; in tester_setup() local
170 err = bt_mesh_cfg_cli_app_key_add(0, PROV_ADDR, 0, 0, test_app_key, &status); in tester_setup()
171 if (err || status) { in tester_setup()
172 FAIL("AppKey add failed (err %d, status %u)", err, status); in tester_setup()
176 err = bt_mesh_cfg_cli_mod_app_bind(0, PROV_ADDR, PROV_ADDR, 0, TEST_MOD_ID, &status); in tester_setup()
177 if (err || status) { in tester_setup()
178 FAIL("Mod app bind failed (err %d, status %u)", err, status); in tester_setup()
186 bt_mesh_cfg_cli_net_key_add(0, PROV_ADDR, i + 1, subnet_keys[i], &status)); in tester_setup()
187 if (status) { in tester_setup()
188 FAIL("NetKey add failed (status %u)", status); in tester_setup()
204 BT_MESH_TRANSMIT(2, 20), &status, &transmit)); in tester_setup()
205 if (status) { in tester_setup()
206 FAIL("Relay set failed (status %u)", status); in tester_setup()
227 if (err || rsp.status || rsp.entry.directions != dir || rsp.entry.net_idx1 != net_idx1 || in bridge_entry_add()
229 FAIL("Bridging table add failed (err %d) (status %u)", err, rsp.status); in bridge_entry_add()
240 if (rsp.status) { in bridge_entry_remove()
241 FAIL("Bridging table remove failed (status %u)", rsp.status); in bridge_entry_remove()
248 uint8_t status; in tester_bridge_configure() local
254 err = bt_mesh_cfg_cli_net_key_add(0, BRIDGE_ADDR, i + 1, subnet_keys[i], &status); in tester_bridge_configure()
255 if (err || status) { in tester_bridge_configure()
256 FAIL("NetKey add failed (err %d, status %u)", err, status); in tester_bridge_configure()
261 ASSERT_OK(bt_mesh_brg_cfg_cli_set(0, BRIDGE_ADDR, BT_MESH_BRG_CFG_ENABLED, &status)); in tester_bridge_configure()
262 if (status != BT_MESH_BRG_CFG_ENABLED) { in tester_bridge_configure()
263 FAIL("Subnet bridge set failed (status %u)", status); in tester_bridge_configure()
271 BT_MESH_TRANSMIT(2, 20), &status, &transmit)); in tester_bridge_configure()
272 if (status) { in tester_bridge_configure()
273 FAIL("Relay set failed (status %u)", status); in tester_bridge_configure()
283 uint8_t status; in tester_device_configure() local
285 err = bt_mesh_cfg_cli_app_key_add(net_key_idx, addr, net_key_idx, 0, test_app_key, &status); in tester_device_configure()
286 if (err || status) { in tester_device_configure()
287 FAIL("AppKey add failed (err %d, status %u)", err, status); in tester_device_configure()
291 err = bt_mesh_cfg_cli_mod_app_bind(net_key_idx, addr, addr, 0, TEST_MOD_ID, &status); in tester_device_configure()
292 if (err || status) { in tester_device_configure()
293 FAIL("Mod app bind failed (err %d, status %u)", err, status); in tester_device_configure()
298 err = bt_mesh_cfg_cli_beacon_set(net_key_idx, addr, BT_MESH_BEACON_DISABLED, &status); in tester_device_configure()
299 if (err || status) { in tester_device_configure()
300 FAIL("Beacon set failed (err %d, status %u)", err, status); in tester_device_configure()
354 ASSERT_EQUAL(rsp.status, 0); in bridge_table_verify()
428 uint8_t status; in tester_workaround() local
434 err = bt_mesh_cfg_cli_net_key_del(0, PROV_ADDR, i + 1, &status); in tester_workaround()
435 if (err || status) { in tester_workaround()
436 FAIL("NetKey del failed (err %d, status %u)", err, status); in tester_workaround()
501 uint8_t status; in test_tester_simple() local
515 err = bt_mesh_brg_cfg_cli_set(0, BRIDGE_ADDR, BT_MESH_BRG_CFG_DISABLED, &status); in test_tester_simple()
516 if (err || status != BT_MESH_BRG_CFG_DISABLED) { in test_tester_simple()
517 FAIL("Subnet bridge set failed (err %d) (status %u)", err, status); in test_tester_simple()
531 err = bt_mesh_brg_cfg_cli_set(0, BRIDGE_ADDR, BT_MESH_BRG_CFG_ENABLED, &status); in test_tester_simple()
532 if (err || status != BT_MESH_BRG_CFG_ENABLED) { in test_tester_simple()
533 FAIL("Subnet bridge set failed (err %d) (status %u)", err, status); in test_tester_simple()
550 uint8_t status; in tester_simple_multicast() local
592 err = bt_mesh_brg_cfg_cli_set(0, BRIDGE_ADDR, BT_MESH_BRG_CFG_DISABLED, &status); in tester_simple_multicast()
593 if (err || status != BT_MESH_BRG_CFG_DISABLED) { in tester_simple_multicast()
594 FAIL("Subnet bridge set failed (err %d) (status %u)", err, status); in tester_simple_multicast()
604 err = bt_mesh_brg_cfg_cli_set(0, BRIDGE_ADDR, BT_MESH_BRG_CFG_ENABLED, &status); in tester_simple_multicast()
605 if (err || status != BT_MESH_BRG_CFG_ENABLED) { in tester_simple_multicast()
606 FAIL("Subnet bridge set failed (err %d) (status %u)", err, status); in tester_simple_multicast()
621 uint8_t status; in test_tester_simple_group() local
630 &status); in test_tester_simple_group()
631 if (err || status) { in test_tester_simple_group()
632 FAIL("Mod sub add failed (err %d, status %u)", err, status); in test_tester_simple_group()
644 uint8_t status; in test_tester_simple_va() local
658 TEST_MOD_ID, &vaddr, &status); in test_tester_simple_va()
659 if (err || status) { in test_tester_simple_va()
660 FAIL("Mod sub VA add failed (err %d, status %u)", err, status); in test_tester_simple_va()
741 uint8_t status; in net_key_remove() local
744 err = bt_mesh_cfg_cli_net_key_del(net_idx, dst, net_idx_to_remove, &status); in net_key_remove()
745 if (err || status) { in net_key_remove()
746 FAIL("NetKey del failed (err %d, status %u)", err, status); in net_key_remove()
787 ASSERT_EQUAL(rsp.status, 4); in test_tester_net_key_remove()
800 uint8_t status; in test_tester_persistence() local
804 ASSERT_OK(bt_mesh_brg_cfg_cli_get(0, BRIDGE_ADDR, &status)); in test_tester_persistence()
805 if (status != BT_MESH_BRG_CFG_ENABLED) { in test_tester_persistence()
806 FAIL("Subnet bridge set failed (status %u)", status); in test_tester_persistence()
889 uint8_t status; in beacon_set() local
892 err = bt_mesh_cfg_cli_beacon_set(0, dst, val, &status); in beacon_set()
893 if (err || status != val) { in beacon_set()
894 FAIL("Beacon set failed (err %d, status %u)", err, status); in beacon_set()
982 uint8_t status; in start_krp() local
985 ASSERT_OK(bt_mesh_cfg_cli_net_key_update(0, BRIDGE_ADDR, net_idx, key, &status)); in start_krp()
986 if (status) { in start_krp()
987 FAIL("Could not update net key (status %u)", status); in start_krp()
991 ASSERT_OK(bt_mesh_cfg_cli_net_key_update(0, addr, net_idx, key, &status)); in start_krp()
992 if (status) { in start_krp()
993 FAIL("Could not update net key (status %u)", status); in start_krp()
1000 uint8_t status; in set_krp_phase() local
1004 ASSERT_OK(bt_mesh_cfg_cli_krp_set(0, BRIDGE_ADDR, net_idx, transition, &status, &phase)); in set_krp_phase()
1005 if (status || (phase != (transition == 0x02 ? 0x02 : 0x00))) { in set_krp_phase()
1006 FAIL("Could not update KRP (status %u, transition %u, phase %u)", status, in set_krp_phase()
1011 ASSERT_OK(bt_mesh_cfg_cli_krp_set(0, addr, net_idx, transition, &status, &phase)); in set_krp_phase()
1012 if (status || (phase != (transition == 0x02 ? 0x02 : 0x00))) { in set_krp_phase()
1013 FAIL("Could not update KRP (status %u, transition %u, phase %u)", status, in set_krp_phase()