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()
1919 int nss; in ath11k_peer_assoc_h_ht_masked() local
1921 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath11k_peer_assoc_h_ht_masked()
1922 if (ht_mcs_mask[nss]) in ath11k_peer_assoc_h_ht_masked()
1931 int nss; in ath11k_peer_assoc_h_vht_masked() local
1933 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath11k_peer_assoc_h_vht_masked()
1934 if (vht_mcs_mask[nss]) in ath11k_peer_assoc_h_vht_masked()
2043 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "ht peer %pM mcs cnt %d nss %d\n", in ath11k_peer_assoc_h_ht()
2049 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
2051 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
2064 int nss; in ath11k_peer_assoc_h_vht_limit() local
2068 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath11k_peer_assoc_h_vht_limit()
2069 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
2070 vht_mcs_limit[nss]; in ath11k_peer_assoc_h_vht_limit()
2102 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_vht_limit()
2103 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_vht_limit()
2129 ath11k_warn(ar->ab, "invalid nss ratio received from firmware: %d\n", in ath11k_get_nss_160mhz()
2207 …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()
2212 /* Calculate peer NSS capability from VHT capabilities if STA in ath11k_peer_assoc_h_vht()
2269 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
2271 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
2283 int nss; in ath11k_peer_assoc_h_he_limit() local
2287 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) { in ath11k_peer_assoc_h_he_limit()
2288 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
2289 he_mcs_limit[nss]; in ath11k_peer_assoc_h_he_limit()
2316 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_he_limit()
2317 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_he_limit()
2326 int nss; in ath11k_peer_assoc_h_he_masked() local
2328 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) in ath11k_peer_assoc_h_he_masked()
2329 if (he_mcs_mask[nss]) in ath11k_peer_assoc_h_he_masked()
2371 /* Supported HE-MCS and NSS Set of peer he_cap is intersection with self he_cp */ in ath11k_peer_assoc_h_he()
2447 int nss, ru; in ath11k_peer_assoc_h_he() local
2456 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath11k_peer_assoc_h_he()
2469 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath11k_peer_assoc_h_he()
2493 …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()
2538 /* Calculate peer NSS capability from HE capabilities if STA in ath11k_peer_assoc_h_he()
2546 * to find nss. in ath11k_peer_assoc_h_he()
2574 "he peer %pM nss %d mcs cnt %d nss_override 0x%x\n", in ath11k_peer_assoc_h_he()
4486 u8 vht_rate, nss; in ath11k_mac_set_peer_vht_fixed_rate() local
4492 nss = 0; in ath11k_mac_set_peer_vht_fixed_rate()
4496 nss = i + 1; in ath11k_mac_set_peer_vht_fixed_rate()
4501 if (!nss) { in ath11k_mac_set_peer_vht_fixed_rate()
4507 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_vht_fixed_rate()
4508 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_vht_fixed_rate()
4515 rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss - 1, in ath11k_mac_set_peer_vht_fixed_rate()
4536 u8 he_rate, nss; in ath11k_mac_set_peer_he_fixed_rate() local
4542 nss = 0; in ath11k_mac_set_peer_he_fixed_rate()
4546 nss = i + 1; in ath11k_mac_set_peer_he_fixed_rate()
4551 if (!nss) { in ath11k_mac_set_peer_he_fixed_rate()
4557 /* Avoid updating invalid nss as fixed rate */ in ath11k_mac_set_peer_he_fixed_rate()
4558 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_he_fixed_rate()
4565 rate_code = ATH11K_HW_RATE_CODE(he_rate, nss - 1, in ath11k_mac_set_peer_he_fixed_rate()
4587 u8 ht_rate, nss = 0; in ath11k_mac_set_peer_ht_fixed_rate() local
4595 nss = i + 1; in ath11k_mac_set_peer_ht_fixed_rate()
4600 if (!nss) { in ath11k_mac_set_peer_ht_fixed_rate()
4606 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_ht_fixed_rate()
4607 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_ht_fixed_rate()
4614 rate_code = ATH11K_HW_RATE_CODE(ht_rate, nss - 1, in ath11k_mac_set_peer_ht_fixed_rate()
4672 * Note that all other rates and NSS will be disabled for this peer. in ath11k_station_assoc()
4769 u32 changed, bw, nss, smps, bw_prev; in ath11k_sta_rc_update_wk() local
4795 nss = arsta->nss; in ath11k_sta_rc_update_wk()
4802 nss = max_t(u32, 1, nss); in ath11k_sta_rc_update_wk()
4803 nss = min(nss, ath11k_mac_max_nss(ht_mcs_mask, vht_mcs_mask, he_mcs_mask)); in ath11k_sta_rc_update_wk()
4861 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "update sta %pM nss %d\n", in ath11k_sta_rc_update_wk()
4862 sta->addr, nss); in ath11k_sta_rc_update_wk()
4865 WMI_PEER_NSS, nss); in ath11k_sta_rc_update_wk()
4867 ath11k_warn(ar->ab, "failed to update STA %pM nss %d: %d\n", in ath11k_sta_rc_update_wk()
4868 sta->addr, nss, err); in ath11k_sta_rc_update_wk()
5103 "sta rc update for %pM changed %08x bw %d nss %d smps %d\n", in ath11k_mac_op_sta_rc_update()
5117 arsta->nss = sta->deflink.rx_nss; in ath11k_mac_op_sta_rc_update()
5515 int nss, ru; in ath11k_gen_ppe_thresh() local
5522 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath11k_gen_ppe_thresh()
5529 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath11k_gen_ppe_thresh()
6626 u16 nss; in ath11k_mac_op_add_interface() local
6738 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_op_add_interface()
6740 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_op_add_interface()
6742 ath11k_warn(ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath11k_mac_op_add_interface()
6743 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_op_add_interface()
8237 int *nss) in ath11k_mac_bitrate_mask_get_single_nss() argument
8298 *nss = fls(ht_nss_mask); in ath11k_mac_bitrate_mask_get_single_nss()
8307 u32 *rate, u8 *nss) in ath11k_mac_get_single_legacy_rate() argument
8330 *nss = 1; in ath11k_mac_get_single_legacy_rate()
8424 u32 rate, u8 nss, u8 sgi, u8 ldpc, in ath11k_mac_set_rate_params() argument
8434 …"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()
8435 arvif->vdev_id, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_set_rate_params()
8451 vdev_param, nss); in ath11k_mac_set_rate_params()
8453 ath11k_warn(ar->ab, "failed to set nss param %d: %d\n", in ath11k_mac_set_rate_params()
8454 nss, ret); in ath11k_mac_set_rate_params()
8648 u8 nss; in ath11k_mac_op_set_bitrate_mask() local
8683 &nss); in ath11k_mac_op_set_bitrate_mask()
8695 nss = single_nss; in ath11k_mac_op_set_bitrate_mask()
8707 "could not update fixed rate settings to all peers due to mcs/nss incompatibility\n"); in ath11k_mac_op_set_bitrate_mask()
8708 nss = min_t(u32, ar->num_tx_chains, in ath11k_mac_op_set_bitrate_mask()
8772 ret = ath11k_mac_set_rate_params(arvif, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_op_set_bitrate_mask()
8963 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics()
8968 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics()