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()
1921 int nss; in ath11k_peer_assoc_h_ht_masked() local
1923 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath11k_peer_assoc_h_ht_masked()
1924 if (ht_mcs_mask[nss]) in ath11k_peer_assoc_h_ht_masked()
1933 int nss; in ath11k_peer_assoc_h_vht_masked() local
1935 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath11k_peer_assoc_h_vht_masked()
1936 if (vht_mcs_mask[nss]) in ath11k_peer_assoc_h_vht_masked()
2045 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "ht peer %pM mcs cnt %d nss %d\n", in ath11k_peer_assoc_h_ht()
2051 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
2053 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
2066 int nss; in ath11k_peer_assoc_h_vht_limit() local
2070 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath11k_peer_assoc_h_vht_limit()
2071 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
2072 vht_mcs_limit[nss]; in ath11k_peer_assoc_h_vht_limit()
2104 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_vht_limit()
2105 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_vht_limit()
2131 ath11k_warn(ar->ab, "invalid nss ratio received from firmware: %d\n", in ath11k_get_nss_160mhz()
2209 …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()
2214 /* Calculate peer NSS capability from VHT capabilities if STA in ath11k_peer_assoc_h_vht()
2271 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
2273 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
2285 int nss; in ath11k_peer_assoc_h_he_limit() local
2289 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) { in ath11k_peer_assoc_h_he_limit()
2290 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
2291 he_mcs_limit[nss]; in ath11k_peer_assoc_h_he_limit()
2318 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath11k_peer_assoc_h_he_limit()
2319 tx_mcs_set |= mcs << (nss * 2); in ath11k_peer_assoc_h_he_limit()
2328 int nss; in ath11k_peer_assoc_h_he_masked() local
2330 for (nss = 0; nss < NL80211_HE_NSS_MAX; nss++) in ath11k_peer_assoc_h_he_masked()
2331 if (he_mcs_mask[nss]) in ath11k_peer_assoc_h_he_masked()
2373 /* Supported HE-MCS and NSS Set of peer he_cap is intersection with self he_cp */ in ath11k_peer_assoc_h_he()
2449 int nss, ru; in ath11k_peer_assoc_h_he() local
2458 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath11k_peer_assoc_h_he()
2471 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath11k_peer_assoc_h_he()
2495 …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()
2540 /* Calculate peer NSS capability from HE capabilities if STA in ath11k_peer_assoc_h_he()
2548 * to find nss. in ath11k_peer_assoc_h_he()
2576 "he peer %pM nss %d mcs cnt %d nss_override 0x%x\n", in ath11k_peer_assoc_h_he()
4488 u8 vht_rate, nss; in ath11k_mac_set_peer_vht_fixed_rate() local
4494 nss = 0; in ath11k_mac_set_peer_vht_fixed_rate()
4498 nss = i + 1; in ath11k_mac_set_peer_vht_fixed_rate()
4503 if (!nss) { in ath11k_mac_set_peer_vht_fixed_rate()
4509 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_vht_fixed_rate()
4510 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_vht_fixed_rate()
4517 rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss - 1, in ath11k_mac_set_peer_vht_fixed_rate()
4538 u8 he_rate, nss; in ath11k_mac_set_peer_he_fixed_rate() local
4544 nss = 0; in ath11k_mac_set_peer_he_fixed_rate()
4548 nss = i + 1; in ath11k_mac_set_peer_he_fixed_rate()
4553 if (!nss) { in ath11k_mac_set_peer_he_fixed_rate()
4559 /* Avoid updating invalid nss as fixed rate */ in ath11k_mac_set_peer_he_fixed_rate()
4560 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_he_fixed_rate()
4567 rate_code = ATH11K_HW_RATE_CODE(he_rate, nss - 1, in ath11k_mac_set_peer_he_fixed_rate()
4589 u8 ht_rate, nss = 0; in ath11k_mac_set_peer_ht_fixed_rate() local
4597 nss = i + 1; in ath11k_mac_set_peer_ht_fixed_rate()
4602 if (!nss) { in ath11k_mac_set_peer_ht_fixed_rate()
4608 /* Avoid updating invalid nss as fixed rate*/ in ath11k_mac_set_peer_ht_fixed_rate()
4609 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_ht_fixed_rate()
4616 rate_code = ATH11K_HW_RATE_CODE(ht_rate, nss - 1, in ath11k_mac_set_peer_ht_fixed_rate()
4674 * Note that all other rates and NSS will be disabled for this peer. in ath11k_station_assoc()
4771 u32 changed, bw, nss, smps, bw_prev; in ath11k_sta_rc_update_wk() local
4797 nss = arsta->nss; in ath11k_sta_rc_update_wk()
4804 nss = max_t(u32, 1, nss); in ath11k_sta_rc_update_wk()
4805 nss = min(nss, ath11k_mac_max_nss(ht_mcs_mask, vht_mcs_mask, he_mcs_mask)); in ath11k_sta_rc_update_wk()
4863 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "update sta %pM nss %d\n", in ath11k_sta_rc_update_wk()
4864 sta->addr, nss); in ath11k_sta_rc_update_wk()
4867 WMI_PEER_NSS, nss); in ath11k_sta_rc_update_wk()
4869 ath11k_warn(ar->ab, "failed to update STA %pM nss %d: %d\n", in ath11k_sta_rc_update_wk()
4870 sta->addr, nss, err); in ath11k_sta_rc_update_wk()
5104 "sta rc update for %pM changed %08x bw %d nss %d smps %d\n", in ath11k_mac_op_sta_rc_update()
5118 arsta->nss = sta->deflink.rx_nss; in ath11k_mac_op_sta_rc_update()
5521 int nss, ru; in ath11k_gen_ppe_thresh() local
5528 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath11k_gen_ppe_thresh()
5535 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath11k_gen_ppe_thresh()
6621 u16 nss; in ath11k_mac_op_add_interface() local
6733 nss = get_num_chains(ar->cfg_tx_chainmask) ? : 1; in ath11k_mac_op_add_interface()
6735 WMI_VDEV_PARAM_NSS, nss); in ath11k_mac_op_add_interface()
6737 ath11k_warn(ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath11k_mac_op_add_interface()
6738 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_op_add_interface()
8232 int *nss) in ath11k_mac_bitrate_mask_get_single_nss() argument
8293 *nss = fls(ht_nss_mask); in ath11k_mac_bitrate_mask_get_single_nss()
8302 u32 *rate, u8 *nss) in ath11k_mac_get_single_legacy_rate() argument
8325 *nss = 1; in ath11k_mac_get_single_legacy_rate()
8419 u32 rate, u8 nss, u8 sgi, u8 ldpc, in ath11k_mac_set_rate_params() argument
8429 …"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()
8430 arvif->vdev_id, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_set_rate_params()
8446 vdev_param, nss); in ath11k_mac_set_rate_params()
8448 ath11k_warn(ar->ab, "failed to set nss param %d: %d\n", in ath11k_mac_set_rate_params()
8449 nss, ret); in ath11k_mac_set_rate_params()
8643 u8 nss; in ath11k_mac_op_set_bitrate_mask() local
8678 &nss); in ath11k_mac_op_set_bitrate_mask()
8690 nss = single_nss; in ath11k_mac_op_set_bitrate_mask()
8702 "could not update fixed rate settings to all peers due to mcs/nss incompatibility\n"); in ath11k_mac_op_set_bitrate_mask()
8703 nss = min_t(u32, ar->num_tx_chains, in ath11k_mac_op_set_bitrate_mask()
8767 ret = ath11k_mac_set_rate_params(arvif, rate, nss, sgi, ldpc, he_gi, in ath11k_mac_op_set_bitrate_mask()
8958 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics()
8963 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics()