From 44f858f3f18601da9145a6368a9c25755ff660d9 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 14 Aug 2020 12:00:25 +0200 Subject: [PATCH] hci: gap_request_role is classic-only --- src/hci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hci.c b/src/hci.c index d50f17410..ce32ca03d 100644 --- a/src/hci.c +++ b/src/hci.c @@ -5186,6 +5186,7 @@ hci_role_t gap_get_role(hci_con_handle_t connection_handle){ } +#ifdef ENABLE_CLASSIC uint8_t gap_request_role(bd_addr_t addr, hci_role_t role){ hci_connection_t * conn = hci_connection_for_bd_addr_and_type(addr, BD_ADDR_TYPE_ACL); if (!conn) return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER; @@ -5193,6 +5194,7 @@ uint8_t gap_request_role(bd_addr_t addr, hci_role_t role){ hci_run(); return ERROR_CODE_SUCCESS; } +#endif #ifdef ENABLE_BLE