Lines Matching full:nss
423 int nss; in ath12k_mac_max_ht_nss() local
425 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath12k_mac_max_ht_nss()
426 if (ht_mcs_mask[nss]) in ath12k_mac_max_ht_nss()
427 return nss + 1; in ath12k_mac_max_ht_nss()
435 int nss; in ath12k_mac_max_vht_nss() local
437 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_vht_nss()
438 if (vht_mcs_mask[nss]) in ath12k_mac_max_vht_nss()
439 return nss + 1; in ath12k_mac_max_vht_nss()
1067 u16 nss; in ath12k_mac_monitor_vdev_create() local
1107 nss = hweight32(ar->cfg_tx_chainmask) ? : 1; in ath12k_mac_monitor_vdev_create()
1109 WMI_VDEV_PARAM_NSS, nss); in ath12k_mac_monitor_vdev_create()
1111 ath12k_warn(ar->ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath12k_mac_monitor_vdev_create()
1112 ar->monitor_vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath12k_mac_monitor_vdev_create()
1848 int nss; in ath12k_peer_assoc_h_ht_masked() local
1850 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath12k_peer_assoc_h_ht_masked()
1851 if (ht_mcs_mask[nss]) in ath12k_peer_assoc_h_ht_masked()
1860 int nss; in ath12k_peer_assoc_h_vht_masked() local
1862 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath12k_peer_assoc_h_vht_masked()
1863 if (vht_mcs_mask[nss]) in ath12k_peer_assoc_h_vht_masked()
1964 ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "mac ht peer %pM mcs cnt %d nss %d\n", in ath12k_peer_assoc_h_ht()
1970 static int ath12k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath12k_mac_get_max_vht_mcs_map() argument
1972 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath12k_mac_get_max_vht_mcs_map()
1985 int nss; in ath12k_peer_assoc_h_vht_limit() local
1989 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath12k_peer_assoc_h_vht_limit()
1990 mcs_map = ath12k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath12k_peer_assoc_h_vht_limit()
1991 vht_mcs_limit[nss]; in ath12k_peer_assoc_h_vht_limit()
2023 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath12k_peer_assoc_h_vht_limit()
2024 tx_mcs_set |= mcs << (nss * 2); in ath12k_peer_assoc_h_vht_limit()
2086 /* Calculate peer NSS capability from VHT capabilities if STA in ath12k_peer_assoc_h_vht()
2147 /* Supported HE-MCS and NSS Set of peer he_cap is intersection with self he_cp */ in ath12k_peer_assoc_h_he()
2214 int nss, ru; in ath12k_peer_assoc_h_he() local
2223 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath12k_peer_assoc_h_he()
2236 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath12k_peer_assoc_h_he()
2695 u8 nss, ru, i; in ath12k_mac_set_eht_ppe_threshold() local
2702 for (nss = 0; nss <= ppet->numss_m1; nss++) { in ath12k_mac_set_eht_ppe_threshold()
2715 ppet->ppet16_ppet8_ru3_ru0[nss] |= in ath12k_mac_set_eht_ppe_threshold()
4120 u8 vht_rate, nss; in ath12k_mac_set_peer_vht_fixed_rate() local
4126 nss = 0; in ath12k_mac_set_peer_vht_fixed_rate()
4130 nss = i + 1; in ath12k_mac_set_peer_vht_fixed_rate()
4135 if (!nss) { in ath12k_mac_set_peer_vht_fixed_rate()
4145 rate_code = ATH12K_HW_RATE_CODE(vht_rate, nss - 1, in ath12k_mac_set_peer_vht_fixed_rate()
4184 "invalid peer NSS %d\n", peer_arg.peer_nss); in ath12k_station_assoc()
4205 * Note that all other rates and NSS will be disabled for this peer. in ath12k_station_assoc()
4283 u32 changed, bw, nss, smps, bw_prev; in ath12k_sta_rc_update_wk() local
4308 nss = arsta->nss; in ath12k_sta_rc_update_wk()
4315 nss = max_t(u32, 1, nss); in ath12k_sta_rc_update_wk()
4316 nss = min(nss, max(ath12k_mac_max_ht_nss(ht_mcs_mask), in ath12k_sta_rc_update_wk()
4370 ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "mac update sta %pM nss %d\n", in ath12k_sta_rc_update_wk()
4371 sta->addr, nss); in ath12k_sta_rc_update_wk()
4374 WMI_PEER_NSS, nss); in ath12k_sta_rc_update_wk()
4376 ath12k_warn(ar->ab, "failed to update STA %pM nss %d: %d\n", in ath12k_sta_rc_update_wk()
4377 sta->addr, nss, err); in ath12k_sta_rc_update_wk()
4768 "mac sta rc update for %pM changed %08x bw %d nss %d smps %d\n", in ath12k_mac_op_sta_rc_update()
4781 arsta->nss = sta->deflink.rx_nss; in ath12k_mac_op_sta_rc_update()
5196 int nss, ru; in ath12k_gen_ppe_thresh() local
5203 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath12k_gen_ppe_thresh()
5210 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath12k_gen_ppe_thresh()
5410 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
5418 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath12k_mac_copy_eht_ppe_thresh()
5427 u32p_replace_bits(&val, fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> in ath12k_mac_copy_eht_ppe_thresh()
6429 u16 nss; in ath12k_mac_vdev_create() local
6507 nss = hweight32(ar->cfg_tx_chainmask) ? : 1; in ath12k_mac_vdev_create()
6509 WMI_VDEV_PARAM_NSS, nss); in ath12k_mac_vdev_create()
6511 ath12k_warn(ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath12k_mac_vdev_create()
6512 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath12k_mac_vdev_create()
7944 int *nss) in ath12k_mac_bitrate_mask_get_single_nss() argument
7985 *nss = fls(ht_nss_mask); in ath12k_mac_bitrate_mask_get_single_nss()
7994 u32 *rate, u8 *nss) in ath12k_mac_get_single_legacy_rate() argument
8017 *nss = 1; in ath12k_mac_get_single_legacy_rate()
8024 u32 rate, u8 nss, u8 sgi, u8 ldpc) in ath12k_mac_set_fixed_rate_params() argument
8032 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()
8033 arvif->vdev_id, rate, nss, sgi); in ath12k_mac_set_fixed_rate_params()
8046 vdev_param, nss); in ath12k_mac_set_fixed_rate_params()
8048 ath12k_warn(ar->ab, "failed to set nss param %d: %d\n", in ath12k_mac_set_fixed_rate_params()
8049 nss, ret); in ath12k_mac_set_fixed_rate_params()
8149 u8 nss; in ath12k_mac_op_set_bitrate_mask() local
8180 &nss); in ath12k_mac_op_set_bitrate_mask()
8192 nss = single_nss; in ath12k_mac_op_set_bitrate_mask()
8195 nss = min_t(u32, ar->num_tx_chains, in ath12k_mac_op_set_bitrate_mask()
8249 ret = ath12k_mac_set_fixed_rate_params(arvif, rate, nss, sgi, ldpc); in ath12k_mac_op_set_bitrate_mask()
8436 if (!arsta->txrate.legacy && !arsta->txrate.nss) in ath12k_mac_op_sta_statistics()
8443 sinfo->txrate.nss = arsta->txrate.nss; in ath12k_mac_op_sta_statistics()