mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
qcacld-3.0: Populate and send correct max rate to the userspace
When the ini gReportMaxLinkSpeed is set, it indicates that the rates provided to the userspace should give the maximum possible rate for the given connected parameters. But currently in the driver, the max rate that is being sent to the userspace is dependent on the NSS at which the tx/rx is being done. The NSS is calculated by taking the union of the value from assoc req and from the rate table using MCS index/rates from firmware. The rates fluctuate as per the tx/rx by firmware which subsequently affects the NSS in the host. To keep the max rate independent of this changing NSS, decouple the NSS calculation to contain the value from only the assoc req when reporting max rate. Change-Id: I03d10e397fca6853d05b4812a2adeac0110bc517 CRs-Fixed: 2548498
This commit is contained in:
parent
7117897437
commit
4d1f4ccf88
1 changed files with 4 additions and 2 deletions
|
|
@ -4548,14 +4548,16 @@ static int wlan_hdd_get_sta_stats(struct wiphy *wiphy,
|
|||
tx_rate_flags,
|
||||
tx_mcs_index,
|
||||
my_tx_rate,
|
||||
tx_nss);
|
||||
wlan_vdev_mlme_get_nss(
|
||||
adapter->vdev));
|
||||
|
||||
rx_rate_calc = hdd_report_max_rate(mac_handle, &sinfo->rxrate,
|
||||
sinfo->signal,
|
||||
rx_rate_flags,
|
||||
rx_mcs_index,
|
||||
my_rx_rate,
|
||||
rx_nss);
|
||||
wlan_vdev_mlme_get_nss(
|
||||
adapter->vdev));
|
||||
|
||||
if (!tx_rate_calc || !rx_rate_calc)
|
||||
/* Keep GUI happy */
|
||||
|
|
|
|||
Loading…
Reference in a new issue