Lines Matching refs:txrc
660 struct ieee80211_tx_rate_control txrc; in ieee80211_tx_h_rate_ctrl() local
664 memset(&txrc, 0, sizeof(txrc)); in ieee80211_tx_h_rate_ctrl()
672 txrc.hw = &tx->local->hw; in ieee80211_tx_h_rate_ctrl()
673 txrc.sband = sband; in ieee80211_tx_h_rate_ctrl()
674 txrc.bss_conf = &tx->sdata->vif.bss_conf; in ieee80211_tx_h_rate_ctrl()
675 txrc.skb = tx->skb; in ieee80211_tx_h_rate_ctrl()
676 txrc.reported_rate.idx = -1; in ieee80211_tx_h_rate_ctrl()
677 txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
678 if (txrc.rate_idx_mask == (1 << sband->n_bitrates) - 1) in ieee80211_tx_h_rate_ctrl()
679 txrc.max_rate_idx = -1; in ieee80211_tx_h_rate_ctrl()
681 txrc.max_rate_idx = fls(txrc.rate_idx_mask) - 1; in ieee80211_tx_h_rate_ctrl()
684 txrc.rate_idx_mcs_mask = in ieee80211_tx_h_rate_ctrl()
687 txrc.bss = (tx->sdata->vif.type == NL80211_IFTYPE_AP || in ieee80211_tx_h_rate_ctrl()
694 txrc.rts = true; in ieee80211_tx_h_rate_ctrl()
697 info->control.use_rts = txrc.rts; in ieee80211_tx_h_rate_ctrl()
709 txrc.short_preamble = true; in ieee80211_tx_h_rate_ctrl()
711 info->control.short_preamble = txrc.short_preamble; in ieee80211_tx_h_rate_ctrl()
733 rate_control_get_rate(tx->sdata, tx->sta, &txrc); in ieee80211_tx_h_rate_ctrl()
757 if (txrc.reported_rate.idx < 0) { in ieee80211_tx_h_rate_ctrl()
758 txrc.reported_rate = tx->rate; in ieee80211_tx_h_rate_ctrl()
760 tx->sta->tx_stats.last_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl()
762 tx->sta->tx_stats.last_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl()
3327 struct ieee80211_tx_rate_control txrc; in __ieee80211_beacon_get() local
3479 memset(&txrc, 0, sizeof(txrc)); in __ieee80211_beacon_get()
3480 txrc.hw = hw; in __ieee80211_beacon_get()
3481 txrc.sband = local->hw.wiphy->bands[band]; in __ieee80211_beacon_get()
3482 txrc.bss_conf = &sdata->vif.bss_conf; in __ieee80211_beacon_get()
3483 txrc.skb = skb; in __ieee80211_beacon_get()
3484 txrc.reported_rate.idx = -1; in __ieee80211_beacon_get()
3485 txrc.rate_idx_mask = sdata->rc_rateidx_mask[band]; in __ieee80211_beacon_get()
3486 if (txrc.rate_idx_mask == (1 << txrc.sband->n_bitrates) - 1) in __ieee80211_beacon_get()
3487 txrc.max_rate_idx = -1; in __ieee80211_beacon_get()
3489 txrc.max_rate_idx = fls(txrc.rate_idx_mask) - 1; in __ieee80211_beacon_get()
3490 txrc.bss = true; in __ieee80211_beacon_get()
3491 rate_control_get_rate(sdata, NULL, &txrc); in __ieee80211_beacon_get()