summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
diff options
context:
space:
mode:
authorVasily Ulyanov <vulyanov@quantenna.com>2018-01-22 15:46:28 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-01-24 18:00:34 +0200
commit0b419d0182bc31afc1840b3caee3ae61f2eda601 (patch)
tree1227c229e2484c09b1c959859da50837a8350a53 /drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
parent5ec5b532dabceedd7aa8b3a54e9be622a619c38c (diff)
downloadop-kernel-dev-0b419d0182bc31afc1840b3caee3ae61f2eda601.zip
op-kernel-dev-0b419d0182bc31afc1840b3caee3ae61f2eda601.tar.gz
qtnfmac: report hardware/firmware information via ethtool
Enable reporting of qtnfmac hardware and firmware details using ethtool command. Signed-off-by: Vasily Ulyanov <vulyanov@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/quantenna/qtnfmac/cfg80211.c')
-rw-r--r--drivers/net/wireless/quantenna/qtnfmac/cfg80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
index c417a67..03f8190 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
@@ -972,6 +972,10 @@ int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac)
wiphy->regulatory_flags |= REGULATORY_WIPHY_SELF_MANAGED;
}
+ strlcpy(wiphy->fw_version, hw_info->fw_version,
+ sizeof(wiphy->fw_version));
+ wiphy->hw_version = hw_info->hw_version;
+
ret = wiphy_register(wiphy);
if (ret < 0)
goto out;
OpenPOWER on IntegriCloud