Lines Matching refs:txrc

651 	struct ieee80211_tx_rate_control txrc;  in ieee80211_tx_h_rate_ctrl()  local
655 memset(&txrc, 0, sizeof(txrc)); in ieee80211_tx_h_rate_ctrl()
663 txrc.hw = &tx->local->hw; in ieee80211_tx_h_rate_ctrl()
664 txrc.sband = sband; in ieee80211_tx_h_rate_ctrl()
665 txrc.bss_conf = &tx->sdata->vif.bss_conf; in ieee80211_tx_h_rate_ctrl()
666 txrc.skb = tx->skb; in ieee80211_tx_h_rate_ctrl()
667 txrc.reported_rate.idx = -1; in ieee80211_tx_h_rate_ctrl()
668 txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
669 if (txrc.rate_idx_mask == (1 << sband->n_bitrates) - 1) in ieee80211_tx_h_rate_ctrl()
670 txrc.max_rate_idx = -1; in ieee80211_tx_h_rate_ctrl()
672 txrc.max_rate_idx = fls(txrc.rate_idx_mask) - 1; in ieee80211_tx_h_rate_ctrl()
675 txrc.rate_idx_mcs_mask = in ieee80211_tx_h_rate_ctrl()
678 txrc.bss = (tx->sdata->vif.type == NL80211_IFTYPE_AP || in ieee80211_tx_h_rate_ctrl()
684 txrc.rts = true; in ieee80211_tx_h_rate_ctrl()
687 info->control.use_rts = txrc.rts; in ieee80211_tx_h_rate_ctrl()
699 txrc.short_preamble = true; in ieee80211_tx_h_rate_ctrl()
701 info->control.short_preamble = txrc.short_preamble; in ieee80211_tx_h_rate_ctrl()
723 rate_control_get_rate(tx->sdata, tx->sta, &txrc); in ieee80211_tx_h_rate_ctrl()
747 if (txrc.reported_rate.idx < 0) { in ieee80211_tx_h_rate_ctrl()
748 txrc.reported_rate = tx->rate; in ieee80211_tx_h_rate_ctrl()
750 tx->sta->last_tx_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl()
752 tx->sta->last_tx_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl()
2812 struct ieee80211_tx_rate_control txrc; in __ieee80211_beacon_get() local
2964 memset(&txrc, 0, sizeof(txrc)); in __ieee80211_beacon_get()
2965 txrc.hw = hw; in __ieee80211_beacon_get()
2966 txrc.sband = local->hw.wiphy->bands[band]; in __ieee80211_beacon_get()
2967 txrc.bss_conf = &sdata->vif.bss_conf; in __ieee80211_beacon_get()
2968 txrc.skb = skb; in __ieee80211_beacon_get()
2969 txrc.reported_rate.idx = -1; in __ieee80211_beacon_get()
2970 txrc.rate_idx_mask = sdata->rc_rateidx_mask[band]; in __ieee80211_beacon_get()
2971 if (txrc.rate_idx_mask == (1 << txrc.sband->n_bitrates) - 1) in __ieee80211_beacon_get()
2972 txrc.max_rate_idx = -1; in __ieee80211_beacon_get()
2974 txrc.max_rate_idx = fls(txrc.rate_idx_mask) - 1; in __ieee80211_beacon_get()
2975 txrc.bss = true; in __ieee80211_beacon_get()
2976 rate_control_get_rate(sdata, NULL, &txrc); in __ieee80211_beacon_get()