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()
1925 int nss; in ath11k_peer_assoc_h_ht_masked() local
1927 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath11k_peer_assoc_h_ht_masked()
1928 if (ht_mcs_mask[nss]) in ath11k_peer_assoc_h_ht_masked()
1937 int nss; in ath11k_peer_assoc_h_vht_masked() local
1939 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath11k_peer_assoc_h_vht_masked()
1940 if (vht_mcs_mask[nss]) in ath11k_peer_assoc_h_vht_masked()
2049 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "ht peer %pM mcs cnt %d nss %d\n", in ath11k_peer_assoc_h_ht()
2055 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
2057 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
2070 int nss; in ath11k_peer_assoc_h_vht_limit() local
2074 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath11k_peer_assoc_h_vht_limit()
2075 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
2076 vht_mcs_limit[nss]; in ath11k_peer_assoc_h_vht_limit()
2108 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_vht_limit()
2109 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_vht_limit()
2135 ath11k_warn(ar->ab, "invalid nss ratio received from firmware: %d\n", in ath11k_get_nss_160mhz()
2213 …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()
2218 /* Calculate peer NSS capability from VHT capabilities if STA in ath11k_peer_assoc_h_vht()
2275 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
2277 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
2289 int nss; in ath11k_peer_assoc_h_he_limit() local
2293 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) { in ath11k_peer_assoc_h_he_limit()
2294 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
2295 he_mcs_limit[nss]; in ath11k_peer_assoc_h_he_limit()
2322 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_he_limit()
2323 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_he_limit()
2332 int nss; in ath11k_peer_assoc_h_he_masked() local
2334 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) in ath11k_peer_assoc_h_he_masked()
2335 if (he_mcs_mask[nss]) in ath11k_peer_assoc_h_he_masked()
2377 /* Supported HE-MCS and NSS Set of peer he_cap is intersection with self he_cp */ in ath11k_peer_assoc_h_he()
2453 int nss, ru; in ath11k_peer_assoc_h_he() local
2462 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath11k_peer_assoc_h_he()
2475 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath11k_peer_assoc_h_he()
2499 …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()
2544 /* Calculate peer NSS capability from HE capabilities if STA in ath11k_peer_assoc_h_he()
2552 * to find nss. in ath11k_peer_assoc_h_he()
2580 "he peer %pM nss %d mcs cnt %d nss_override 0x%x\n", in ath11k_peer_assoc_h_he()
4492 u8 vht_rate, nss; in ath11k_mac_set_peer_vht_fixed_rate() local
4498 nss = 0; in ath11k_mac_set_peer_vht_fixed_rate()
4502 nss = i + 1; in ath11k_mac_set_peer_vht_fixed_rate()
4507 if (!nss) { in ath11k_mac_set_peer_vht_fixed_rate()
4513 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_vht_fixed_rate()
4514 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_vht_fixed_rate()
4521 rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss - 1, in ath11k_mac_set_peer_vht_fixed_rate()
4542 u8 he_rate, nss; in ath11k_mac_set_peer_he_fixed_rate() local
4548 nss = 0; in ath11k_mac_set_peer_he_fixed_rate()
4552 nss = i + 1; in ath11k_mac_set_peer_he_fixed_rate()
4557 if (!nss) { in ath11k_mac_set_peer_he_fixed_rate()
4563 /* Avoid updating invalid nss as fixed rate */ in ath11k_mac_set_peer_he_fixed_rate()
4564 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_he_fixed_rate()
4571 rate_code = ATH11K_HW_RATE_CODE(he_rate, nss - 1, in ath11k_mac_set_peer_he_fixed_rate()
4593 u8 ht_rate, nss = 0; in ath11k_mac_set_peer_ht_fixed_rate() local
4601 nss = i + 1; in ath11k_mac_set_peer_ht_fixed_rate()
4606 if (!nss) { in ath11k_mac_set_peer_ht_fixed_rate()
4612 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_ht_fixed_rate()
4613 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_ht_fixed_rate()
4620 rate_code = ATH11K_HW_RATE_CODE(ht_rate, nss - 1, in ath11k_mac_set_peer_ht_fixed_rate()
4678 * Note that all other rates and NSS will be disabled for this peer. in ath11k_station_assoc()
4775 u32 changed, bw, nss, smps, bw_prev; in ath11k_sta_rc_update_wk() local
4801 nss = arsta->nss; in ath11k_sta_rc_update_wk()
4808 nss = max_t(u32, 1, nss); in ath11k_sta_rc_update_wk()
4809 nss = min(nss, ath11k_mac_max_nss(ht_mcs_mask, vht_mcs_mask, he_mcs_mask)); in ath11k_sta_rc_update_wk()
4867 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "update sta %pM nss %d\n", in ath11k_sta_rc_update_wk()
4868 sta->addr, nss); in ath11k_sta_rc_update_wk()
4871 WMI_PEER_NSS, nss); in ath11k_sta_rc_update_wk()
4873 ath11k_warn(ar->ab, "failed to update STA %pM nss %d: %d\n", in ath11k_sta_rc_update_wk()
4874 sta->addr, nss, err); in ath11k_sta_rc_update_wk()
5109 "sta rc update for %pM changed %08x bw %d nss %d smps %d\n", in ath11k_mac_op_sta_rc_update()
5123 arsta->nss = sta->deflink.rx_nss; in ath11k_mac_op_sta_rc_update()
5570 int nss, ru; in ath11k_gen_ppe_thresh() local
5577 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath11k_gen_ppe_thresh()
5584 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath11k_gen_ppe_thresh()
6678 u16 nss; in ath11k_mac_op_add_interface() local
6790 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_op_add_interface()
6792 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_op_add_interface()
6794 ath11k_warn(ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath11k_mac_op_add_interface()
6795 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_op_add_interface()
8285 int *nss) in ath11k_mac_bitrate_mask_get_single_nss() argument
8346 *nss = fls(ht_nss_mask); in ath11k_mac_bitrate_mask_get_single_nss()
8355 u32 *rate, u8 *nss) in ath11k_mac_get_single_legacy_rate() argument
8378 *nss = 1; in ath11k_mac_get_single_legacy_rate()
8472 u32 rate, u8 nss, u8 sgi, u8 ldpc, in ath11k_mac_set_rate_params() argument
8482 …"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()
8483 arvif->vdev_id, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_set_rate_params()
8499 vdev_param, nss); in ath11k_mac_set_rate_params()
8501 ath11k_warn(ar->ab, "failed to set nss param %d: %d\n", in ath11k_mac_set_rate_params()
8502 nss, ret); in ath11k_mac_set_rate_params()
8696 u8 nss; in ath11k_mac_op_set_bitrate_mask() local
8731 &nss); in ath11k_mac_op_set_bitrate_mask()
8743 nss = single_nss; in ath11k_mac_op_set_bitrate_mask()
8755 "could not update fixed rate settings to all peers due to mcs/nss incompatibility\n"); in ath11k_mac_op_set_bitrate_mask()
8756 nss = min_t(u32, ar->num_tx_chains, in ath11k_mac_op_set_bitrate_mask()
8820 ret = ath11k_mac_set_rate_params(arvif, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_op_set_bitrate_mask()
9011 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics()
9016 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics()