Lines Matching defs:rate

119 	const struct ieee80211_rate *rate;
123 rate = &sband->bitrates[i];
125 if (ath10k_mac_bitrate_is_cck(rate->bitrate) != cck)
128 if (rate->hw_value == hw_rate)
130 else if (rate->flags & IEEE80211_RATE_SHORT_PREAMBLE &&
131 rate->hw_value_short == hw_rate)
2239 u8 rate;
2259 rate = ath10k_mac_bitrate_to_rate(rates->bitrate);
2260 rateset->rates[rateset->num_rates] = rate;
2514 static u32 get_160mhz_nss_from_maxrate(int rate)
2518 switch (rate) {
4147 * reported TX rate. This is just a rough estimation because host driver has no
4148 * knowledge of the actual transmit rate, retries or aggregation. If actual
4180 * airtime/rate doesn't need be exact. Airtime of BC/MC frames
4181 * in 2G get some discount, which helps prevent very low rate
5926 ath10k_warn(ar, "failed to set mgmt tx rate %d\n", ret);
5939 u8 rate, rateidx;
6142 rate = ATH10K_HW_RATECODE(hw_value, 0, preamble);
6146 arvif->vdev_id, rate);
6150 vdev_param, rate);
6153 "failed to set mcast rate on vdev %i: %d\n",
6158 vdev_param, rate);
6161 "failed to set bcast rate on vdev %i: %d\n",
6762 u8 *rate, u8 *nss, bool vht_only)
6788 *rate = preamble << 6 |
6798 *rate = WMI_RATE_PREAMBLE_HT << 6 |
6810 *rate = WMI_RATE_PREAMBLE_VHT << 6 |
6833 ath10k_warn(ar, "Invalid VHT rate for sta %pM\n",
6839 ath10k_warn(ar, "Invalid HT rate for sta %pM\n",
6861 u8 nss, rate;
6881 &rate, &nss, false);
6883 ath10k_warn(ar, "failed to get single rate: %d\n",
6888 *rate_ctrl_flag = rate;
8100 u8 rate, u8 nss, u8 sgi, u8 ldpc)
8108 ath10k_dbg(ar, ATH10K_DBG_MAC, "mac set fixed rate params vdev %i rate 0x%02hhx nss %hhu sgi %hhu\n",
8109 arvif->vdev_id, rate, nss, sgi);
8112 ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, rate);
8114 ath10k_warn(ar, "failed to set fixed rate param 0x%02x: %d\n",
8115 rate, ret);
8153 * to express all VHT MCS rate masks. Effectively only the following
8180 u8 rate = arvif->vht_pfr;
8182 /* skip non vht and multiple rate peers */
8187 WMI_PEER_PARAM_FIXED_RATE, rate);
8189 ath10k_warn(ar, "failed to enable STA %pM peer fixed rate: %d\n",
8231 ath10k_warn(ar, "failed to clear STA %pM peer fixed rate: %d\n",
8245 u8 rate;
8280 &rate, &nss,
8283 ath10k_warn(ar, "failed to get single rate for vdev %i: %d\n",
8289 rate = WMI_FIXED_RATE_NONE;
8292 rate = WMI_FIXED_RATE_NONE;
8304 /* Reach here, firmware supports peer fixed rate and has
8305 * single vht rate, and don't update vif birate_mask, as
8306 * the rate only for specific peer.
8332 ret = ath10k_mac_set_fixed_rate_params(arvif, rate, nss, sgi, ldpc);
8334 ath10k_warn(ar, "failed to set fixed rate params on vdev %i: %d\n",
8976 static void ath10k_mac_get_rate_flags_ht(struct ath10k *ar, u32 rate, u8 nss, u8 mcs,
8985 ath10k_warn(ar, "not supported mcs %d in current rate table", mcs);
8998 if (rate == mcs_rate[index].supported_rate[0]) {
9000 } else if (rate == mcs_rate[index].supported_rate[1]) {
9002 } else if (rate == mcs_rate[index].supported_rate[2]) {
9005 } else if (rate == mcs_rate[index].supported_rate[3]) {
9009 ath10k_warn(ar, "invalid ht params rate %d 100kbps nss %d mcs %d",
9010 rate, nss, mcs);
9014 static void ath10k_mac_get_rate_flags_vht(struct ath10k *ar, u32 rate, u8 nss, u8 mcs,
9023 if (rate == mcs_rate[mcs].supported_VHT80_rate[0]) {
9025 } else if (rate == mcs_rate[mcs].supported_VHT80_rate[1]) {
9028 } else if (rate == mcs_rate[mcs].supported_VHT40_rate[0]) {
9030 } else if (rate == mcs_rate[mcs].supported_VHT40_rate[1]) {
9033 } else if (rate == mcs_rate[mcs].supported_VHT20_rate[0]) {
9035 } else if (rate == mcs_rate[mcs].supported_VHT20_rate[1]) {
9039 ath10k_warn(ar, "invalid vht params rate %d 100kbps nss %d mcs %d",
9040 rate, nss, mcs);
9044 static void ath10k_mac_get_rate_flags(struct ath10k *ar, u32 rate,
9050 ath10k_mac_get_rate_flags_ht(ar, rate, nss, mcs, flags, bw);
9053 ath10k_mac_get_rate_flags_vht(ar, rate, nss, mcs, flags, bw);
9058 u32 bitrate_kbps, struct rate_info *rate)
9066 ath10k_dbg(ar, ATH10K_DBG_MAC, "mac parse rate code 0x%x bitrate %d kbps\n",
9080 rate->flags = flags;
9081 rate->bw = bw;
9082 rate->legacy = bitrate_kbps / 100;
9083 rate->nss = nss;
9084 rate->mcs = mcs;