From 5d964c8b440b60f59a7a2432ec4b6ee7ebd34c10 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 19 Jun 2019 11:45:58 +0200 Subject: [PATCH] att: remove l2cap_cid from ATT_EVENT_CONNECTED --- src/btstack_defines.h | 3 +-- src/btstack_event.h | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/btstack_defines.h b/src/btstack_defines.h index d26808a80..b59509a3f 100644 --- a/src/btstack_defines.h +++ b/src/btstack_defines.h @@ -754,11 +754,10 @@ typedef uint8_t sm_key_t[16]; #define GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 0xAC /** - * @format 1BH2 + * @format 1BH * @param address_type * @param address * @param handle - * @param l2cap_cid if BR/EDR bearer */ #define ATT_EVENT_CONNECTED 0xB3 diff --git a/src/btstack_event.h b/src/btstack_event.h index cbc194a09..b5fbf4370 100644 --- a/src/btstack_event.h +++ b/src/btstack_event.h @@ -2233,15 +2233,6 @@ static inline void att_event_connected_get_address(const uint8_t * event, bd_add static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){ return little_endian_read_16(event, 9); } -/** - * @brief Get field l2cap_cid from event ATT_EVENT_CONNECTED - * @param event packet - * @return l2cap_cid - * @note: btstack_type 2 - */ -static inline uint16_t att_event_connected_get_l2cap_cid(const uint8_t * event){ - return little_endian_read_16(event, 11); -} /** * @brief Get field handle from event ATT_EVENT_DISCONNECTED