Lines Matching full:nss

436 	int nss;  in ath11k_mac_max_ht_nss()  local
438 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss()
439 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss()
440 return nss + 1; in ath11k_mac_max_ht_nss()
448 int nss; in ath11k_mac_max_vht_nss() local
450 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss()
451 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss()
452 return nss + 1; in ath11k_mac_max_vht_nss()
460 int nss; in ath11k_mac_max_he_nss() local
462 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_he_nss()
463 if (he_mcs_mask[nss]) in ath11k_mac_max_he_nss()
464 return nss + 1; in ath11k_mac_max_he_nss()
1041 u16 nss; in ath11k_mac_monitor_vdev_create() local
1079 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_monitor_vdev_create()
1081 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_monitor_vdev_create()
1083 ath11k_warn(ar->ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath11k_mac_monitor_vdev_create()
1084 ar->monitor_vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_monitor_vdev_create()
1931 int nss; in ath11k_peer_assoc_h_ht_masked() local
1933 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath11k_peer_assoc_h_ht_masked()
1934 if (ht_mcs_mask[nss]) in ath11k_peer_assoc_h_ht_masked()
1943 int nss; in ath11k_peer_assoc_h_vht_masked() local
1945 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath11k_peer_assoc_h_vht_masked()
1946 if (vht_mcs_mask[nss]) in ath11k_peer_assoc_h_vht_masked()
2055 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "ht peer %pM mcs cnt %d nss %d\n", in ath11k_peer_assoc_h_ht()
2061 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
2063 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
2076 int nss; in ath11k_peer_assoc_h_vht_limit() local
2080 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath11k_peer_assoc_h_vht_limit()
2081 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
2082 vht_mcs_limit[nss]; in ath11k_peer_assoc_h_vht_limit()
2114 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_vht_limit()
2115 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_vht_limit()
2141 ath11k_warn(ar->ab, "invalid nss ratio received from firmware: %d\n", in ath11k_get_nss_160mhz()
2219 …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()
2224 /* Calculate peer NSS capability from VHT capabilities if STA in ath11k_peer_assoc_h_vht()
2281 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
2283 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
2295 int nss; in ath11k_peer_assoc_h_he_limit() local
2299 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) { in ath11k_peer_assoc_h_he_limit()
2300 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
2301 he_mcs_limit[nss]; in ath11k_peer_assoc_h_he_limit()
2328 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_he_limit()
2329 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_he_limit()
2338 int nss; in ath11k_peer_assoc_h_he_masked() local
2340 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) in ath11k_peer_assoc_h_he_masked()
2341 if (he_mcs_mask[nss]) in ath11k_peer_assoc_h_he_masked()
2383 /* Supported HE-MCS and NSS Set of peer he_cap is intersection with self he_cp */ in ath11k_peer_assoc_h_he()
2459 int nss, ru; in ath11k_peer_assoc_h_he() local
2468 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath11k_peer_assoc_h_he()
2481 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath11k_peer_assoc_h_he()
2505 …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()
2550 /* Calculate peer NSS capability from HE capabilities if STA in ath11k_peer_assoc_h_he()
2558 * to find nss. in ath11k_peer_assoc_h_he()
2586 "he peer %pM nss %d mcs cnt %d nss_override 0x%x\n", in ath11k_peer_assoc_h_he()
4574 u8 vht_rate, nss; in ath11k_mac_set_peer_vht_fixed_rate() local
4580 nss = 0; in ath11k_mac_set_peer_vht_fixed_rate()
4584 nss = i + 1; in ath11k_mac_set_peer_vht_fixed_rate()
4589 if (!nss) { in ath11k_mac_set_peer_vht_fixed_rate()
4595 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_vht_fixed_rate()
4596 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_vht_fixed_rate()
4603 rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss - 1, in ath11k_mac_set_peer_vht_fixed_rate()
4624 u8 he_rate, nss; in ath11k_mac_set_peer_he_fixed_rate() local
4630 nss = 0; in ath11k_mac_set_peer_he_fixed_rate()
4634 nss = i + 1; in ath11k_mac_set_peer_he_fixed_rate()
4639 if (!nss) { in ath11k_mac_set_peer_he_fixed_rate()
4645 /* Avoid updating invalid nss as fixed rate */ in ath11k_mac_set_peer_he_fixed_rate()
4646 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_he_fixed_rate()
4653 rate_code = ATH11K_HW_RATE_CODE(he_rate, nss - 1, in ath11k_mac_set_peer_he_fixed_rate()
4675 u8 ht_rate, nss = 0; in ath11k_mac_set_peer_ht_fixed_rate() local
4683 nss = i + 1; in ath11k_mac_set_peer_ht_fixed_rate()
4688 if (!nss) { in ath11k_mac_set_peer_ht_fixed_rate()
4694 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_ht_fixed_rate()
4695 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_ht_fixed_rate()
4702 rate_code = ATH11K_HW_RATE_CODE(ht_rate, nss - 1, in ath11k_mac_set_peer_ht_fixed_rate()
4760 * Note that all other rates and NSS will be disabled for this peer. in ath11k_station_assoc()
4857 u32 changed, bw, nss, smps, bw_prev; in ath11k_sta_rc_update_wk() local
4883 nss = arsta->nss; in ath11k_sta_rc_update_wk()
4890 nss = max_t(u32, 1, nss); in ath11k_sta_rc_update_wk()
4891 nss = min(nss, ath11k_mac_max_nss(ht_mcs_mask, vht_mcs_mask, he_mcs_mask)); in ath11k_sta_rc_update_wk()
4949 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "update sta %pM nss %d\n", in ath11k_sta_rc_update_wk()
4950 sta->addr, nss); in ath11k_sta_rc_update_wk()
4953 WMI_PEER_NSS, nss); in ath11k_sta_rc_update_wk()
4955 ath11k_warn(ar->ab, "failed to update STA %pM nss %d: %d\n", in ath11k_sta_rc_update_wk()
4956 sta->addr, nss, err); in ath11k_sta_rc_update_wk()
5193 "sta rc update for %pM changed %08x bw %d nss %d smps %d\n", in ath11k_mac_op_sta_rc_update()
5207 arsta->nss = sta->deflink.rx_nss; in ath11k_mac_op_sta_rc_update()
5654 int nss, ru; in ath11k_gen_ppe_thresh() local
5661 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath11k_gen_ppe_thresh()
5668 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath11k_gen_ppe_thresh()
6762 u16 nss; in ath11k_mac_op_add_interface() local
6874 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_op_add_interface()
6876 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_op_add_interface()
6878 ath11k_warn(ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath11k_mac_op_add_interface()
6879 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_op_add_interface()
8373 int *nss) in ath11k_mac_bitrate_mask_get_single_nss() argument
8434 *nss = fls(ht_nss_mask); in ath11k_mac_bitrate_mask_get_single_nss()
8443 u32 *rate, u8 *nss) in ath11k_mac_get_single_legacy_rate() argument
8466 *nss = 1; in ath11k_mac_get_single_legacy_rate()
8560 u32 rate, u8 nss, u8 sgi, u8 ldpc, in ath11k_mac_set_rate_params() argument
8570 …"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()
8571 arvif->vdev_id, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_set_rate_params()
8587 vdev_param, nss); in ath11k_mac_set_rate_params()
8589 ath11k_warn(ar->ab, "failed to set nss param %d: %d\n", in ath11k_mac_set_rate_params()
8590 nss, ret); in ath11k_mac_set_rate_params()
8784 u8 nss; in ath11k_mac_op_set_bitrate_mask() local
8819 &nss); in ath11k_mac_op_set_bitrate_mask()
8831 nss = single_nss; in ath11k_mac_op_set_bitrate_mask()
8843 "could not update fixed rate settings to all peers due to mcs/nss incompatibility\n"); in ath11k_mac_op_set_bitrate_mask()
8844 nss = min_t(u32, ar->num_tx_chains, in ath11k_mac_op_set_bitrate_mask()
8908 ret = ath11k_mac_set_rate_params(arvif, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_op_set_bitrate_mask()
9174 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics()
9179 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics()