qcacld-3.0: Update stations bw info field value in HT20 scenario

qcacld-2.0 to qcacld-3.0 propagation

After station is associatied in HT20, when cfg80211_get_station
is triggered, update station info txrate bw field for HT20

Change-Id: Icc2c5f318d7812696202705edda17c7352f66fba
CRs-Fixed: 2121005
This commit is contained in:
Visweswara Tanuku 2018-04-09 15:20:11 +05:30 • committed by nshrivas
commit bc115203de

View file

@ -4281,6 +4281,9 @@ static int wlan_hdd_get_sta_stats(struct wiphy *wiphy,
if (rate_flags & TX_RATE_HT40)
hdd_set_rate_bw(&sinfo->txrate,
HDD_RATE_BW_40);
else if (rate_flags & TX_RATE_HT20)
hdd_set_rate_bw(&sinfo->txrate,
HDD_RATE_BW_20);
} else {
sinfo->txrate.flags |= RATE_INFO_FLAGS_VHT_MCS;
}