att_server: pull up att_connection_t from att_server into hci_connection_t

This commit is contained in:
Matthias Ringwald 2020-12-28 23:10:34 +01:00
parent b6df12b64a
commit aafc4f7abd
2 changed files with 5 additions and 3 deletions

View File

@ -107,7 +107,7 @@ static att_write_callback_t att_server_client_write_callback;
static hci_con_handle_t att_server_last_can_send_now = HCI_CON_HANDLE_INVALID;
static att_connection_t * att_connection_for_hci_connection(hci_connection_t * hci_connection){
return &hci_connection->att_server.connection;
return &hci_connection->att_connection;
}
#ifdef ENABLE_LE_SIGNED_WRITE

View File

@ -448,8 +448,6 @@ typedef struct {
int value_indication_handle;
btstack_timer_source_t value_indication_timer;
att_connection_t connection;
btstack_linked_list_t notification_requests;
btstack_linked_list_t indication_requests;
@ -585,8 +583,12 @@ typedef struct {
uint16_t le_max_tx_octets;
#endif
// ATT Connection
att_connection_t att_connection;
// ATT Server
att_server_t att_server;
#endif
#ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE