Lines Matching full:rates
703 struct ieee80211_tx_rate *rates) in mt7603_wtbl_set_rates() argument
721 rates[i] = rates[n_rates - 1]; in mt7603_wtbl_set_rates()
724 memcpy(sta->rateset[rateset].rates, rates, in mt7603_wtbl_set_rates()
725 sizeof(sta->rateset[rateset].rates)); in mt7603_wtbl_set_rates()
731 ref = &sta->rateset[rateset].rates[0]; in mt7603_wtbl_set_rates()
734 rates = sta->rateset[rateset].rates; in mt7603_wtbl_set_rates()
735 for (i = 0; i < ARRAY_SIZE(sta->rateset[rateset].rates); i++) { in mt7603_wtbl_set_rates()
743 if ((ref->flags ^ rates[i].flags) & IEEE80211_TX_RC_SHORT_GI) in mt7603_wtbl_set_rates()
744 rates[i].flags ^= IEEE80211_TX_RC_SHORT_GI; in mt7603_wtbl_set_rates()
747 if (rates[i].idx != rates[k].idx) in mt7603_wtbl_set_rates()
749 if ((rates[i].flags ^ rates[k].flags) & in mt7603_wtbl_set_rates()
753 if (!rates[i].idx) in mt7603_wtbl_set_rates()
756 rates[i].idx--; in mt7603_wtbl_set_rates()
763 val[0] = mt7603_mac_tx_rate_val(dev, &rates[0], stbc, &bw); in mt7603_wtbl_set_rates()
779 val[1] = mt7603_mac_tx_rate_val(dev, &rates[1], stbc, &bw); in mt7603_wtbl_set_rates()
785 val[2] = mt7603_mac_tx_rate_val(dev, &rates[2], stbc, &bw); in mt7603_wtbl_set_rates()
791 val[3] = mt7603_mac_tx_rate_val(dev, &rates[3], stbc, &bw); in mt7603_wtbl_set_rates()
895 struct ieee80211_tx_rate *rate = &info->control.rates[0]; in mt7603_mac_write_txwi()
1047 mt7603_wtbl_set_rates(dev, msta, &info->control.rates[0], in mt7603_tx_prepare_skb()
1048 msta->rates); in mt7603_tx_prepare_skb()
1080 fixed_rate = info->status.rates[0].count; in mt7603_fill_txs()
1111 info->status.rates[0].count = count; in mt7603_fill_txs()
1123 info->status.rates[0] = rs->probe_rate; in mt7603_fill_txs()
1128 sta->rates); in mt7603_fill_txs()
1133 info->status.rates[0] = rs->rates[first_idx / 2]; in mt7603_fill_txs()
1135 info->status.rates[0].count = 0; in mt7603_fill_txs()
1141 cur_rate = &rs->rates[idx / 2]; in mt7603_fill_txs()
1145 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7603_fill_txs()
1146 cur_rate->flags != info->status.rates[i].flags)) { in mt7603_fill_txs()
1148 if (i == ARRAY_SIZE(info->status.rates)) { in mt7603_fill_txs()
1153 info->status.rates[i] = *cur_rate; in mt7603_fill_txs()
1154 info->status.rates[i].count = 0; in mt7603_fill_txs()
1157 info->status.rates[i].count += cur_count; in mt7603_fill_txs()
1161 final_rate_flags = info->status.rates[i].flags; in mt7603_fill_txs()
1188 info->status.rates[i].idx = final_rate; in mt7603_fill_txs()
1189 info->status.rates[i].flags = final_rate_flags; in mt7603_fill_txs()
1214 info->status.rates[0].idx = -1; in mt7603_mac_add_txs_skb()