Lines Matching defs:p_cfg
1859 BOOLEAN l2c_fcr_adj_our_req_options (tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg)
1861 tL2CAP_FCR_OPTS *p_fcr = &p_cfg->fcr;
1875 if (p_cfg->fcr_present && p_fcr->mode != L2CAP_FCR_BASIC_MODE)
1885 if (p_cfg->fcr_present && !(p_ccb->config_done & RECONFIG_FLAG))
1899 p_cfg->fcr_present = FALSE;
1900 p_cfg->fcs_present = FALSE; /* Illegal to use FCS option in basic mode */
1901 p_cfg->ext_flow_spec_present = FALSE; /* Illegal to use extended flow spec in basic mode */
1927 if ( (p_cfg->mtu_present) && (p_cfg->mtu > p_ccb->max_rx_mtu) )
1929 L2CAP_TRACE_WARNING2 ("L2CAP - MTU: %u larger than buf size: %u", p_cfg->mtu, p_ccb->max_rx_mtu);
1951 p_cfg->fcs_present = FALSE; /* Illegal to use FCS option in basic mode */
1952 p_cfg->ext_flow_spec_present = FALSE; /* Illegal to use extended flow spec in basic mode */
2012 void l2c_fcr_adj_our_rsp_options (tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg)
2017 p_cfg->fcr_present = p_ccb->out_cfg_fcr_present;
2019 if (p_cfg->fcr_present)
2032 p_cfg->fcr.mode = p_ccb->peer_cfg.fcr.mode;
2033 p_cfg->fcr.tx_win_sz = p_ccb->peer_cfg.fcr.tx_win_sz;
2034 p_cfg->fcr.max_transmit = p_ccb->peer_cfg.fcr.max_transmit;
2035 p_cfg->fcr.mps = p_ccb->peer_cfg.fcr.mps;
2036 p_cfg->fcr.rtrans_tout = p_ccb->our_cfg.fcr.rtrans_tout;
2037 p_cfg->fcr.mon_tout = p_ccb->our_cfg.fcr.mon_tout;
2053 BOOLEAN l2c_fcr_renegotiate_chan(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg)
2059 if (!p_cfg->fcr_present || (p_ccb->config_done & RECONFIG_FLAG))
2063 if (p_cfg->result == L2CAP_CFG_UNACCEPTABLE_PARAMS)
2065 peer_mode = (p_cfg->fcr_present) ? p_cfg->fcr.mode : L2CAP_FCR_BASIC_MODE;
2072 p_cfg->result = L2CAP_CFG_FAILED_NO_REASON;
2119 if ( (p_cfg->mtu_present) && (p_cfg->mtu > L2CAP_MTU_SIZE) )
2121 L2CAP_TRACE_WARNING1 ("L2CAP - adjust MTU: %u too large", p_cfg->mtu);
2122 p_cfg->mtu = L2CAP_MTU_SIZE;
2157 UINT8 l2c_fcr_process_peer_cfg_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg)
2165 p_cfg->fcr_present, p_cfg->fcr.mode, p_ccb->our_cfg.fcr.mode, p_ccb->ertm_info.preferred_mode,
2169 if (p_cfg->fcr.mode == L2CAP_FCR_BASIC_MODE)
2177 else if (p_cfg->fcr.mode != p_ccb->ertm_info.preferred_mode)
2184 if ( (((1 << p_cfg->fcr.mode) & L2CAP_FCR_CHAN_OPT_ALL_MASK) == 0)
2187 p_cfg->fcr.mode = p_ccb->our_cfg.fcr.mode;
2188 p_cfg->fcr.tx_win_sz = p_ccb->our_cfg.fcr.tx_win_sz;
2189 p_cfg->fcr.max_transmit = p_ccb->our_cfg.fcr.max_transmit;
2196 p_cfg->fcr.mode = L2CAP_FCR_BASIC_MODE;
2197 p_cfg->fcr.max_transmit = p_cfg->fcr.tx_win_sz = 0;
2198 p_cfg->fcr.rtrans_tout = p_cfg->fcr.mon_tout = p_cfg->fcr.mps = 0;
2205 else if ( (p_cfg->fcr.mode != L2CAP_FCR_ERTM_MODE)
2219 if (p_cfg->fcr_present && p_cfg->fcr.mode != L2CAP_FCR_BASIC_MODE)
2222 if (p_cfg->fcs_present)
2224 p_ccb->peer_cfg.fcs = p_cfg->fcs;
2226 if( p_cfg->fcs == L2CAP_CFG_FCS_BYPASS)
2234 if ( (p_cfg->fcr.mps == 0) || (p_cfg->fcr.mps > p_ccb->peer_cfg.mtu) )
2236 p_cfg->fcr.mps = p_ccb->peer_cfg.mtu;
2241 if (p_cfg->fcr.mps > max_retrans_size)
2243 L2CAP_TRACE_DEBUG2("CFG: Overriding MPS to %d (orig %d)", max_retrans_size, p_cfg->fcr.mps);
2245 p_cfg->fcr.mps = max_retrans_size;
2249 if (p_cfg->fcr.mode == L2CAP_FCR_ERTM_MODE)
2257 p_ccb->peer_cfg.fcr = p_cfg->fcr;
2259 if (p_cfg->fcr_present)
2300 tL2C_FCR_TEST_CFG *p_cfg;
2315 p_cfg = &p_ccb->fcrb.test_cb.cfg;
2318 p_cfg->type, p_cfg->freq, p_cfg->is_rx, p_cfg->count);
2321 if (p_cfg->freq == L2CAP_FCR_FREQ_RANDOM)
2328 if ( (p_cfg->count == 0)
2329 || (p_cfg->is_rx != is_rx)
2330 || ((UINT8)(ctrl_word & L2CAP_FCR_S_FRAME_BIT) != p_cfg->type) )
2336 if (--(p_cfg->count) == 0)
2386 buf, (UINT32)p_buf, tc, p_buf->len, xx, p_cfg->count);
2393 buf, (UINT32)p_buf, tc, p_buf->len, xx, p_cfg->count);