Lines Matching +full:rates +full:- +full:cck
43 /* rates are in units of Kbps */
160 * In CCK mode LPPHY overloads OFDM Modulation bits with CCK Data Rate
166 {BRCM_RATE_1M, 0x00}, /* CCK 1Mbps, data rate 0 */
167 {BRCM_RATE_2M, 0x08}, /* CCK 2Mbps, data rate 1 */
168 {BRCM_RATE_5M5, 0x10}, /* CCK 5.5Mbps, data rate 2 */
169 {BRCM_RATE_11M, 0x18}, /* CCK 11Mbps, data rate 3 */
178 /* OFDM 24Mbps, code rate 1/2, 16-QAM, 1 spatial stream */
180 /* OFDM 36Mbps, code rate 3/4, 16-QAM, 1 spatial stream */
182 /* OFDM 48Mbps, code rate 2/3, 64-QAM, 1 spatial stream */
184 /* OFDM 54Mbps, code rate 3/4, 64-QAM, 1 spatial stream */
188 /* Hardware rates (also encodes default basic rates) */
276 if (!rs->count) in brcms_c_rateset_valid()
282 /* error if no basic rates */ in brcms_c_rateset_valid()
283 for (idx = 0; idx < rs->count; idx++) { in brcms_c_rateset_valid()
284 if (rs->rates[idx] & BRCMS_RATE_FLAG) in brcms_c_rateset_valid()
294 rs->mcs[i] = 0; in brcms_c_rateset_mcs_upd()
312 count = rs->count; in brcms_c_rate_hwrs_filter_sort_validate()
316 r = (int)rs->rates[i] & BRCMS_RATE_MASK; in brcms_c_rate_hwrs_filter_sort_validate()
319 rateset[r] = rs->rates[i]; /* preserve basic bit! */ in brcms_c_rate_hwrs_filter_sort_validate()
322 /* fill out the rates in order, looking at only supported rates */ in brcms_c_rate_hwrs_filter_sort_validate()
324 for (i = 0; i < hw_rs->count; i++) { in brcms_c_rate_hwrs_filter_sort_validate()
325 r = hw_rs->rates[i] & BRCMS_RATE_MASK; in brcms_c_rate_hwrs_filter_sort_validate()
327 rs->rates[count++] = rateset[r]; in brcms_c_rate_hwrs_filter_sort_validate()
330 rs->count = count; in brcms_c_rate_hwrs_filter_sort_validate()
334 rs->mcs[i] = (rs->mcs[i] & hw_rs->mcs[i]); in brcms_c_rate_hwrs_filter_sort_validate()
349 ((rxh->RxChan & RXS_CHAN_PHYTYPE_MASK) >> RXS_CHAN_PHYTYPE_SHIFT); in brcms_c_compute_rspec()
353 switch (rxh->PhyRxStatus_0 & PRXS0_FT_MASK) { in brcms_c_compute_rspec()
357 ((struct cck_phy_hdr *) plcp)->signal); in brcms_c_compute_rspec()
362 ((struct ofdm_phy_hdr *) plcp)->rlpt[0]); in brcms_c_compute_rspec()
381 if ((phy_type == PHY_TYPE_A) || (rxh->PhyRxStatus_0 & PRXS0_OFDM)) in brcms_c_compute_rspec()
383 ((struct ofdm_phy_hdr *) plcp)->rlpt[0]); in brcms_c_compute_rspec()
386 ((struct cck_phy_hdr *) plcp)->signal); in brcms_c_compute_rspec()
391 /* copy rateset src to dst as-is (no masking or sorting) */
400 * 'basic_only' means only copy basic rates.
401 * 'rates' indicates cck (11b) and ofdm rates combinations.
402 * - 0: cck and ofdm
403 * - 1: cck only
404 * - 2: ofdm only
409 bool basic_only, u8 rates, uint xmask, bool mcsallow) in brcms_c_rateset_filter() argument
416 for (i = 0; i < src->count; i++) { in brcms_c_rateset_filter()
417 r = src->rates[i]; in brcms_c_rateset_filter()
420 if (rates == BRCMS_RATES_CCK && in brcms_c_rateset_filter()
423 if (rates == BRCMS_RATES_OFDM && in brcms_c_rateset_filter()
426 dst->rates[count++] = r & xmask; in brcms_c_rateset_filter()
428 dst->count = count; in brcms_c_rateset_filter()
429 dst->htphy_membership = src->htphy_membership; in brcms_c_rateset_filter()
431 if (mcsallow && rates != BRCMS_RATES_CCK) in brcms_c_rateset_filter()
432 memcpy(&dst->mcs[0], &src->mcs[0], MCSSET_LEN); in brcms_c_rateset_filter()
468 rs_dflt = &cck_rates; /* force cck */ in brcms_c_rateset_default()
491 return -1; in brcms_c_rate_legacy_phyctl()
498 rateset->mcs[i] = 0; in brcms_c_rateset_mcs_clear()
503 memcpy(&rateset->mcs[0], &cck_ofdm_mimo_rates.mcs[0], MCSSET_LEN); in brcms_c_rateset_mcs_build()
511 setbit(rateset->mcs, 32); in brcms_c_rateset_bw_mcs_filter()
513 clrbit(rateset->mcs, 32); in brcms_c_rateset_bw_mcs_filter()