Lines Matching full:nss
502 int nss; in ath12k_mac_max_ht_nss() local
504 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath12k_mac_max_ht_nss()
505 if (ht_mcs_mask[nss]) in ath12k_mac_max_ht_nss()
506 return nss + 1; in ath12k_mac_max_ht_nss()
514 int nss; in ath12k_mac_max_vht_nss() local
516 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_vht_nss()
517 if (vht_mcs_mask[nss]) in ath12k_mac_max_vht_nss()
518 return nss + 1; in ath12k_mac_max_vht_nss()
2066 int nss; in ath12k_peer_assoc_h_ht_masked() local
2068 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath12k_peer_assoc_h_ht_masked()
2069 if (ht_mcs_mask[nss]) in ath12k_peer_assoc_h_ht_masked()
2078 int nss; in ath12k_peer_assoc_h_vht_masked() local
2080 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath12k_peer_assoc_h_vht_masked()
2081 if (vht_mcs_mask[nss]) in ath12k_peer_assoc_h_vht_masked()
2192 ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "mac ht peer %pM mcs cnt %d nss %d\n", in ath12k_peer_assoc_h_ht()
2198 static int ath12k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath12k_mac_get_max_vht_mcs_map() argument
2200 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath12k_mac_get_max_vht_mcs_map()
2213 int nss; in ath12k_peer_assoc_h_vht_limit() local
2217 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath12k_peer_assoc_h_vht_limit()
2218 mcs_map = ath12k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath12k_peer_assoc_h_vht_limit()
2219 vht_mcs_limit[nss]; in ath12k_peer_assoc_h_vht_limit()
2251 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath12k_peer_assoc_h_vht_limit()
2252 tx_mcs_set |= mcs << (nss * 2); in ath12k_peer_assoc_h_vht_limit()
2326 /* Calculate peer NSS capability from VHT capabilities if STA in ath12k_peer_assoc_h_vht()
2406 /* Supported HE-MCS and NSS Set of peer he_cap is intersection with self he_cp */ in ath12k_peer_assoc_h_he()
2473 int nss, ru; in ath12k_peer_assoc_h_he() local
2482 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath12k_peer_assoc_h_he()
2495 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath12k_peer_assoc_h_he()
2993 u8 nss, ru, i; in ath12k_mac_set_eht_ppe_threshold() local
3000 for (nss = 0; nss <= ppet->numss_m1; nss++) { in ath12k_mac_set_eht_ppe_threshold()
3013 ppet->ppet16_ppet8_ru3_ru0[nss] |= in ath12k_mac_set_eht_ppe_threshold()
4974 u8 vht_rate, nss; in ath12k_mac_set_peer_vht_fixed_rate() local
4980 nss = 0; in ath12k_mac_set_peer_vht_fixed_rate()
4984 nss = i + 1; in ath12k_mac_set_peer_vht_fixed_rate()
4989 if (!nss) { in ath12k_mac_set_peer_vht_fixed_rate()
4999 rate_code = ATH12K_HW_RATE_CODE(vht_rate, nss - 1, in ath12k_mac_set_peer_vht_fixed_rate()
5048 "invalid peer NSS %d\n", peer_arg->peer_nss); in ath12k_mac_station_assoc()
5069 * Note that all other rates and NSS will be disabled for this peer. in ath12k_mac_station_assoc()
5148 u32 changed, bw, nss, smps, bw_prev; in ath12k_sta_rc_update_wk() local
5177 nss = arsta->nss; in ath12k_sta_rc_update_wk()
5182 nss = max_t(u32, 1, nss); in ath12k_sta_rc_update_wk()
5183 nss = min(nss, max(ath12k_mac_max_ht_nss(ht_mcs_mask), in ath12k_sta_rc_update_wk()
5242 ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "mac update sta %pM nss %d\n", in ath12k_sta_rc_update_wk()
5243 arsta->addr, nss); in ath12k_sta_rc_update_wk()
5246 WMI_PEER_NSS, nss); in ath12k_sta_rc_update_wk()
5248 ath12k_warn(ar->ab, "failed to update STA %pM nss %d: %d\n", in ath12k_sta_rc_update_wk()
5249 arsta->addr, nss, err); in ath12k_sta_rc_update_wk()
5974 "mac sta rc update for %pM changed %08x bw %d nss %d smps %d\n", in ath12k_mac_op_link_sta_rc_update()
5987 arsta->nss = link_sta->rx_nss; in ath12k_mac_op_link_sta_rc_update()
6513 int nss, ru; in ath12k_gen_ppe_thresh() local
6520 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath12k_gen_ppe_thresh()
6527 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath12k_gen_ppe_thresh()
6727 u8 i, nss, ru, ppet_bit_len_per_ru = IEEE80211_EHT_PPE_THRES_INFO_PPET_SIZE * 2; in ath12k_mac_copy_eht_ppe_thresh() local
6735 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath12k_mac_copy_eht_ppe_thresh()
6744 u32p_replace_bits(&val, fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> in ath12k_mac_copy_eht_ppe_thresh()
8085 u16 nss; in ath12k_mac_vdev_create() local
8181 nss = hweight32(ar->cfg_tx_chainmask) ? : 1; in ath12k_mac_vdev_create()
8183 WMI_VDEV_PARAM_NSS, nss); in ath12k_mac_vdev_create()
8185 ath12k_warn(ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath12k_mac_vdev_create()
8186 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath12k_mac_vdev_create()
9785 int *nss) in ath12k_mac_bitrate_mask_get_single_nss() argument
9826 *nss = fls(ht_nss_mask); in ath12k_mac_bitrate_mask_get_single_nss()
9835 u32 *rate, u8 *nss) in ath12k_mac_get_single_legacy_rate() argument
9858 *nss = 1; in ath12k_mac_get_single_legacy_rate()
9865 u32 rate, u8 nss, u8 sgi, u8 ldpc) in ath12k_mac_set_fixed_rate_params() argument
9873 ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "mac set fixed rate params vdev %i rate 0x%02x nss %u sgi %u\n", in ath12k_mac_set_fixed_rate_params()
9874 arvif->vdev_id, rate, nss, sgi); in ath12k_mac_set_fixed_rate_params()
9887 vdev_param, nss); in ath12k_mac_set_fixed_rate_params()
9889 ath12k_warn(ar->ab, "failed to set nss param %d: %d\n", in ath12k_mac_set_fixed_rate_params()
9890 nss, ret); in ath12k_mac_set_fixed_rate_params()
9999 u8 nss; in ath12k_mac_op_set_bitrate_mask() local
10037 &nss); in ath12k_mac_op_set_bitrate_mask()
10049 nss = single_nss; in ath12k_mac_op_set_bitrate_mask()
10052 nss = min_t(u32, ar->num_tx_chains, in ath12k_mac_op_set_bitrate_mask()
10099 ret = ath12k_mac_set_fixed_rate_params(arvif, rate, nss, sgi, ldpc); in ath12k_mac_op_set_bitrate_mask()
10331 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath12k_mac_op_sta_statistics()
10336 sinfo->txrate.nss = arsta->txrate.nss; in ath12k_mac_op_sta_statistics()