rtlwifi: rtl8192c: Add init codes for "fw_version" and "fw_subversion".
authorTaehee Yoo <ap420073@gmail.com>
Sun, 7 Jun 2015 13:33:36 +0000 (22:33 +0900)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2015 09:38:33 +0000 (12:38 +0300)
The variable "fw_version" is used in the _ResetDigitalProcedure1().
but It is not initialized. so I add init codes for "fw_version" and
"fw_subversion".

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c

index 29983bc..14b819e 100644 (file)
@@ -233,13 +233,14 @@ int rtl92c_download_fw(struct ieee80211_hw *hw)
        pfwheader = (struct rtl92c_firmware_header *)rtlhal->pfirmware;
        pfwdata = (u8 *)rtlhal->pfirmware;
        fwsize = rtlhal->fwsize;
-
        if (IS_FW_HEADER_EXIST(pfwheader)) {
                RT_TRACE(rtlpriv, COMP_FW, DBG_DMESG,
                         "Firmware Version(%d), Signature(%#x),Size(%d)\n",
                          pfwheader->version, pfwheader->signature,
                          (int)sizeof(struct rtl92c_firmware_header));
 
+               rtlhal->fw_version = pfwheader->version;
+               rtlhal->fw_subversion = pfwheader->subversion;
                pfwdata = pfwdata + sizeof(struct rtl92c_firmware_header);
                fwsize = fwsize - sizeof(struct rtl92c_firmware_header);
        }