Skip to content

Commit 58944c3

Browse files
apps: bttester: handle GAP authorization event
BLE_GAP_AUTHORIZE_REJECT is always returned when authorized attribute is being accessed. This is needed for GATT/SR tests that requires rejecting ATT requests with insufficient authorization error.
1 parent 337250d commit 58944c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/bttester/src/btp_gap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,10 @@ gap_event_cb(struct ble_gap_event *event, void *arg)
16011601
subrate_change_received(event);
16021602
break;
16031603
#endif
1604+
case BLE_GAP_EVENT_AUTHORIZE:
1605+
console_printf("Authorize event: conn_handle=%d",
1606+
event->authorize.conn_handle);
1607+
return BLE_GAP_AUTHORIZE_REJECT;
16041608
default:
16051609
break;
16061610
}

0 commit comments

Comments
 (0)