diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2015-02-15 09:50:41 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-02-15 09:50:41 -0500 |
commit | eed55411d32a2f253290c430b1ff8ecdded588a6 (patch) | |
tree | b7b946b0f2ee84c02ad0251586fa84baf0ad4790 /drivers/net/wireless/ath/ath10k | |
parent | de23d3efb0bfae5e4828f66e2d5f0b0c80648f20 (diff) |
ath10k: add more wmi fw stat defines
New qca6174 wmi-tlv firmware revisions support
more stat event bits.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/debug.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.h | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index 8e969c9d9d5f..cafe38aac0c4 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c | |||
@@ -395,7 +395,7 @@ static int ath10k_debug_fw_stats_request(struct ath10k *ar) | |||
395 | 395 | ||
396 | reinit_completion(&ar->debug.fw_stats_complete); | 396 | reinit_completion(&ar->debug.fw_stats_complete); |
397 | 397 | ||
398 | ret = ath10k_wmi_request_stats(ar, WMI_REQUEST_PEER_STAT); | 398 | ret = ath10k_wmi_request_stats(ar, WMI_STAT_PEER); |
399 | if (ret) { | 399 | if (ret) { |
400 | ath10k_warn(ar, "could not request stats (%d)\n", ret); | 400 | ath10k_warn(ar, "could not request stats (%d)\n", ret); |
401 | return ret; | 401 | return ret; |
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index 20ce3603e64b..0eb0959275aa 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h | |||
@@ -3057,8 +3057,12 @@ struct wmi_pdev_stats_peer { | |||
3057 | } __packed; | 3057 | } __packed; |
3058 | 3058 | ||
3059 | enum wmi_stats_id { | 3059 | enum wmi_stats_id { |
3060 | WMI_REQUEST_PEER_STAT = 0x01, | 3060 | WMI_STAT_PEER = BIT(0), |
3061 | WMI_REQUEST_AP_STAT = 0x02 | 3061 | WMI_STAT_AP = BIT(1), |
3062 | WMI_STAT_PDEV = BIT(2), | ||
3063 | WMI_STAT_VDEV = BIT(3), | ||
3064 | WMI_STAT_BCNFLT = BIT(4), | ||
3065 | WMI_STAT_VDEV_RATE = BIT(5), | ||
3062 | }; | 3066 | }; |
3063 | 3067 | ||
3064 | struct wlan_inst_rssi_args { | 3068 | struct wlan_inst_rssi_args { |
@@ -3093,7 +3097,7 @@ struct wmi_pdev_suspend_cmd { | |||
3093 | } __packed; | 3097 | } __packed; |
3094 | 3098 | ||
3095 | struct wmi_stats_event { | 3099 | struct wmi_stats_event { |
3096 | __le32 stats_id; /* %WMI_REQUEST_ */ | 3100 | __le32 stats_id; /* WMI_STAT_ */ |
3097 | /* | 3101 | /* |
3098 | * number of pdev stats event structures | 3102 | * number of pdev stats event structures |
3099 | * (wmi_pdev_stats) 0 or 1 | 3103 | * (wmi_pdev_stats) 0 or 1 |