Skip to contentSkip to conversation

rtlwifi: rtl8192c: Add init codes for "fw_version" and "fw_subversion".

PATCH In review Taehee Yoo 2 participants 2 messages Jun 17, 2015 – Jul 20, 2015 Networking drivers (wireless)

lore
Share & tools
lore

Taehee Yoo

author
#0 lore raw

PATCH v3 1/1 rtlwifi: rtl8192c: Add init codes for "fw_version" and "fw_subversion".

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".

---
V3 - Fix sparse warning.
V2 - Moved new statements into location where header is known to exist.

 drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c +2 -0
index 29983bc..0142070 100644
@@ -240,6 +240,8 @@ int rtl92c_download_fw(struct ieee80211_hw *hw)
 			  pfwheader->version, pfwheader->signature,
 			  (int)sizeof(struct rtl92c_firmware_header));
 
+		rtlhal->fw_version = le16_to_cpu(pfwheader->version);
+		rtlhal->fw_subversion = pfwheader->subversion;
 		pfwdata = pfwdata + sizeof(struct rtl92c_firmware_header);
 		fwsize = fwsize - sizeof(struct rtl92c_firmware_header);
 	}
Signature · 1 line
2.1.4
#1 lore raw
Quoted 8 lines · Taehee Yoo

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".

---
V3 - Fix sparse warning.
V2 - Moved new statements into location where header is known to exist.

I have already applied v2 and v3 won't apply anymore. What you need to do is to create a new patch against wireless-drivers-next (on top of v2) which fixes the sparse warning.

Signature · 1 line
Kalle Valo