Lines Matching full:nss
407 int nss; in ath12k_mac_max_ht_nss() local
409 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath12k_mac_max_ht_nss()
410 if (ht_mcs_mask[nss]) in ath12k_mac_max_ht_nss()
411 return nss + 1; in ath12k_mac_max_ht_nss()
419 int nss; in ath12k_mac_max_vht_nss() local
421 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_vht_nss()
422 if (vht_mcs_mask[nss]) in ath12k_mac_max_vht_nss()
423 return nss + 1; in ath12k_mac_max_vht_nss()
919 u16 nss; in ath12k_mac_monitor_vdev_create() local
959 nss = hweight32(ar->cfg_tx_chainmask) ? : 1; in ath12k_mac_monitor_vdev_create()
961 WMI_VDEV_PARAM_NSS, nss); in ath12k_mac_monitor_vdev_create()
963 ath12k_warn(ar->ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath12k_mac_monitor_vdev_create()
964 ar->monitor_vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath12k_mac_monitor_vdev_create()
1333 int nss; in ath12k_peer_assoc_h_ht_masked() local
1335 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath12k_peer_assoc_h_ht_masked()
1336 if (ht_mcs_mask[nss]) in ath12k_peer_assoc_h_ht_masked()
1345 int nss; in ath12k_peer_assoc_h_vht_masked() local
1347 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) in ath12k_peer_assoc_h_vht_masked()
1348 if (vht_mcs_mask[nss]) in ath12k_peer_assoc_h_vht_masked()
1449 ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "mac ht peer %pM mcs cnt %d nss %d\n", in ath12k_peer_assoc_h_ht()
1455 static int ath12k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath12k_mac_get_max_vht_mcs_map() argument
1457 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath12k_mac_get_max_vht_mcs_map()
1470 int nss; in ath12k_peer_assoc_h_vht_limit() local
1474 for (nss = 0; nss < NL80211_VHT_NSS_MAX; nss++) { in ath12k_peer_assoc_h_vht_limit()
1475 mcs_map = ath12k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath12k_peer_assoc_h_vht_limit()
1476 vht_mcs_limit[nss]; in ath12k_peer_assoc_h_vht_limit()
1508 tx_mcs_set &= ~(0x3 << (nss * 2)); in ath12k_peer_assoc_h_vht_limit()
1509 tx_mcs_set |= mcs << (nss * 2); in ath12k_peer_assoc_h_vht_limit()
1571 /* Calculate peer NSS capability from VHT capabilities if STA in ath12k_peer_assoc_h_vht()
1630 /* Supported HE-MCS and NSS Set of peer he_cap is intersection with self he_cp */ in ath12k_peer_assoc_h_he()
1698 int nss, ru; in ath12k_peer_assoc_h_he() local
1707 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) { in ath12k_peer_assoc_h_he()
1720 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= in ath12k_peer_assoc_h_he()
2108 u8 nss, ru, i; in ath12k_mac_set_eht_ppe_threshold() local
2115 for (nss = 0; nss <= ppet->numss_m1; nss++) { in ath12k_mac_set_eht_ppe_threshold()
2128 ppet->ppet16_ppet8_ru3_ru0[nss] |= in ath12k_mac_set_eht_ppe_threshold()
3296 u8 vht_rate, nss; in ath12k_mac_set_peer_vht_fixed_rate() local
3302 nss = 0; in ath12k_mac_set_peer_vht_fixed_rate()
3306 nss = i + 1; in ath12k_mac_set_peer_vht_fixed_rate()
3311 if (!nss) { in ath12k_mac_set_peer_vht_fixed_rate()
3321 rate_code = ATH12K_HW_RATE_CODE(vht_rate, nss - 1, in ath12k_mac_set_peer_vht_fixed_rate()
3376 * Note that all other rates and NSS will be disabled for this peer. in ath12k_station_assoc()
3453 u32 changed, bw, nss, smps, bw_prev; in ath12k_sta_rc_update_wk() local
3478 nss = arsta->nss; in ath12k_sta_rc_update_wk()
3485 nss = max_t(u32, 1, nss); in ath12k_sta_rc_update_wk()
3486 nss = min(nss, max(ath12k_mac_max_ht_nss(ht_mcs_mask), in ath12k_sta_rc_update_wk()
3540 ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "mac update sta %pM nss %d\n", in ath12k_sta_rc_update_wk()
3541 sta->addr, nss); in ath12k_sta_rc_update_wk()
3544 WMI_PEER_NSS, nss); in ath12k_sta_rc_update_wk()
3546 ath12k_warn(ar->ab, "failed to update STA %pM nss %d: %d\n", in ath12k_sta_rc_update_wk()
3547 sta->addr, nss, err); in ath12k_sta_rc_update_wk()
3912 "mac sta rc update for %pM changed %08x bw %d nss %d smps %d\n", in ath12k_mac_op_sta_rc_update()
3925 arsta->nss = sta->deflink.rx_nss; in ath12k_mac_op_sta_rc_update()
4312 int nss, ru; in ath12k_gen_ppe_thresh() local
4319 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath12k_gen_ppe_thresh()
4326 val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru * 6)) & in ath12k_gen_ppe_thresh()
4526 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
4534 for (nss = 0; nss <= fw_ppet->numss_m1; nss++) { in ath12k_mac_copy_eht_ppe_thresh()
4543 u32p_replace_bits(&val, fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> in ath12k_mac_copy_eht_ppe_thresh()
5318 u16 nss; in ath12k_mac_op_add_interface() local
5414 nss = hweight32(ar->cfg_tx_chainmask) ? : 1; in ath12k_mac_op_add_interface()
5416 WMI_VDEV_PARAM_NSS, nss); in ath12k_mac_op_add_interface()
5418 ath12k_warn(ab, "failed to set vdev %d chainmask 0x%x, nss %d :%d\n", in ath12k_mac_op_add_interface()
5419 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath12k_mac_op_add_interface()
6423 int *nss) in ath12k_mac_bitrate_mask_get_single_nss() argument
6464 *nss = fls(ht_nss_mask); in ath12k_mac_bitrate_mask_get_single_nss()
6473 u32 *rate, u8 *nss) in ath12k_mac_get_single_legacy_rate() argument
6496 *nss = 1; in ath12k_mac_get_single_legacy_rate()
6503 u32 rate, u8 nss, u8 sgi, u8 ldpc) in ath12k_mac_set_fixed_rate_params() argument
6511 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()
6512 arvif->vdev_id, rate, nss, sgi); in ath12k_mac_set_fixed_rate_params()
6525 vdev_param, nss); in ath12k_mac_set_fixed_rate_params()
6527 ath12k_warn(ar->ab, "failed to set nss param %d: %d\n", in ath12k_mac_set_fixed_rate_params()
6528 nss, ret); in ath12k_mac_set_fixed_rate_params()
6621 u8 nss; in ath12k_mac_op_set_bitrate_mask() local
6650 &nss); in ath12k_mac_op_set_bitrate_mask()
6662 nss = single_nss; in ath12k_mac_op_set_bitrate_mask()
6665 nss = min_t(u32, ar->num_tx_chains, in ath12k_mac_op_set_bitrate_mask()
6718 ret = ath12k_mac_set_fixed_rate_params(arvif, rate, nss, sgi, ldpc); in ath12k_mac_op_set_bitrate_mask()
6879 if (!arsta->txrate.legacy && !arsta->txrate.nss) in ath12k_mac_op_sta_statistics()
6886 sinfo->txrate.nss = arsta->txrate.nss; in ath12k_mac_op_sta_statistics()