summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/wmi.c
diff options
context:
space:
mode:
authorRaja Mani <rmani@qti.qualcomm.com>2015-06-22 20:10:10 +0530
committerKalle Valo <kvalo@qca.qualcomm.com>2015-06-30 15:31:03 +0300
commit840357ccc365b650d2321a5690cb5374192619ca (patch)
tree9a39b859e4b944ba0f2c2840b0cc49c0c4cb9635 /drivers/net/wireless/ath/ath10k/wmi.c
parent9bd213224654b8c13af8bffcf9bd07ee0baae5ef (diff)
downloadtalos-obmc-linux-840357ccc365b650d2321a5690cb5374192619ca.tar.gz
talos-obmc-linux-840357ccc365b650d2321a5690cb5374192619ca.zip
ath10k: add 10.4 fw wmi service bitmap definition
Include new enum to define wmi service bitmap definitions for 10.4 firmware and a function wmi_10_4_svc_map() to remap 10.4 firmware wmi service bitmap definitions to ath10k generic wmi services. Signed-off-by: Raja Mani <rmani@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index b32bb6825f3c..52493d14c9b0 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -5412,10 +5412,15 @@ static const struct wmi_ops wmi_10_2_4_ops = {
/* .gen_adaptive_qcs not implemented */
};
+static const struct wmi_ops wmi_10_4_ops = {
+ .map_svc = wmi_10_4_svc_map,
+};
+
int ath10k_wmi_attach(struct ath10k *ar)
{
switch (ar->wmi.op_version) {
case ATH10K_FW_WMI_OP_VERSION_10_4:
+ ar->wmi.ops = &wmi_10_4_ops;
break;
case ATH10K_FW_WMI_OP_VERSION_10_2_4:
ar->wmi.cmd = &wmi_10_2_4_cmd_map;
OpenPOWER on IntegriCloud