Lines Matching full:nss

438 	int nss;  in ath11k_mac_max_ht_nss()  local
440 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss()
441 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss()
442 return nss + 1; in ath11k_mac_max_ht_nss()
450 int nss; in ath11k_mac_max_vht_nss() local
452 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss()
453 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss()
454 return nss + 1; in ath11k_mac_max_vht_nss()
462 int nss; in ath11k_mac_max_he_nss() local
464 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_he_nss()
465 if (he_mcs_mask[nss]) in ath11k_mac_max_he_nss()
466 return nss + 1; in ath11k_mac_max_he_nss()
1043 u16 nss; in ath11k_mac_monitor_vdev_create() local
1081 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_monitor_vdev_create()
1083 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_monitor_vdev_create()
1085 ath11k_warn(ar->ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath11k_mac_monitor_vdev_create()
1086 ar->monitor_vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_monitor_vdev_create()
1843 int nss; in ath11k_peer_assoc_h_ht_masked() local
1845 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath11k_peer_assoc_h_ht_masked()
1846 if (ht_mcs_mask[nss]) in ath11k_peer_assoc_h_ht_masked()
1855 int nss; in ath11k_peer_assoc_h_vht_masked() local
1857 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath11k_peer_assoc_h_vht_masked()
1858 if (vht_mcs_mask[nss]) in ath11k_peer_assoc_h_vht_masked()
1967 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "ht peer %pM mcs cnt %d nss %d\n", in ath11k_peer_assoc_h_ht()
1973 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
1975 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
1988 int nss; in ath11k_peer_assoc_h_vht_limit() local
1992 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath11k_peer_assoc_h_vht_limit()
1993 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
1994 vht_mcs_limit[nss]; in ath11k_peer_assoc_h_vht_limit()
2026 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_vht_limit()
2027 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_vht_limit()
2053 ath11k_warn(ar->ab, "invalid nss ratio received from firmware: %d\n", in ath11k_get_nss_160mhz()
2131 …ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "setting vht range mcs value to peer supported nss %d for peer … in ath11k_peer_assoc_h_vht()
2136 /* Calculate peer NSS capability from VHT capabilities if STA in ath11k_peer_assoc_h_vht()
2193 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
2195 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
2207 int nss; in ath11k_peer_assoc_h_he_limit() local
2211 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) { in ath11k_peer_assoc_h_he_limit()
2212 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
2213 he_mcs_limit[nss]; in ath11k_peer_assoc_h_he_limit()
2240 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_he_limit()
2241 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_he_limit()
2250 int nss; in ath11k_peer_assoc_h_he_masked() local
2252 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) in ath11k_peer_assoc_h_he_masked()
2253 if (he_mcs_mask[nss]) in ath11k_peer_assoc_h_he_masked()
2295 /* Supported HE-MCS and NSS Set of peer he_cap is intersection with self he_cp */ in ath11k_peer_assoc_h_he()
2367 int nss, ru; in ath11k_peer_assoc_h_he() local
2376 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath11k_peer_assoc_h_he()
2389 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath11k_peer_assoc_h_he()
2413 …ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "setting he range mcs value to peer supported nss %d for peer %… in ath11k_peer_assoc_h_he()
2458 /* Calculate peer NSS capability from HE capabilities if STA in ath11k_peer_assoc_h_he()
2466 * to find nss. in ath11k_peer_assoc_h_he()
2494 "he peer %pM nss %d mcs cnt %d nss_override 0x%x\n", in ath11k_peer_assoc_h_he()
4392 u8 vht_rate, nss; in ath11k_mac_set_peer_vht_fixed_rate() local
4398 nss = 0; in ath11k_mac_set_peer_vht_fixed_rate()
4402 nss = i + 1; in ath11k_mac_set_peer_vht_fixed_rate()
4407 if (!nss) { in ath11k_mac_set_peer_vht_fixed_rate()
4413 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_vht_fixed_rate()
4414 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_vht_fixed_rate()
4421 rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss - 1, in ath11k_mac_set_peer_vht_fixed_rate()
4442 u8 he_rate, nss; in ath11k_mac_set_peer_he_fixed_rate() local
4448 nss = 0; in ath11k_mac_set_peer_he_fixed_rate()
4452 nss = i + 1; in ath11k_mac_set_peer_he_fixed_rate()
4457 if (!nss) { in ath11k_mac_set_peer_he_fixed_rate()
4463 /* Avoid updating invalid nss as fixed rate */ in ath11k_mac_set_peer_he_fixed_rate()
4464 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_he_fixed_rate()
4471 rate_code = ATH11K_HW_RATE_CODE(he_rate, nss - 1, in ath11k_mac_set_peer_he_fixed_rate()
4493 u8 ht_rate, nss = 0; in ath11k_mac_set_peer_ht_fixed_rate() local
4501 nss = i + 1; in ath11k_mac_set_peer_ht_fixed_rate()
4506 if (!nss) { in ath11k_mac_set_peer_ht_fixed_rate()
4512 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_ht_fixed_rate()
4513 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_ht_fixed_rate()
4520 rate_code = ATH11K_HW_RATE_CODE(ht_rate, nss - 1, in ath11k_mac_set_peer_ht_fixed_rate()
4578 * Note that all other rates and NSS will be disabled for this peer. in ath11k_station_assoc()
4667 u32 changed, bw, nss, smps, bw_prev; in ath11k_sta_rc_update_wk() local
4693 nss = arsta->nss; in ath11k_sta_rc_update_wk()
4700 nss = max_t(u32, 1, nss); in ath11k_sta_rc_update_wk()
4701 nss = min(nss, max(max(ath11k_mac_max_ht_nss(ht_mcs_mask), in ath11k_sta_rc_update_wk()
4761 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "update sta %pM nss %d\n", in ath11k_sta_rc_update_wk()
4762 sta->addr, nss); in ath11k_sta_rc_update_wk()
4765 WMI_PEER_NSS, nss); in ath11k_sta_rc_update_wk()
4767 ath11k_warn(ar->ab, "failed to update STA %pM nss %d: %d\n", in ath11k_sta_rc_update_wk()
4768 sta->addr, nss, err); in ath11k_sta_rc_update_wk()
5230 "sta rc update for %pM changed %08x bw %d nss %d smps %d\n", in ath11k_mac_op_sta_rc_update()
5244 arsta->nss = sta->deflink.rx_nss; in ath11k_mac_op_sta_rc_update()
5647 int nss, ru; in ath11k_gen_ppe_thresh() local
5654 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath11k_gen_ppe_thresh()
5661 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath11k_gen_ppe_thresh()
6726 u16 nss; in ath11k_mac_op_add_interface() local
6835 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_op_add_interface()
6837 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_op_add_interface()
6839 ath11k_warn(ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath11k_mac_op_add_interface()
6840 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_op_add_interface()
7915 int *nss) in ath11k_mac_bitrate_mask_get_single_nss() argument
7971 *nss = fls(ht_nss_mask); in ath11k_mac_bitrate_mask_get_single_nss()
7980 u32 *rate, u8 *nss) in ath11k_mac_get_single_legacy_rate() argument
8003 *nss = 1; in ath11k_mac_get_single_legacy_rate()
8097 u32 rate, u8 nss, u8 sgi, u8 ldpc, in ath11k_mac_set_rate_params() argument
8107 …"set rate params vdev %i rate 0x%02x nss 0x%02x sgi 0x%02x ldpc 0x%02x he_gi 0x%02x he_ltf 0x%02x … in ath11k_mac_set_rate_params()
8108 arvif->vdev_id, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_set_rate_params()
8124 vdev_param, nss); in ath11k_mac_set_rate_params()
8126 ath11k_warn(ar->ab, "failed to set nss param %d: %d\n", in ath11k_mac_set_rate_params()
8127 nss, ret); in ath11k_mac_set_rate_params()
8321 u8 nss; in ath11k_mac_op_set_bitrate_mask() local
8356 &nss); in ath11k_mac_op_set_bitrate_mask()
8368 nss = single_nss; in ath11k_mac_op_set_bitrate_mask()
8380 "could not update fixed rate settings to all peers due to mcs/nss incompatibility\n"); in ath11k_mac_op_set_bitrate_mask()
8381 nss = min_t(u32, ar->num_tx_chains, in ath11k_mac_op_set_bitrate_mask()
8447 ret = ath11k_mac_set_rate_params(arvif, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_op_set_bitrate_mask()
8642 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics()
8647 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics()