p_scb->co_started = false;
p_scb->p_cos->stop(p_scb->hndl, p_scb->PeerAddress());
- L2CA_SetFlushTimeout(p_scb->PeerAddress(), L2CAP_DEFAULT_FLUSH_TO);
+ L2CA_SetFlushTimeout(p_scb->PeerAddress(), L2CAP_NO_AUTOMATIC_FLUSH);
}
/* if q_info.a2dp_list is not empty, drop it now */
p_scb->co_started = false;
p_scb->p_cos->stop(p_scb->hndl, p_scb->PeerAddress());
}
- L2CA_SetFlushTimeout(p_scb->PeerAddress(), L2CAP_DEFAULT_FLUSH_TO);
+ L2CA_SetFlushTimeout(p_scb->PeerAddress(), L2CAP_NO_AUTOMATIC_FLUSH);
}
{
p_sink_data_cback(nullptr),
p_report_cback(nullptr),
mtu(0),
- flush_to(0),
tsep(0),
media_type(0),
nsc_mask(0) {}
p_sink_data_cback = nullptr;
p_report_cback = nullptr;
mtu = 0;
- flush_to = 0;
tsep = 0;
media_type = 0;
nsc_mask = 0;
tAVDT_SINK_DATA_CBACK* p_sink_data_cback; // Sink data callback function
tAVDT_REPORT_CBACK* p_report_cback; // Report callback function
uint16_t mtu; // The L2CAP MTU of the transport channel
- uint16_t flush_to; // The L2CAP flush timeout of the transport channel
uint8_t tsep; // SEP type
uint8_t media_type; // Media type: AVDT_MEDIA_TYPE_*
uint16_t nsc_mask; // Nonsupported protocol command messages
/* Default values for configuration
*/
#define L2CAP_NO_AUTOMATIC_FLUSH 0xFFFF
-#define L2CAP_NO_RETRANSMISSION 0x0001
#define L2CAP_DEFAULT_MTU (672)
-#define L2CAP_DEFAULT_FLUSH_TO L2CAP_NO_AUTOMATIC_FLUSH
#define L2CAP_DEFAULT_SERV_TYPE 1
#define L2CAP_DEFAULT_TOKEN_RATE 0
#define L2CAP_DEFAULT_BUCKET_SIZE 0
if (flush_timeout_in_ms == 0x0000 ||
flush_timeout_in_ms == L2CAP_NO_AUTOMATIC_FLUSH) {
flush_timeout_in_slots = 0x0;
- } else if (flush_timeout_in_ms == L2CAP_NO_RETRANSMISSION) {
- /* no retransmission */
- /* not mandatory range for controller */
- /* Packet is flushed before getting any ACK/NACK */
- /* To do this, flush timeout should be 1 baseband slot */
- flush_timeout_in_slots = 0x0001;
- } else {
- flush_timeout_in_slots =
- ConvertMillisecondsToBasebandSlots(flush_timeout_in_ms);
}
if (RawAddress::kAny != bd_addr) {
memset(&p_ccb->peer_cfg, 0, sizeof(tL2CAP_CFG_INFO));
/* Put in default values for local/peer configurations */
- p_ccb->our_cfg.flush_to = p_ccb->peer_cfg.flush_to = L2CAP_DEFAULT_FLUSH_TO;
+ p_ccb->our_cfg.flush_to = p_ccb->peer_cfg.flush_to = L2CAP_NO_AUTOMATIC_FLUSH;
p_ccb->our_cfg.mtu = p_ccb->peer_cfg.mtu = L2CAP_DEFAULT_MTU;
p_ccb->our_cfg.qos.service_type = p_ccb->peer_cfg.qos.service_type =
L2CAP_DEFAULT_SERV_TYPE;