mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 10:37:51 +07:00
ath10k: enable firmware peer stats info for wmi tlv
For wmi tlv type, firmware disable peer stats info by default, after enable it, firmware will report WMI_TLV_PEER_STATS_INFO_EVENTID if ath10k send WMI_TLV_REQUEST_PEER_STATS_INFO_CMDID to firmware. Enable it will only set a flag in firmware, firmware will not report it without receive request WMI command. Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00042. Signed-off-by: Wen Gong <wgong@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200427080416.8265-2-wgong@codeaurora.org
This commit is contained in:
parent
c26b01d5ec
commit
2289bef25e
@ -2959,6 +2959,11 @@ static void ath10k_bss_assoc(struct ieee80211_hw *hw,
|
||||
arvif->aid = bss_conf->aid;
|
||||
ether_addr_copy(arvif->bssid, bss_conf->bssid);
|
||||
|
||||
ret = ath10k_wmi_pdev_set_param(ar,
|
||||
ar->wmi.pdev_param->peer_stats_info_enable, 1);
|
||||
if (ret)
|
||||
ath10k_warn(ar, "failed to enable peer stats info: %d\n", ret);
|
||||
|
||||
ret = ath10k_wmi_vdev_up(ar, arvif->vdev_id, arvif->aid, arvif->bssid);
|
||||
if (ret) {
|
||||
ath10k_warn(ar, "failed to set vdev %d up: %d\n",
|
||||
|
@ -4269,6 +4269,7 @@ static struct wmi_pdev_param_map wmi_tlv_pdev_param_map = {
|
||||
.arp_dstaddr = WMI_PDEV_PARAM_UNSUPPORTED,
|
||||
.rfkill_config = WMI_TLV_PDEV_PARAM_HW_RFKILL_CONFIG,
|
||||
.rfkill_enable = WMI_TLV_PDEV_PARAM_RFKILL_ENABLE,
|
||||
.peer_stats_info_enable = WMI_TLV_PDEV_PARAM_PEER_STATS_INFO_ENABLE,
|
||||
};
|
||||
|
||||
static struct wmi_peer_param_map wmi_tlv_peer_param_map = {
|
||||
|
@ -451,6 +451,7 @@ enum wmi_tlv_pdev_param {
|
||||
WMI_TLV_PDEV_PARAM_VDEV_RATE_STATS_UPDATE_PERIOD,
|
||||
WMI_TLV_PDEV_PARAM_TXPOWER_REASON_NONE,
|
||||
WMI_TLV_PDEV_PARAM_TXPOWER_REASON_SAR,
|
||||
WMI_TLV_PDEV_PARAM_PEER_STATS_INFO_ENABLE = 0x8b,
|
||||
WMI_TLV_PDEV_PARAM_TXPOWER_REASON_MAX,
|
||||
};
|
||||
|
||||
|
@ -3798,6 +3798,7 @@ struct wmi_pdev_param_map {
|
||||
u32 enable_btcoex;
|
||||
u32 rfkill_config;
|
||||
u32 rfkill_enable;
|
||||
u32 peer_stats_info_enable;
|
||||
};
|
||||
|
||||
#define WMI_PDEV_PARAM_UNSUPPORTED 0
|
||||
|
Loading…
Reference in New Issue
Block a user