Skip to content

Commit 72ea3c3

Browse files
apps: bttester: handle GAP authorization event
For now we'll always return BLE_GAP_AUTHORIZE_REJECT. This is needed for GATT/SR tests that requires rejecting ATT requests with insufficient authorization error.
1 parent 0713629 commit 72ea3c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/bttester/src/btp_gap.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,13 @@ gap_event_cb(struct ble_gap_event *event, void *arg)
15941594
periodic_transfer_received(event);
15951595
break;
15961596
#endif
1597+
case BLE_GAP_EVENT_AUTHORIZE:
1598+
console_printf("Authorize event: conn_handle=%d, attr_handle=%d, "
1599+
"is_read=%d",
1600+
event->authorize.conn_handle,
1601+
event->authorize.attr_handle,
1602+
event->authorize.opcode);
1603+
return BLE_GAP_AUTHORIZE_REJECT;
15971604
default:
15981605
break;
15991606
}

0 commit comments

Comments
 (0)