Loading system/stack/l2cap/l2c_csm.cc +4 −6 Original line number Diff line number Diff line Loading @@ -1033,12 +1033,6 @@ static void l2c_csm_config(tL2C_CCB* p_ccb, uint16_t event, void* p_data) { case L2CEVT_L2CA_CONFIG_RSP: /* Upper layer config rsp */ l2cu_process_our_cfg_rsp(p_ccb, p_cfg); /* Local config done; clear cached configuration in case reconfig takes * place later */ p_ccb->peer_cfg.mtu_present = false; p_ccb->peer_cfg.flush_to_present = false; p_ccb->peer_cfg.qos_present = false; p_ccb->config_done |= IB_CFG_DONE; if (p_ccb->config_done & OB_CFG_DONE) { Loading Loading @@ -1178,6 +1172,10 @@ static void l2c_csm_open(tL2C_CCB* p_ccb, uint16_t event, void* p_data) { tempstate = p_ccb->chnl_state; tempcfgdone = p_ccb->config_done; p_ccb->chnl_state = CST_CONFIG; // clear cached configuration in case reconfig takes place later p_ccb->peer_cfg.mtu_present = false; p_ccb->peer_cfg.flush_to_present = false; p_ccb->peer_cfg.qos_present = false; p_ccb->config_done &= ~IB_CFG_DONE; alarm_set_on_mloop(p_ccb->l2c_ccb_timer, L2CAP_CHNL_CFG_TIMEOUT_MS, Loading system/stack/l2cap/l2c_utils.cc +4 −3 Original line number Diff line number Diff line Loading @@ -1831,7 +1831,7 @@ uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { } } /* Reload mtu from a previously accepted config request */ else if (p_ccb->peer_cfg.mtu_present) { else if (p_ccb->peer_cfg.mtu_present && !(p_ccb->config_done & IB_CFG_DONE)) { p_cfg->mtu_present = true; p_cfg->mtu = p_ccb->peer_cfg.mtu; } Loading @@ -1848,7 +1848,8 @@ uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { } } /* Reload flush_to from a previously accepted config request */ else if (p_ccb->peer_cfg.flush_to_present) { else if (p_ccb->peer_cfg.flush_to_present && !(p_ccb->config_done & IB_CFG_DONE)) { p_cfg->flush_to_present = true; p_cfg->flush_to = p_ccb->peer_cfg.flush_to; } Loading @@ -1868,7 +1869,7 @@ uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { } } /* Reload QOS from a previously accepted config request */ else if (p_ccb->peer_cfg.qos_present) { else if (p_ccb->peer_cfg.qos_present && !(p_ccb->config_done & IB_CFG_DONE)) { p_cfg->qos_present = true; p_cfg->qos = p_ccb->peer_cfg.qos; } Loading Loading
system/stack/l2cap/l2c_csm.cc +4 −6 Original line number Diff line number Diff line Loading @@ -1033,12 +1033,6 @@ static void l2c_csm_config(tL2C_CCB* p_ccb, uint16_t event, void* p_data) { case L2CEVT_L2CA_CONFIG_RSP: /* Upper layer config rsp */ l2cu_process_our_cfg_rsp(p_ccb, p_cfg); /* Local config done; clear cached configuration in case reconfig takes * place later */ p_ccb->peer_cfg.mtu_present = false; p_ccb->peer_cfg.flush_to_present = false; p_ccb->peer_cfg.qos_present = false; p_ccb->config_done |= IB_CFG_DONE; if (p_ccb->config_done & OB_CFG_DONE) { Loading Loading @@ -1178,6 +1172,10 @@ static void l2c_csm_open(tL2C_CCB* p_ccb, uint16_t event, void* p_data) { tempstate = p_ccb->chnl_state; tempcfgdone = p_ccb->config_done; p_ccb->chnl_state = CST_CONFIG; // clear cached configuration in case reconfig takes place later p_ccb->peer_cfg.mtu_present = false; p_ccb->peer_cfg.flush_to_present = false; p_ccb->peer_cfg.qos_present = false; p_ccb->config_done &= ~IB_CFG_DONE; alarm_set_on_mloop(p_ccb->l2c_ccb_timer, L2CAP_CHNL_CFG_TIMEOUT_MS, Loading
system/stack/l2cap/l2c_utils.cc +4 −3 Original line number Diff line number Diff line Loading @@ -1831,7 +1831,7 @@ uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { } } /* Reload mtu from a previously accepted config request */ else if (p_ccb->peer_cfg.mtu_present) { else if (p_ccb->peer_cfg.mtu_present && !(p_ccb->config_done & IB_CFG_DONE)) { p_cfg->mtu_present = true; p_cfg->mtu = p_ccb->peer_cfg.mtu; } Loading @@ -1848,7 +1848,8 @@ uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { } } /* Reload flush_to from a previously accepted config request */ else if (p_ccb->peer_cfg.flush_to_present) { else if (p_ccb->peer_cfg.flush_to_present && !(p_ccb->config_done & IB_CFG_DONE)) { p_cfg->flush_to_present = true; p_cfg->flush_to = p_ccb->peer_cfg.flush_to; } Loading @@ -1868,7 +1869,7 @@ uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { } } /* Reload QOS from a previously accepted config request */ else if (p_ccb->peer_cfg.qos_present) { else if (p_ccb->peer_cfg.qos_present && !(p_ccb->config_done & IB_CFG_DONE)) { p_cfg->qos_present = true; p_cfg->qos = p_ccb->peer_cfg.qos; } Loading