Lines Matching refs:nss

434 	int nss;  in ath11k_mac_max_ht_nss()  local
436 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss()
437 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss()
438 return nss + 1; in ath11k_mac_max_ht_nss()
446 int nss; in ath11k_mac_max_vht_nss() local
448 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss()
449 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss()
450 return nss + 1; in ath11k_mac_max_vht_nss()
458 int nss; in ath11k_mac_max_he_nss() local
460 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_he_nss()
461 if (he_mcs_mask[nss]) in ath11k_mac_max_he_nss()
462 return nss + 1; in ath11k_mac_max_he_nss()
1036 u16 nss; in ath11k_mac_monitor_vdev_create() local
1074 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_monitor_vdev_create()
1076 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_monitor_vdev_create()
1079 ar->monitor_vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_monitor_vdev_create()
1659 int nss; in ath11k_peer_assoc_h_ht_masked() local
1661 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath11k_peer_assoc_h_ht_masked()
1662 if (ht_mcs_mask[nss]) in ath11k_peer_assoc_h_ht_masked()
1671 int nss; in ath11k_peer_assoc_h_vht_masked() local
1673 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath11k_peer_assoc_h_vht_masked()
1674 if (vht_mcs_mask[nss]) in ath11k_peer_assoc_h_vht_masked()
1789 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
1791 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
1804 int nss; in ath11k_peer_assoc_h_vht_limit() local
1808 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath11k_peer_assoc_h_vht_limit()
1809 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
1810 vht_mcs_limit[nss]; in ath11k_peer_assoc_h_vht_limit()
1842 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_vht_limit()
1843 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_vht_limit()
2009 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
2011 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
2023 int nss; in ath11k_peer_assoc_h_he_limit() local
2027 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) { in ath11k_peer_assoc_h_he_limit()
2028 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
2029 he_mcs_limit[nss]; in ath11k_peer_assoc_h_he_limit()
2056 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_he_limit()
2057 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_he_limit()
2066 int nss; in ath11k_peer_assoc_h_he_masked() local
2068 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) in ath11k_peer_assoc_h_he_masked()
2069 if (he_mcs_mask[nss]) in ath11k_peer_assoc_h_he_masked()
2183 int nss, ru; in ath11k_peer_assoc_h_he() local
2192 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath11k_peer_assoc_h_he()
2205 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath11k_peer_assoc_h_he()
3997 u8 vht_rate, nss; in ath11k_mac_set_peer_vht_fixed_rate() local
4003 nss = 0; in ath11k_mac_set_peer_vht_fixed_rate()
4007 nss = i + 1; in ath11k_mac_set_peer_vht_fixed_rate()
4012 if (!nss) { in ath11k_mac_set_peer_vht_fixed_rate()
4019 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_vht_fixed_rate()
4026 rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss - 1, in ath11k_mac_set_peer_vht_fixed_rate()
4047 u8 he_rate, nss; in ath11k_mac_set_peer_he_fixed_rate() local
4053 nss = 0; in ath11k_mac_set_peer_he_fixed_rate()
4057 nss = i + 1; in ath11k_mac_set_peer_he_fixed_rate()
4062 if (!nss) { in ath11k_mac_set_peer_he_fixed_rate()
4069 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_he_fixed_rate()
4076 rate_code = ATH11K_HW_RATE_CODE(he_rate, nss - 1, in ath11k_mac_set_peer_he_fixed_rate()
4218 u32 changed, bw, nss, smps; in ath11k_sta_rc_update_wk() local
4242 nss = arsta->nss; in ath11k_sta_rc_update_wk()
4249 nss = max_t(u32, 1, nss); in ath11k_sta_rc_update_wk()
4250 nss = min(nss, max(max(ath11k_mac_max_ht_nss(ht_mcs_mask), in ath11k_sta_rc_update_wk()
4280 sta->addr, nss); in ath11k_sta_rc_update_wk()
4283 WMI_PEER_NSS, nss); in ath11k_sta_rc_update_wk()
4286 sta->addr, nss, err); in ath11k_sta_rc_update_wk()
4742 arsta->nss = sta->deflink.rx_nss; in ath11k_mac_op_sta_rc_update()
5145 int nss, ru; in ath11k_gen_ppe_thresh() local
5152 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath11k_gen_ppe_thresh()
5159 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath11k_gen_ppe_thresh()
6175 u16 nss; in ath11k_mac_op_add_interface() local
6279 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_op_add_interface()
6281 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_op_add_interface()
6284 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_op_add_interface()
7381 int *nss) in ath11k_mac_bitrate_mask_get_single_nss() argument
7437 *nss = fls(ht_nss_mask); in ath11k_mac_bitrate_mask_get_single_nss()
7446 u32 *rate, u8 *nss) in ath11k_mac_get_single_legacy_rate() argument
7469 *nss = 1; in ath11k_mac_get_single_legacy_rate()
7563 u32 rate, u8 nss, u8 sgi, u8 ldpc, in ath11k_mac_set_rate_params() argument
7574 arvif->vdev_id, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_set_rate_params()
7590 vdev_param, nss); in ath11k_mac_set_rate_params()
7593 nss, ret); in ath11k_mac_set_rate_params()
7787 u8 nss; in ath11k_mac_op_set_bitrate_mask() local
7822 &nss); in ath11k_mac_op_set_bitrate_mask()
7834 nss = single_nss; in ath11k_mac_op_set_bitrate_mask()
7847 nss = min_t(u32, ar->num_tx_chains, in ath11k_mac_op_set_bitrate_mask()
7913 ret = ath11k_mac_set_rate_params(arvif, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_op_set_bitrate_mask()
8101 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics()
8106 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics()