Lines Matching refs:nss
166 static int ath10k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath10k_mac_get_max_vht_mcs_map() argument
168 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath10k_mac_get_max_vht_mcs_map()
179 int nss; in ath10k_mac_max_ht_nss() local
181 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath10k_mac_max_ht_nss()
182 if (ht_mcs_mask[nss]) in ath10k_mac_max_ht_nss()
183 return nss + 1; in ath10k_mac_max_ht_nss()
191 int nss; in ath10k_mac_max_vht_nss() local
193 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath10k_mac_max_vht_nss()
194 if (vht_mcs_mask[nss]) in ath10k_mac_max_vht_nss()
195 return nss + 1; in ath10k_mac_max_vht_nss()
2268 int nss; in ath10k_peer_assoc_h_ht_masked() local
2270 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath10k_peer_assoc_h_ht_masked()
2271 if (ht_mcs_mask[nss]) in ath10k_peer_assoc_h_ht_masked()
2280 int nss; in ath10k_peer_assoc_h_vht_masked() local
2282 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath10k_peer_assoc_h_vht_masked()
2283 if (vht_mcs_mask[nss]) in ath10k_peer_assoc_h_vht_masked()
2468 int nss; in ath10k_peer_assoc_h_vht_limit() local
2472 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath10k_peer_assoc_h_vht_limit()
2473 mcs_map = ath10k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath10k_peer_assoc_h_vht_limit()
2474 vht_mcs_limit[nss]; in ath10k_peer_assoc_h_vht_limit()
2507 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath10k_peer_assoc_h_vht_limit()
2508 tx_mcs_set |= mcs << (nss * 2); in ath10k_peer_assoc_h_vht_limit()
2516 u32 nss; in get_160mhz_nss_from_maxrate() local
2520 nss = 1; in get_160mhz_nss_from_maxrate()
2523 nss = 2; in get_160mhz_nss_from_maxrate()
2526 nss = 3; /* not support MCS9 from spec*/ in get_160mhz_nss_from_maxrate()
2529 nss = 4; in get_160mhz_nss_from_maxrate()
2532 nss = 1; in get_160mhz_nss_from_maxrate()
2535 return nss; in get_160mhz_nss_from_maxrate()
5586 u16 nss = get_nss_from_chainmask(ar->cfg_tx_chainmask); in ath10k_add_interface() local
5588 vdev_param = ar->wmi.vdev_param->nss; in ath10k_add_interface()
5590 nss); in ath10k_add_interface()
5593 arvif->vdev_id, ar->cfg_tx_chainmask, nss, in ath10k_add_interface()
6572 u32 changed, bw, nss, smps; in ath10k_sta_rc_update_wk() local
6593 nss = arsta->nss; in ath10k_sta_rc_update_wk()
6600 nss = max_t(u32, 1, nss); in ath10k_sta_rc_update_wk()
6601 nss = min(nss, max(ath10k_mac_max_ht_nss(ht_mcs_mask), in ath10k_sta_rc_update_wk()
6628 sta->addr, nss); in ath10k_sta_rc_update_wk()
6631 ar->wmi.peer_param->nss, nss); in ath10k_sta_rc_update_wk()
6634 sta->addr, nss, err); in ath10k_sta_rc_update_wk()
6762 u8 *rate, u8 *nss, bool vht_only) in ath10k_mac_bitrate_mask_get_single_rate() argument
6787 *nss = 1; in ath10k_mac_bitrate_mask_get_single_rate()
6789 (*nss - 1) << 4 | in ath10k_mac_bitrate_mask_get_single_rate()
6797 *nss = i + 1; in ath10k_mac_bitrate_mask_get_single_rate()
6799 (*nss - 1) << 4 | in ath10k_mac_bitrate_mask_get_single_rate()
6809 *nss = i + 1; in ath10k_mac_bitrate_mask_get_single_rate()
6811 (*nss - 1) << 4 | in ath10k_mac_bitrate_mask_get_single_rate()
6823 u32 rate_ctrl_flag, u8 nss) in ath10k_mac_validate_rate_mask() argument
6825 if (nss > sta->rx_nss) { in ath10k_mac_validate_rate_mask()
6827 nss, sta->rx_nss); in ath10k_mac_validate_rate_mask()
6861 u8 nss, rate; in ath10k_mac_tid_bitrate_config() local
6881 &rate, &nss, false); in ath10k_mac_tid_bitrate_config()
6890 if (sta && ath10k_mac_validate_rate_mask(ar, sta, *rate_ctrl_flag, nss)) in ath10k_mac_tid_bitrate_config()
7179 u8 nss; in ath10k_sta_tid_cfg_wk() local
7235 nss = ATH10K_HW_NSS(arvif->rate_code[i]); in ath10k_sta_tid_cfg_wk()
7238 nss); in ath10k_sta_tid_cfg_wk()
8054 int *nss) in ath10k_mac_bitrate_mask_get_single_nss() argument
8094 *nss = fls(ht_nss_mask); in ath10k_mac_bitrate_mask_get_single_nss()
8100 u8 rate, u8 nss, u8 sgi, u8 ldpc) in ath10k_mac_set_fixed_rate_params() argument
8109 arvif->vdev_id, rate, nss, sgi); in ath10k_mac_set_fixed_rate_params()
8119 vdev_param = ar->wmi.vdev_param->nss; in ath10k_mac_set_fixed_rate_params()
8120 ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, nss); in ath10k_mac_set_fixed_rate_params()
8122 ath10k_warn(ar, "failed to set nss param %d: %d\n", nss, ret); in ath10k_mac_set_fixed_rate_params()
8246 u8 nss; in ath10k_mac_op_set_bitrate_mask() local
8280 &rate, &nss, in ath10k_mac_op_set_bitrate_mask()
8290 nss = single_nss; in ath10k_mac_op_set_bitrate_mask()
8293 nss = min(ar->num_rf_chains, in ath10k_mac_op_set_bitrate_mask()
8332 ret = ath10k_mac_set_fixed_rate_params(arvif, rate, nss, sgi, ldpc); in ath10k_mac_op_set_bitrate_mask()
8398 arsta->nss = sta->rx_nss; in ath10k_sta_rc_update()
8976 static void ath10k_mac_get_rate_flags_ht(struct ath10k *ar, u32 rate, u8 nss, u8 mcs, in ath10k_mac_get_rate_flags_ht() argument
8990 ((nss == 1) ? &supported_ht_mcs_rate_nss1 : in ath10k_mac_get_rate_flags_ht()
9010 rate, nss, mcs); in ath10k_mac_get_rate_flags_ht()
9014 static void ath10k_mac_get_rate_flags_vht(struct ath10k *ar, u32 rate, u8 nss, u8 mcs, in ath10k_mac_get_rate_flags_vht() argument
9020 ((nss == 1) ? &supported_vht_mcs_rate_nss1 : in ath10k_mac_get_rate_flags_vht()
9040 rate, nss, mcs); in ath10k_mac_get_rate_flags_vht()
9045 enum ath10k_phy_mode mode, u8 nss, u8 mcs, in ath10k_mac_get_rate_flags() argument
9050 ath10k_mac_get_rate_flags_ht(ar, rate, nss, mcs, flags, bw); in ath10k_mac_get_rate_flags()
9053 ath10k_mac_get_rate_flags_vht(ar, rate, nss, mcs, flags, bw); in ath10k_mac_get_rate_flags()
9062 u8 nss = WMI_TLV_GET_HW_RC_NSS_V1(rate_code) + 1; in ath10k_mac_parse_bitrate() local
9074 ath10k_mac_get_rate_flags(ar, bitrate_kbps / 100, mode, nss, mcs, &flags, &bw); in ath10k_mac_parse_bitrate()
9078 preamble, mode, nss, mcs, flags, bw); in ath10k_mac_parse_bitrate()
9083 rate->nss = nss; in ath10k_mac_parse_bitrate()
9163 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath10k_sta_statistics()
9168 sinfo->txrate.nss = arsta->txrate.nss; in ath10k_sta_statistics()