When we send out config request, we always use flush timeout 0xffff
(infinity), which is the default value.
We don't need to include this value in config request.
Bug:
159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ic06f1e7e39ccbce2ec85c6126d30e179d5971837
#define HID_DEV_MTU_SIZE 512
#endif
-#ifndef HID_DEV_FLUSH_TO
-#define HID_DEV_FLUSH_TO 0xffff
-#endif
-
/*************************************************************************
* Definitions for Both HID-Host & Device
*/
#define HID_HOST_MTU 640
#endif
-#ifndef HID_HOST_FLUSH_TO
-#define HID_HOST_FLUSH_TO 0xffff
-#endif
-
#ifndef HID_HOST_MAX_CONN_RETRY
#define HID_HOST_MAX_CONN_RETRY 1
#endif
memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO));
cfg.mtu_present = true;
cfg.mtu = kSignalMtu;
- cfg.flush_to_present = true;
- cfg.flush_to = L2CAP_DEFAULT_FLUSH_TO;
L2CA_ConfigReq(p_tbl->lcid, &cfg);
} else {
L2CA_ConnectRsp(*bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK,
memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO));
cfg.mtu_present = true;
cfg.mtu = kSignalMtu;
- cfg.flush_to_present = true;
- cfg.flush_to = L2CAP_DEFAULT_FLUSH_TO;
L2CA_ConfigReq(p_tbl->lcid, &cfg);
} else {
avdt_l2c_disconnect(p_tbl->lcid);
memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO));
cfg.mtu_present = true;
cfg.mtu = p_tbl->my_mtu;
- cfg.flush_to_present = true;
- cfg.flush_to = L2CAP_DEFAULT_FLUSH_TO;
L2CA_ConfigReq(lcid, &cfg);
}
}
memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO));
cfg.mtu_present = true;
cfg.mtu = p_tbl->my_mtu;
- cfg.flush_to_present = true;
- cfg.flush_to = L2CAP_DEFAULT_FLUSH_TO;
L2CA_ConfigReq(lcid, &cfg);
} else {
p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx);
#define BNEP_IFLOW_LATENCY 0
#define BNEP_IFLOW_DELAY_VARIATION 0
-#define BNEP_FLUSH_TO 0xFFFF
-
#define BNEP_MAX_RETRANSMITS 3
/* Define the BNEP Connection Control Block
bnep_cb.l2cap_my_cfg.mtu_present = true;
bnep_cb.l2cap_my_cfg.mtu = BNEP_MTU_SIZE;
- bnep_cb.l2cap_my_cfg.flush_to_present = true;
- bnep_cb.l2cap_my_cfg.flush_to = BNEP_FLUSH_TO;
bnep_cb.reg_info.pL2CA_ConnectInd_Cb = bnep_connect_ind;
bnep_cb.reg_info.pL2CA_ConnectCfm_Cb = bnep_connect_cfm;
hd_cb.l2cap_cfg.mtu_present = TRUE;
hd_cb.l2cap_cfg.mtu = HID_DEV_MTU_SIZE;
- hd_cb.l2cap_cfg.flush_to_present = TRUE;
- hd_cb.l2cap_cfg.flush_to = HID_DEV_FLUSH_TO;
-
memset(&hd_cb.l2cap_intr_cfg, 0, sizeof(tL2CAP_CFG_INFO));
hd_cb.l2cap_intr_cfg.mtu_present = TRUE;
hd_cb.l2cap_intr_cfg.mtu = HID_DEV_MTU_SIZE;
- hd_cb.l2cap_intr_cfg.flush_to_present = TRUE;
- hd_cb.l2cap_intr_cfg.flush_to = HID_DEV_FLUSH_TO;
if (!L2CA_Register2(HID_PSM_CONTROL, dev_reg_info, false /* enable_snoop */,
nullptr, hd_cb.l2cap_cfg.mtu,
hh_cb.l2cap_cfg.mtu_present = true;
hh_cb.l2cap_cfg.mtu = HID_HOST_MTU;
- hh_cb.l2cap_cfg.flush_to_present = true;
- hh_cb.l2cap_cfg.flush_to = HID_HOST_FLUSH_TO;
/* Now, register with L2CAP */
if (!L2CA_Register2(HID_PSM_INTERRUPT, hst_reg_info, false /* enable_snoop */,