mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Fix rx nss stats for fixed rate nss 1
rx nss calculated based on stbc. Change-Id: I355f28bc8dcf1460247d51753c9309f4d2e8010b
This commit is contained in:
parent
1d0fedf86c
commit
a0c640b5fb
1 changed files with 4 additions and 0 deletions
|
|
@ -815,8 +815,12 @@ hal_rx_status_get_tlv_info(void *rx_tlv_hdr, struct hal_rx_ppdu_info *ppdu_info)
|
|||
ppdu_info->rx_status.sgi = HAL_RX_GET(vht_sig_a_info,
|
||||
VHT_SIG_A_INFO_1, GI_SETTING);
|
||||
#if !defined(QCA_WIFI_QCA6290_11AX)
|
||||
ppdu_info->rx_status.is_stbc = HAL_RX_GET(vht_sig_a_info,
|
||||
VHT_SIG_A_INFO_0, STBC);
|
||||
value = HAL_RX_GET(vht_sig_a_info,
|
||||
VHT_SIG_A_INFO_0, N_STS);
|
||||
if (ppdu_info->rx_status.is_stbc && (value > 0))
|
||||
value = ((value + 1) >> 1) - 1;
|
||||
ppdu_info->rx_status.nss = ((value & VHT_SIG_SU_NSS_MASK) + 1);
|
||||
#else
|
||||
ppdu_info->rx_status.nss = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue