Lines Matching refs:txrc
575 struct ieee80211_tx_rate_control txrc;
578 memset(&txrc, 0, sizeof(txrc));
586 txrc.hw = local_to_hw(tx->local);
587 txrc.sband = sband;
588 txrc.bss_conf = &tx->sdata->vif.bss_conf;
589 txrc.skb = tx->skb;
590 txrc.reported_rate.idx = -1;
591 txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[tx->channel->band];
592 if (txrc.rate_idx_mask == (1 << sband->n_bitrates) - 1)
593 txrc.max_rate_idx = -1;
595 txrc.max_rate_idx = fls(txrc.rate_idx_mask) - 1;
596 txrc.ap = tx->sdata->vif.type == NL80211_IFTYPE_AP;
600 txrc.rts = rts = true;
612 txrc.short_preamble = short_preamble = true;
634 rate_control_get_rate(tx->sdata, tx->sta, &txrc);
639 if (txrc.reported_rate.idx < 0)
640 txrc.reported_rate = info->control.rates[0];
643 tx->sta->last_tx_rate = txrc.reported_rate;
2149 struct ieee80211_tx_rate_control txrc;
2263 memset(&txrc, 0, sizeof(txrc));
2264 txrc.hw = hw;
2265 txrc.sband = sband;
2266 txrc.bss_conf = &sdata->vif.bss_conf;
2267 txrc.skb = skb;
2268 txrc.reported_rate.idx = -1;
2269 txrc.rate_idx_mask = sdata->rc_rateidx_mask[band];
2270 if (txrc.rate_idx_mask == (1 << sband->n_bitrates) - 1)
2271 txrc.max_rate_idx = -1;
2273 txrc.max_rate_idx = fls(txrc.rate_idx_mask) - 1;
2274 txrc.ap = true;
2275 rate_control_get_rate(sdata, NULL, &txrc);