Lines Matching refs:mode

233       (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)) {
377 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) {
435 /* Set the F-bit and reqseq only if using re-transmission mode */
436 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) {
493 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)
620 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_STREAM_MODE) {
1291 /* If any SAR problem in eRTM mode, spec says disconnect. */
1332 * Description This function processes frames in streaming mode
1373 "Rx L2CAP PDU: CID: 0x%04x BAD S-frame in streaming mode ctrl_word: "
1766 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) {
1878 * Basic mode is used if FCR Options have not been received
1919 if (p_fcr->mode != p_ccb->ertm_info.preferred_mode) {
1922 "mode (%d)",
1923 p_ccb->ertm_info.preferred_mode, p_fcr->mode);
1925 /* The preferred mode is passed in through tL2CAP_ERTM_INFO, so override
1927 p_fcr->mode = p_ccb->ertm_info.preferred_mode;
1930 /* If upper layer did not request eRTM mode, BASIC must be used */
1932 if (p_cfg->fcr_present && p_fcr->mode != L2CAP_FCR_BASIC_MODE) {
1934 "l2c_fcr_adj_our_req_options (mode %d): ERROR: No FCR options set "
1935 "using BASIC mode",
1936 p_fcr->mode);
1938 p_fcr->mode = L2CAP_FCR_BASIC_MODE;
1943 ** Determine initial channel mode to try based on our options and remote's
1947 /* We need to have at least one mode type common with the peer */
1954 /* Basic is the only common channel mode between the two devices */
1959 p_cfg->fcs_present = false; /* Illegal to use FCS option in basic mode */
1961 false; /* Illegal to use extended flow spec in basic mode */
1964 /* We have at least one non-basic mode available
1965 * Override mode from available mode options based on preference, if needed
1969 if (p_fcr->mode == L2CAP_FCR_STREAM_MODE &&
1972 "L2C CFG: mode is STREAM, but peer does not support; Try ERTM");
1973 p_fcr->mode = L2CAP_FCR_ERTM_MODE;
1978 if (p_fcr->mode == L2CAP_FCR_ERTM_MODE &&
1981 "L2C CFG: mode is ERTM, but peer does not support; Try BASIC");
1982 p_fcr->mode = L2CAP_FCR_BASIC_MODE;
1986 if (p_fcr->mode != L2CAP_FCR_BASIC_MODE) {
2010 p_cfg->fcs_present = false; /* Illegal to use FCS option in basic mode */
2012 false; /* Illegal to use extended flow spec in basic mode */
2044 if ((p_ccb->our_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) ||
2045 (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE)) {
2065 * Only makes adjustments if channel is in ERTM mode.
2091 p_cfg->fcr.mode = p_ccb->peer_cfg.fcr.mode;
2105 * If the error is because of the channel mode, it will try
2116 uint8_t peer_mode = p_ccb->our_cfg.fcr.mode;
2126 peer_mode = (p_cfg->fcr_present) ? p_cfg->fcr.mode : L2CAP_FCR_BASIC_MODE;
2128 if (p_ccb->our_cfg.fcr.mode != peer_mode) {
2136 /* Try another supported mode if available based on our last attempted
2138 switch (p_ccb->our_cfg.fcr.mode) {
2139 /* Our Streaming mode request was unnacceptable; try ERTM or Basic */
2145 p_ccb->our_cfg.fcr.mode = L2CAP_FCR_ERTM_MODE;
2150 /* We can try basic for any other peer mode if we support it */
2154 p_ccb->our_cfg.fcr.mode = L2CAP_FCR_BASIC_MODE;
2166 if (p_ccb->our_cfg.fcr.mode == L2CAP_FCR_BASIC_MODE) {
2187 if (p_ccb->our_cfg.fcr.mode != peer_mode) {
2189 p_ccb->our_cfg.fcr.mode, peer_mode);
2218 "l2c_fcr_process_peer_cfg_req() CFG fcr_present:%d fcr.mode:%d CCB FCR "
2219 "mode:%d preferred: %u allowed:%u",
2220 p_cfg->fcr_present, p_cfg->fcr.mode, p_ccb->our_cfg.fcr.mode,
2224 if (p_cfg->fcr.mode == L2CAP_FCR_BASIC_MODE) {
2231 else if (p_cfg->fcr.mode != p_ccb->ertm_info.preferred_mode) {
2232 /* If peer wants a mode that we don't support then retry our mode (ex.
2234 ** If we want ERTM and they wanted streaming retry our mode.
2235 ** Note: If we have already determined they support our mode previously
2238 if ((((1 << p_cfg->fcr.mode) & L2CAP_FCR_CHAN_OPT_ALL_MASK) == 0) ||
2240 p_cfg->fcr.mode = p_ccb->our_cfg.fcr.mode;
2248 p_cfg->fcr.mode = L2CAP_FCR_BASIC_MODE;
2260 else if ((p_cfg->fcr.mode != L2CAP_FCR_ERTM_MODE) ||
2273 if (p_cfg->fcr_present && p_cfg->fcr.mode != L2CAP_FCR_BASIC_MODE) {
2274 /* Peer desires to bypass FCS check, and streaming or ERTM mode */
2301 if (p_cfg->fcr.mode == L2CAP_FCR_ERTM_MODE ||
2302 p_cfg->fcr.mode == L2CAP_FCR_STREAM_MODE) {
2313 /* Allow peer only one retry for mode */