Lines Matching +full:vendor +full:- +full:specific
10 * http://www.apache.org/licenses/LICENSE-2.0
16 * specific language governing permissions and limitations
29 /* 0000xxxx-8c26-476f-89a7-a108033a69c7 */
65 * The vendor specific security test service consists of two characteristics:
66 * o random-number-generator: generates a random 32-bit number each time
69 * o static-value: a single-byte characteristic that can always be read,
73 /* 59462f12-9543-9999-12c8-58b459a2712d */
78 /* 5c3a659e-897e-45e1-b016-007107c96df6 */
83 /* 5c3a659e-897e-45e1-b016-007107c96df7 */
88 /* 5c3a659e-897e-45e1-b016-007107c96df8 */
308 uuid = ctxt->chr->uuid; in gatt_svr_chr_access_sec_test()
311 * 128-bit UUID. in gatt_svr_chr_access_sec_test()
315 assert(ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR); in gatt_svr_chr_access_sec_test()
317 /* Respond with a 32-bit random number. */ in gatt_svr_chr_access_sec_test()
319 rc = os_mbuf_append(ctxt->om, &rand_num, sizeof rand_num); in gatt_svr_chr_access_sec_test()
325 switch (ctxt->op) { in gatt_svr_chr_access_sec_test()
327 rc = os_mbuf_append(ctxt->om, &gatt_svr_sec_test_static_val, in gatt_svr_chr_access_sec_test()
332 rc = gatt_svr_chr_write(ctxt->om, in gatt_svr_chr_access_sec_test()
352 * from 128 bit vendor specific UUID.
360 u8ptr = BLE_UUID128(uuid)->value; in extract_uuid16_from_pts_uuid128()
374 uuid16 = extract_uuid16_from_pts_uuid128(ctxt->chr->uuid); in gatt_svr_access_test()
379 assert(ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR); in gatt_svr_access_test()
380 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_val, in gatt_svr_access_test()
387 if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) { in gatt_svr_access_test()
388 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_access_test()
392 } else if (ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR) { in gatt_svr_access_test()
393 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_val, in gatt_svr_access_test()
401 if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) { in gatt_svr_access_test()
402 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_access_test()
406 } else if (ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR) { in gatt_svr_access_test()
407 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_val, in gatt_svr_access_test()
413 assert(ctxt->op == BLE_GATT_ACCESS_OP_READ_DSC); in gatt_svr_access_test()
414 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_val, in gatt_svr_access_test()
419 assert(ctxt->op == BLE_GATT_ACCESS_OP_WRITE_DSC); in gatt_svr_access_test()
420 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_access_test()
428 if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_DSC) { in gatt_svr_access_test()
429 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_access_test()
433 } else if (ctxt->op == BLE_GATT_ACCESS_OP_READ_DSC) { in gatt_svr_access_test()
434 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_val, in gatt_svr_access_test()
453 uuid16 = extract_uuid16_from_pts_uuid128(ctxt->chr->uuid); in gatt_svr_long_access_test()
458 assert(ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR); in gatt_svr_long_access_test()
459 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_long_val, in gatt_svr_long_access_test()
465 assert(ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR); in gatt_svr_long_access_test()
466 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_long_access_test()
472 if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) { in gatt_svr_long_access_test()
473 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_long_access_test()
477 } else if (ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR) { in gatt_svr_long_access_test()
478 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_long_val, in gatt_svr_long_access_test()
484 if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) { in gatt_svr_long_access_test()
485 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_long_access_test()
489 } else if (ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR) { in gatt_svr_long_access_test()
490 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_long_val_alt, in gatt_svr_long_access_test()
497 if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) { in gatt_svr_long_access_test()
498 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_long_access_test()
502 } else if (ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR) { in gatt_svr_long_access_test()
503 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_long_val, in gatt_svr_long_access_test()
509 assert(ctxt->op == BLE_GATT_ACCESS_OP_READ_DSC); in gatt_svr_long_access_test()
510 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_long_val, in gatt_svr_long_access_test()
515 assert(ctxt->op == BLE_GATT_ACCESS_OP_WRITE_DSC); in gatt_svr_long_access_test()
516 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_long_access_test()
524 if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_DSC) { in gatt_svr_long_access_test()
525 rc = gatt_svr_chr_write(ctxt->om,0, in gatt_svr_long_access_test()
529 } else if (ctxt->op == BLE_GATT_ACCESS_OP_READ_DSC) { in gatt_svr_long_access_test()
530 rc = os_mbuf_append(ctxt->om, &gatt_svr_pts_static_long_val, in gatt_svr_long_access_test()
546 switch (ctxt->op) { in gatt_svr_register_cb()
549 ble_uuid_to_str(ctxt->svc.svc_def->uuid, buf), in gatt_svr_register_cb()
550 ctxt->svc.handle); in gatt_svr_register_cb()
556 ble_uuid_to_str(ctxt->chr.chr_def->uuid, buf), in gatt_svr_register_cb()
557 ctxt->chr.def_handle, in gatt_svr_register_cb()
558 ctxt->chr.val_handle); in gatt_svr_register_cb()
563 ble_uuid_to_str(ctxt->dsc.dsc_def->uuid, buf), in gatt_svr_register_cb()
564 ctxt->dsc.handle); in gatt_svr_register_cb()