summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/netdev.c
diff options
context:
space:
mode:
authorLior David <qca_liord@qca.qualcomm.com>2016-08-22 12:42:22 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2016-08-31 10:31:16 +0300
commit13cd9f758a555d1ab547b0dbed3f9d1e529230c3 (patch)
treec7eed889b48531d0c3cfadea73839f716788ddd5 /drivers/net/wireless/ath/wil6210/netdev.c
parent12bace75704ec0d64621be6ebf6e51772ce2cb0f (diff)
downloadlinux-13cd9f758a555d1ab547b0dbed3f9d1e529230c3.tar.gz
linux-13cd9f758a555d1ab547b0dbed3f9d1e529230c3.tar.bz2
linux-13cd9f758a555d1ab547b0dbed3f9d1e529230c3.zip
wil6210: extract firmware version from file header
Currently the FW version is taken from the sw_version field of the FW ready event. This version is based on internal version control revision and it is difficult to map to actual FW version. Fix this by using the actual FW version stored in the FW file header record. Signed-off-by: Lior David <qca_liord@qca.qualcomm.com> Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/netdev.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/netdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/netdev.c b/drivers/net/wireless/ath/wil6210/netdev.c
index 4bc9bb0a6cb4..61de5e9f8ef0 100644
--- a/drivers/net/wireless/ath/wil6210/netdev.c
+++ b/drivers/net/wireless/ath/wil6210/netdev.c
@@ -216,6 +216,8 @@ int wil_if_add(struct wil6210_priv *wil)
wil_dbg_misc(wil, "entered");
+ strlcpy(wiphy->fw_version, wil->fw_version, sizeof(wiphy->fw_version));
+
rc = wiphy_register(wiphy);
if (rc < 0) {
wil_err(wil, "failed to register wiphy, err %d\n", rc);