att: remove l2cap_cid from ATT_EVENT_CONNECTED

This commit is contained in:
Matthias Ringwald 2019-06-19 11:45:58 +02:00
parent a43588bafe
commit 5d964c8b44
2 changed files with 1 additions and 11 deletions

View File

@ -754,11 +754,10 @@ typedef uint8_t sm_key_t[16];
#define GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 0xAC #define GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 0xAC
/** /**
* @format 1BH2 * @format 1BH
* @param address_type * @param address_type
* @param address * @param address
* @param handle * @param handle
* @param l2cap_cid if BR/EDR bearer
*/ */
#define ATT_EVENT_CONNECTED 0xB3 #define ATT_EVENT_CONNECTED 0xB3

View File

@ -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){ static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){
return little_endian_read_16(event, 9); 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 * @brief Get field handle from event ATT_EVENT_DISCONNECTED