Searched refs:unauthorized_chrc_ctx (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/authorization/src/ |
D | gatt_server_test.c | 118 static struct test_chrc_ctx unauthorized_chrc_ctx; variable 124 return read_test_chrc(&unauthorized_chrc_ctx, conn, attr, buf, len, offset); in read_test_unauthorized_chrc() 134 return write_test_chrc(&unauthorized_chrc_ctx, buf, len, offset, flags); in write_test_unauthorized_chrc() 160 if (memcmp(&unauthorized_chrc_ctx, &zeroed_chrc_ctx, sizeof(zeroed_chrc_ctx)) != 0) { in unhandled_chrc_operation_validate() 190 if ((unauthorized_chrc_ctx.read_cnt != 0) && (unauthorized_chrc_ctx.write_cnt != 0)) { in unauthorized_chrc_operation_validate() 194 if ((unauthorized_chrc_ctx.auth_read_cnt != 1) && in unauthorized_chrc_operation_validate() 195 (unauthorized_chrc_ctx.auth_write_cnt != 1)) { in unauthorized_chrc_operation_validate() 208 if (memcmp(&unauthorized_chrc_ctx, &zeroed_chrc_ctx, sizeof(zeroed_chrc_ctx)) != 0) { in authorized_chrc_operation_validate() 255 memset(&unauthorized_chrc_ctx, 0, sizeof(unauthorized_chrc_ctx)); in write_cp_chrc() 293 unauthorized_chrc_ctx.auth_read_cnt++; in gatt_read_authorize() [all …]
|