Lines Matching refs:nss
339 int nss; in ath11k_mac_max_ht_nss() local
341 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss()
342 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss()
343 return nss + 1; in ath11k_mac_max_ht_nss()
351 int nss; in ath11k_mac_max_vht_nss() local
353 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss()
354 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss()
355 return nss + 1; in ath11k_mac_max_vht_nss()
363 int nss; in ath11k_mac_max_he_nss() local
365 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_he_nss()
366 if (he_mcs_mask[nss]) in ath11k_mac_max_he_nss()
367 return nss + 1; in ath11k_mac_max_he_nss()
877 u16 nss; in ath11k_mac_monitor_vdev_create() local
915 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_monitor_vdev_create()
917 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_monitor_vdev_create()
920 ar->monitor_vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_monitor_vdev_create()
1398 int nss; in ath11k_peer_assoc_h_ht_masked() local
1400 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath11k_peer_assoc_h_ht_masked()
1401 if (ht_mcs_mask[nss]) in ath11k_peer_assoc_h_ht_masked()
1410 int nss; in ath11k_peer_assoc_h_vht_masked() local
1412 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath11k_peer_assoc_h_vht_masked()
1413 if (vht_mcs_mask[nss]) in ath11k_peer_assoc_h_vht_masked()
1528 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
1530 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
1543 int nss; in ath11k_peer_assoc_h_vht_limit() local
1547 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath11k_peer_assoc_h_vht_limit()
1548 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
1549 vht_mcs_limit[nss]; in ath11k_peer_assoc_h_vht_limit()
1581 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_vht_limit()
1582 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_vht_limit()
1748 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
1750 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
1762 int nss; in ath11k_peer_assoc_h_he_limit() local
1766 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) { in ath11k_peer_assoc_h_he_limit()
1767 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
1768 he_mcs_limit[nss]; in ath11k_peer_assoc_h_he_limit()
1795 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_he_limit()
1796 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_he_limit()
1805 int nss; in ath11k_peer_assoc_h_he_masked() local
1807 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) in ath11k_peer_assoc_h_he_masked()
1808 if (he_mcs_mask[nss]) in ath11k_peer_assoc_h_he_masked()
1886 int nss, ru; in ath11k_peer_assoc_h_he() local
1895 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath11k_peer_assoc_h_he()
1908 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath11k_peer_assoc_h_he()
3571 u8 vht_rate, nss; in ath11k_mac_set_peer_vht_fixed_rate() local
3577 nss = 0; in ath11k_mac_set_peer_vht_fixed_rate()
3581 nss = i + 1; in ath11k_mac_set_peer_vht_fixed_rate()
3586 if (!nss) { in ath11k_mac_set_peer_vht_fixed_rate()
3593 if (nss > sta->rx_nss) in ath11k_mac_set_peer_vht_fixed_rate()
3600 rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss - 1, in ath11k_mac_set_peer_vht_fixed_rate()
3621 u8 he_rate, nss; in ath11k_mac_set_peer_he_fixed_rate() local
3627 nss = 0; in ath11k_mac_set_peer_he_fixed_rate()
3631 nss = i + 1; in ath11k_mac_set_peer_he_fixed_rate()
3636 if (!nss) { in ath11k_mac_set_peer_he_fixed_rate()
3643 if (nss > sta->rx_nss) in ath11k_mac_set_peer_he_fixed_rate()
3650 rate_code = ATH11K_HW_RATE_CODE(he_rate, nss - 1, in ath11k_mac_set_peer_he_fixed_rate()
3790 u32 changed, bw, nss, smps; in ath11k_sta_rc_update_wk() local
3814 nss = arsta->nss; in ath11k_sta_rc_update_wk()
3821 nss = max_t(u32, 1, nss); in ath11k_sta_rc_update_wk()
3822 nss = min(nss, max(max(ath11k_mac_max_ht_nss(ht_mcs_mask), in ath11k_sta_rc_update_wk()
3836 sta->addr, nss); in ath11k_sta_rc_update_wk()
3839 WMI_PEER_NSS, nss); in ath11k_sta_rc_update_wk()
3842 sta->addr, nss, err); in ath11k_sta_rc_update_wk()
4253 arsta->nss = sta->rx_nss; in ath11k_mac_op_sta_rc_update()
4636 int nss, ru; in ath11k_gen_ppe_thresh() local
4643 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath11k_gen_ppe_thresh()
4650 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath11k_gen_ppe_thresh()
5485 u16 nss; in ath11k_mac_op_add_interface() local
5582 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_op_add_interface()
5584 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_op_add_interface()
5587 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_op_add_interface()
6625 int *nss) in ath11k_mac_bitrate_mask_get_single_nss() argument
6681 *nss = fls(ht_nss_mask); in ath11k_mac_bitrate_mask_get_single_nss()
6690 u32 *rate, u8 *nss) in ath11k_mac_get_single_legacy_rate() argument
6713 *nss = 1; in ath11k_mac_get_single_legacy_rate()
6807 u32 rate, u8 nss, u8 sgi, u8 ldpc, in ath11k_mac_set_rate_params() argument
6818 arvif->vdev_id, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_set_rate_params()
6834 vdev_param, nss); in ath11k_mac_set_rate_params()
6837 nss, ret); in ath11k_mac_set_rate_params()
7026 u8 nss; in ath11k_mac_op_set_bitrate_mask() local
7060 &nss); in ath11k_mac_op_set_bitrate_mask()
7072 nss = single_nss; in ath11k_mac_op_set_bitrate_mask()
7085 nss = min_t(u32, ar->num_tx_chains, in ath11k_mac_op_set_bitrate_mask()
7151 ret = ath11k_mac_set_rate_params(arvif, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_op_set_bitrate_mask()
7280 if (!arsta->txrate.legacy && !arsta->txrate.nss) in ath11k_mac_op_sta_statistics()
7287 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics()