|
@@ -200,7 +200,7 @@ int rtl88e_download_fw(struct ieee80211_hw *hw,
|
|
|
{
|
|
|
struct rtl_priv *rtlpriv = rtl_priv(hw);
|
|
|
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
|
|
|
- struct rtl92c_firmware_header *pfwheader;
|
|
|
+ struct rtlwifi_firmware_header *pfwheader;
|
|
|
u8 *pfwdata;
|
|
|
u32 fwsize;
|
|
|
int err;
|
|
@@ -209,7 +209,7 @@ int rtl88e_download_fw(struct ieee80211_hw *hw,
|
|
|
if (!rtlhal->pfirmware)
|
|
|
return 1;
|
|
|
|
|
|
- pfwheader = (struct rtl92c_firmware_header *)rtlhal->pfirmware;
|
|
|
+ pfwheader = (struct rtlwifi_firmware_header *)rtlhal->pfirmware;
|
|
|
pfwdata = rtlhal->pfirmware;
|
|
|
fwsize = rtlhal->fwsize;
|
|
|
RT_TRACE(rtlpriv, COMP_FW, DBG_DMESG,
|
|
@@ -219,10 +219,10 @@ int rtl88e_download_fw(struct ieee80211_hw *hw,
|
|
|
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));
|
|
|
+ (int)sizeof(struct rtlwifi_firmware_header));
|
|
|
|
|
|
- pfwdata = pfwdata + sizeof(struct rtl92c_firmware_header);
|
|
|
- fwsize = fwsize - sizeof(struct rtl92c_firmware_header);
|
|
|
+ pfwdata = pfwdata + sizeof(struct rtlwifi_firmware_header);
|
|
|
+ fwsize = fwsize - sizeof(struct rtlwifi_firmware_header);
|
|
|
}
|
|
|
|
|
|
if (rtl_read_byte(rtlpriv, REG_MCUFWDL) & BIT(7)) {
|