Lines Matching refs:mcs
1360 MCS mcs; in get_rate_v1() local
1365 mcs.mcs = mcs_r; in get_rate_v1()
1366 nss = mcs.mcs_s.nss + 1; in get_rate_v1()
1368 switch (mcs.mcs_s.preamble) { in get_rate_v1()
1371 if ((mcs.mcs_s.rate & 0xF) == index) in get_rate_v1()
1372 tx_rate = (u16) ofdm_mcs_nss1[index].ofdm_rate[mcs.mcs_s.short_gi] / 1000; in get_rate_v1()
1377 if ((mcs.mcs_s.rate & 0xF) == index) in get_rate_v1()
1378 tx_rate = (u16) cck_mcs_nss1[index].cck_rate[mcs.mcs_s.short_gi] / 1000; in get_rate_v1()
1384 if (mcs.mcs_s.rate == index) { in get_rate_v1()
1385 if (mcs.mcs_s.bw == BW_20MHZ) in get_rate_v1()
1386 tx_rate = (u16) mcs_nss1[index].ht20_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1387 if (mcs.mcs_s.bw == BW_40MHZ) in get_rate_v1()
1388 tx_rate = (u16) mcs_nss1[index].ht40_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1393 if (mcs.mcs_s.rate == index) { in get_rate_v1()
1394 if (mcs.mcs_s.bw == BW_20MHZ) in get_rate_v1()
1395 tx_rate = (u16) mcs_nss2[index].ht20_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1396 if (mcs.mcs_s.bw == BW_40MHZ) in get_rate_v1()
1397 tx_rate = (u16) mcs_nss2[index].ht40_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1407 if (mcs.mcs_s.rate == index) { in get_rate_v1()
1408 if (mcs.mcs_s.bw == BW_20MHZ) in get_rate_v1()
1409 tx_rate = (u16) vht_mcs_nss1[index].ht20_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1410 if (mcs.mcs_s.bw == BW_40MHZ) in get_rate_v1()
1411 tx_rate = (u16) vht_mcs_nss1[index].ht40_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1412 if (mcs.mcs_s.bw == BW_80MHZ) in get_rate_v1()
1413 tx_rate = (u16) vht_mcs_nss1[index].ht40_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1418 if (mcs.mcs_s.rate == index) { in get_rate_v1()
1419 if (mcs.mcs_s.bw == BW_20MHZ) in get_rate_v1()
1420 tx_rate = (u16) vht_mcs_nss2[index].ht20_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1421 if (mcs.mcs_s.bw == BW_40MHZ) in get_rate_v1()
1422 tx_rate = (u16) vht_mcs_nss2[index].ht40_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1423 if (mcs.mcs_s.bw == BW_80MHZ) in get_rate_v1()
1424 tx_rate = (u16) vht_mcs_nss2[index].ht40_rate[mcs.mcs_s.short_gi] / 10; in get_rate_v1()
1432 ALOGE("Unexpected preamble %d", mcs.mcs_s.preamble); in get_rate_v1()
1440 MCS mcs; in get_rate() local
1465 mcs.mcs = mcs_r; in get_rate()
1466 if ((mcs.mcs_s.preamble <= WL_PREAMBLE_VHT) && (mcs.mcs_s.rate < 10)) { in get_rate()
1467 switch(mcs.mcs_s.preamble) in get_rate()
1471 if(mcs.mcs_s.rate<8) { in get_rate()
1472 tx_rate = rate_lookup [mcs.mcs_s.preamble][mcs.mcs_s.rate]; in get_rate()
1473 if (mcs.mcs_s.nss) in get_rate()
1480 if(mcs.mcs_s.rate<8) { in get_rate()
1481 if (!mcs.mcs_s.nss) in get_rate()
1482 tx_rate = MCS_rate_lookup_ht[mcs.mcs_s.rate] in get_rate()
1483 [2*mcs.mcs_s.bw+mcs.mcs_s.short_gi]; in get_rate()
1485 tx_rate = MCS_rate_lookup_ht[10+mcs.mcs_s.rate] in get_rate()
1486 [2*mcs.mcs_s.bw+mcs.mcs_s.short_gi]; in get_rate()
1492 if (!mcs.mcs_s.nss) in get_rate()
1493 tx_rate = MCS_rate_lookup_ht[mcs.mcs_s.rate] in get_rate()
1494 [2*mcs.mcs_s.bw+mcs.mcs_s.short_gi]; in get_rate()
1496 tx_rate = MCS_rate_lookup_ht[10+mcs.mcs_s.rate] in get_rate()
1497 [2*mcs.mcs_s.bw+mcs.mcs_s.short_gi]; in get_rate()
1516 pps_entry->MCS = info->aggr_stats.RxMCS.mcs; in populate_rx_aggr_stats()
1613 MCS *mcs = &info->aggr_stats.RxMCS; in parse_rx_stats_v2() local
1620 mcs->mcs_s.preamble = WIFI_HW_RATECODE_PREAM_CCK; in parse_rx_stats_v2()
1621 mcs->mcs_s.rate = cck_ratecode_mapping(rx_stats_rcvd->ppdu_start.l_sig_rate); in parse_rx_stats_v2()
1623 mcs->mcs_s.preamble = WIFI_HW_RATECODE_PREAM_OFDM; in parse_rx_stats_v2()
1624 mcs->mcs_s.rate = ofdm_ratecode_mapping(rx_stats_rcvd->ppdu_start.l_sig_rate); in parse_rx_stats_v2()
1630 mcs->mcs_s.nss = ((ht_vht_sig >> 3) & 0x3); in parse_rx_stats_v2()
1632 mcs->mcs_s.preamble = WIFI_HW_RATECODE_PREAM_HT; in parse_rx_stats_v2()
1633 mcs->mcs_s.rate = ((ht_vht_sig & BITMASK(7)) % 8) & 0xF; in parse_rx_stats_v2()
1634 mcs->mcs_s.bw = ((ht_vht_sig >> 7) & 1); in parse_rx_stats_v2()
1635 mcs->mcs_s.short_gi = in parse_rx_stats_v2()
1640 mcs->mcs_s.nss = ((ht_vht_sig >> 10) & 0x3); in parse_rx_stats_v2()
1641 mcs->mcs_s.preamble = WIFI_HW_RATECODE_PREAM_VHT; in parse_rx_stats_v2()
1642 mcs->mcs_s.rate = in parse_rx_stats_v2()
1644 mcs->mcs_s.bw = (ht_vht_sig & 3); in parse_rx_stats_v2()
1645 mcs->mcs_s.short_gi = in parse_rx_stats_v2()
1650 = get_rate_v1(info->aggr_stats.RxMCS.mcs); in parse_rx_stats_v2()
1743 MCS *mcs = &info->aggr_stats.RxMCS; in parse_rx_stats() local
1750 mcs->mcs_s.preamble = WL_PREAMBLE_OFDM; in parse_rx_stats()
1751 mcs->mcs_s.rate = rx_stats_rcvd->ppdu_start.l_sig_rate - 8; in parse_rx_stats()
1756 mcs->mcs_s.nss = ((ht_vht_sig >> 3) & 0x3); in parse_rx_stats()
1757 mcs->mcs_s.preamble = WL_PREAMBLE_HT; in parse_rx_stats()
1758 mcs->mcs_s.rate = (ht_vht_sig & BITMASK(7)) >> 3; in parse_rx_stats()
1759 mcs->mcs_s.bw = ((ht_vht_sig >> 7) & 1); in parse_rx_stats()
1760 mcs->mcs_s.short_gi = in parse_rx_stats()
1765 mcs->mcs_s.nss = ((ht_vht_sig >> 10) & 0x3); in parse_rx_stats()
1766 mcs->mcs_s.preamble = WL_PREAMBLE_VHT; in parse_rx_stats()
1767 mcs->mcs_s.rate = in parse_rx_stats()
1769 mcs->mcs_s.bw = (ht_vht_sig & 3); in parse_rx_stats()
1770 mcs->mcs_s.short_gi = in parse_rx_stats()
1775 = get_rate(info->aggr_stats.RxMCS.mcs); in parse_rx_stats()
1799 MCS mcs; in get_tx_mcs_v1() local
1802 mcs.mcs = 0; in get_tx_mcs_v1()
1807 mcs.mcs_s.rate = rate_code.rateCode & 0xF; in get_tx_mcs_v1()
1808 mcs.mcs_s.nss = (rate_code.rateCode >> 4) & 0x3; in get_tx_mcs_v1()
1809 mcs.mcs_s.preamble = (rate_code.rateCode >> 6) & 0x3; in get_tx_mcs_v1()
1810 mcs.mcs_s.short_gi = (((extended_flags >> 12) & 0x1) == 1) ? 1 : 0; in get_tx_mcs_v1()
1811 mcs.mcs_s.bw = (rate_code.flags >> 5) & 0x3; in get_tx_mcs_v1()
1813 return mcs.mcs; in get_tx_mcs_v1()
1819 MCS mcs; in get_tx_mcs() local
1822 mcs.mcs = 0; in get_tx_mcs()
1845 mcs.mcs_s.rate = sbw->rate; in get_tx_mcs()
1846 mcs.mcs_s.nss = sbw->nss; in get_tx_mcs()
1847 mcs.mcs_s.preamble = sbw->preamble_type; in get_tx_mcs()
1848 mcs.mcs_s.short_gi = sbw->short_gi; in get_tx_mcs()
1851 return mcs.mcs; in get_tx_mcs()