소스 검색

qcacld-3.0: Add default NSS to rx_nss before flags calculation

The mcs flags that are sent to the upper layer are derived from mcs
table as present in the driver. Getting the correct values from the
table depends on providing the correct NSS, rate and rate flags.
Currently for the case of TX, all the parameters are passed correctly
but for RX, the NSS is not correct. The rx_nss is set to default value
of 0 where as it should be matched with the value as per the AP
capabilities.

Assign the NSS to the rx_nss as taken from vdev.

Change-Id: Idd579cd23c961d8b194b6b197bc65330be857746
CRs-Fixed: 2366271
Sourav Mohapatra 6 년 전
부모
커밋
a3da1c4f26
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/hdd/src/wlan_hdd_stats.c

+ 2 - 0
core/hdd/src/wlan_hdd_stats.c

@@ -5906,6 +5906,8 @@ int wlan_hdd_get_station_stats(struct hdd_adapter *adapter)
 	/* save class a stats to legacy location */
 	adapter->hdd_stats.class_a_stat.tx_nss =
 		wlan_vdev_mlme_get_nss(adapter->vdev);
+	adapter->hdd_stats.class_a_stat.rx_nss =
+		wlan_vdev_mlme_get_nss(adapter->vdev);
 	adapter->hdd_stats.class_a_stat.tx_rate = stats->tx_rate;
 	adapter->hdd_stats.class_a_stat.rx_rate = stats->rx_rate;
 	adapter->hdd_stats.class_a_stat.tx_rx_rate_flags = stats->tx_rate_flags;