]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
rtlwifi: fill FW version and subversion
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 29 Dec 2017 08:31:12 +0000 (16:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:08:00 +0000 (19:08 +0200)
This commit fills FW version information of RTL8188EE and RTL8723, so
the btcoex can cooperate with FW correctly.
Also, we can display this version in debugfs.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c
drivers/net/wireless/realtek/rtlwifi/rtl8723com/fw_common.c

index a2eca669873b641dc3efec908f03c535e2b741a1..63874512598bb7cccacff2c5850a584db2de58a5 100644 (file)
@@ -141,6 +141,8 @@ int rtl88e_download_fw(struct ieee80211_hw *hw,
                return 1;
 
        pfwheader = (struct rtlwifi_firmware_header *)rtlhal->pfirmware;
+       rtlhal->fw_version = le16_to_cpu(pfwheader->version);
+       rtlhal->fw_subversion = pfwheader->subversion;
        pfwdata = rtlhal->pfirmware;
        fwsize = rtlhal->fwsize;
        RT_TRACE(rtlpriv, COMP_FW, DBG_DMESG,
index 0d1ebc8617204a0935d875aaed9d52a961b6840d..521039c5d4ced7b8ccaed36e918f50b665fb47b0 100644 (file)
@@ -200,6 +200,8 @@ int rtl8723_download_fw(struct ieee80211_hw *hw,
                return 1;
 
        pfwheader = (struct rtlwifi_firmware_header *)rtlhal->pfirmware;
+       rtlhal->fw_version = le16_to_cpu(pfwheader->version);
+       rtlhal->fw_subversion = pfwheader->subversion;
        pfwdata = rtlhal->pfirmware;
        fwsize = rtlhal->fwsize;