qcacld-3.0: Fix invalid tx power in iw dev
Host driver rate limits successive get_txpower calls within 3 seconds, and sends cached stats from the hdd_stats. However, max_tx_power is not updated in the hdd_stats. Therefore, the cached tx power is always 0 dBm. Also, the hdd_stats would be only updated when CP stats are received from the firmware for get_station/dump_station calls. get_station is not periodically queried for SAP interface from the framework. Therefore, tx power for SAP interface will always be 0 even if hdd_stats gets updated. To fix this, instead of hdd_stats, return the max tx power from the pdev stats cached on the pdev. Change-Id: I0c8d8baab790c7344bd8913158f8eda63736474e CRs-Fixed: 3230649
This commit is contained in:

committed by
Madan Koyyalamudi

parent
b6219119a0
commit
46a85a4bfc
@@ -459,5 +459,11 @@ wlan_cfg80211_mc_bmiss_get_infra_cp_stats(
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void
|
||||
ucfg_mc_cp_stats_get_tx_power(struct wlan_objmgr_vdev *vdev,
|
||||
int *dbm)
|
||||
{}
|
||||
|
||||
#endif /* QCA_SUPPORT_CP_STATS */
|
||||
#endif /* __WLAN_CP_STATS_MC_UCFG_API_H__ */
|
||||
|
Reference in New Issue
Block a user