summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/testmode.c
diff options
context:
space:
mode:
authorRyan Hsu2017-04-25 23:19:16 +0200
committerKalle Valo2017-05-04 14:59:48 +0200
commit4dcb78085d569438e9616bf86d2a64e1acdc5e4a (patch)
tree94db15b176b487af057cf52bffe0fd0828529445 /drivers/net/wireless/ath/ath10k/testmode.c
parentath10k: fix out of bounds access to local buffer (diff)
downloadkernel-qcow2-linux-4dcb78085d569438e9616bf86d2a64e1acdc5e4a.tar.gz
kernel-qcow2-linux-4dcb78085d569438e9616bf86d2a64e1acdc5e4a.tar.xz
kernel-qcow2-linux-4dcb78085d569438e9616bf86d2a64e1acdc5e4a.zip
ath10k: append the wmi_op_version to testmode get_version cmd
QCA9xxx and QCA61x4/QCA93xx are using different wmi operation, in order for userspace to differentiate it, appends the wmi_op_version information alone with the get_version command. Signed-off-by: Ryan Hsu <ryanhsu@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/testmode.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/testmode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/testmode.c b/drivers/net/wireless/ath/ath10k/testmode.c
index d8564624415c..9d3eb258ac2f 100644
--- a/drivers/net/wireless/ath/ath10k/testmode.c
+++ b/drivers/net/wireless/ath/ath10k/testmode.c
@@ -137,6 +137,13 @@ static int ath10k_tm_cmd_get_version(struct ath10k *ar, struct nlattr *tb[])
return ret;
}
+ ret = nla_put_u32(skb, ATH10K_TM_ATTR_WMI_OP_VERSION,
+ ar->normal_mode_fw.fw_file.wmi_op_version);
+ if (ret) {
+ kfree_skb(skb);
+ return ret;
+ }
+
return cfg80211_testmode_reply(skb);
}