tcid(0),
ccb_idx(0),
state(0),
- cfg_flags(0),
- id(0) {}
+ cfg_flags(0) {}
void Reset() {
peer_mtu = 0;
ccb_idx = 0;
state = 0;
cfg_flags = 0;
- id = 0;
}
uint16_t peer_mtu; // L2CAP MTU of the peer device
uint8_t ccb_idx; // Channel control block for with this transport channel
uint8_t state; // Transport channel state
uint8_t cfg_flags; // L2CAP configuration flags
- uint8_t id;
};
/**
p_tbl->my_mtu = kAvdtpMtu;
p_tbl->tcid = AVDT_CHAN_SIG;
p_tbl->lcid = lcid;
- p_tbl->id = id;
p_tbl->state = AVDT_AD_ST_SEC_ACP;
p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_ACP;
uint8_t conn_flags;
- uint8_t ctrl_id;
uint16_t ctrl_cid;
uint16_t intr_cid;
uint16_t rem_mtu_size;
tHID_DEV_DEV_CTB* p_dev;
bool accept = TRUE; // accept by default
- HIDD_TRACE_EVENT("%s: psm=%04x cid=%04x id=%02x", __func__, psm, cid, id);
+ HIDD_TRACE_EVENT("%s: psm=%04x cid=%04x", __func__, psm, cid);
p_dev = &hd_cb.device;
p_hcon->conn_flags = 0;
p_hcon->ctrl_cid = cid;
- p_hcon->ctrl_id = id;
p_hcon->disc_reason = HID_SUCCESS;
p_hcon->conn_state = HID_CONN_STATE_CONNECTING_INTR;
return;
if (psm == HID_PSM_CONTROL) {
p_hcon->conn_flags = 0;
p_hcon->ctrl_cid = l2cap_cid;
- p_hcon->ctrl_id = l2cap_id;
p_hcon->disc_reason = HID_SUCCESS; /* Authentication passed. Reset
disc_reason (from
HID_ERR_AUTH_FAILED) */
bool is_disc_initiator; /* true if initiated disc of port */
uint16_t
pending_lcid; /* store LCID for incoming connection while connecting */
- uint8_t
- pending_id; /* store l2cap ID for incoming connection while connecting */
} tRFC_MCB;
/*
/* if this is collision case */
if ((p_mcb->is_initiator) && (p_mcb->state == RFC_MX_STATE_WAIT_CONN_CNF)) {
p_mcb->pending_lcid = lcid;
- p_mcb->pending_id = id;
/* wait random timeout (2 - 12) to resolve collision */
/* if peer gives up then local device rejects incoming connection and
}
}
- rfc_mx_sm_execute(p_mcb, RFC_MX_EVENT_CONN_IND, &(p_mcb->pending_id));
+ rfc_mx_sm_execute(p_mcb, RFC_MX_EVENT_CONN_IND, nullptr);
} else {
PORT_CloseInd(p_mcb);
}
}
}
- rfc_mx_sm_execute(p_mcb, RFC_MX_EVENT_CONN_IND, &(p_mcb->pending_id));
+ rfc_mx_sm_execute(p_mcb, RFC_MX_EVENT_CONN_IND, nullptr);
}
if (result == L2CAP_CFG_FAILED_NO_REASON) {