mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 04:23:39 +00:00
rtl8188eu: Remove dead code for CONFIG_FILE_FWIMG
Eventually the internal FW will be replaced by an external file; however, the code will be redone. Remove this stuff for now. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
1ada4e9170
commit
6d1127b181
2 changed files with 2 additions and 28 deletions
|
@ -621,10 +621,6 @@ static s32 _FWFreeToGo(struct adapter * padapter)
|
|||
|
||||
#define IS_FW_81xxC(padapter) (((GET_HAL_DATA(padapter))->FirmwareSignature & 0xFFF0) == 0x88C0)
|
||||
|
||||
#ifdef CONFIG_FILE_FWIMG
|
||||
extern char *rtw_fw_file_path;
|
||||
u8 FwBuffer8188E[FW_8188E_SIZE];
|
||||
#endif /* CONFIG_FILE_FWIMG */
|
||||
#ifdef CONFIG_WOWLAN
|
||||
/* */
|
||||
/* Description: */
|
||||
|
@ -673,26 +669,10 @@ s32 rtl8188e_FirmwareDownload(struct adapter * padapter)
|
|||
#endif /* CONFIG_WOWLAN */
|
||||
|
||||
|
||||
#ifdef CONFIG_FILE_FWIMG
|
||||
if (rtw_is_file_readable(rtw_fw_file_path) == true)
|
||||
{
|
||||
DBG_88E("%s accquire FW from file:%s\n", __func__, rtw_fw_file_path);
|
||||
pFirmware->eFWSource = FW_SOURCE_IMG_FILE;
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_FILE_FWIMG */
|
||||
{
|
||||
pFirmware->eFWSource = FW_SOURCE_HEADER_FILE;
|
||||
}
|
||||
|
||||
switch (pFirmware->eFWSource)
|
||||
{
|
||||
switch (pFirmware->eFWSource) {
|
||||
case FW_SOURCE_IMG_FILE:
|
||||
#ifdef CONFIG_FILE_FWIMG
|
||||
rtStatus = rtw_retrive_from_file(rtw_fw_file_path, FwBuffer8188E, FW_8188E_SIZE);
|
||||
pFirmware->ulFwLength = rtStatus>=0?rtStatus:0;
|
||||
pFirmware->szFwBuffer = FwBuffer8188E;
|
||||
#endif /* CONFIG_FILE_FWIMG */
|
||||
break;
|
||||
case FW_SOURCE_HEADER_FILE:
|
||||
if (FwImageLen > FW_8188E_SIZE) {
|
||||
|
|
|
@ -168,12 +168,6 @@ static int rtw_fw_iol=1;// 0:Disable, 1:enable, 2:by usb speed
|
|||
module_param(rtw_fw_iol, int, 0644);
|
||||
MODULE_PARM_DESC(rtw_fw_iol,"FW IOL");
|
||||
|
||||
#ifdef CONFIG_FILE_FWIMG
|
||||
char *rtw_fw_file_path= "";
|
||||
module_param(rtw_fw_file_path, charp, 0644);
|
||||
MODULE_PARM_DESC(rtw_fw_file_path, "The path of fw image");
|
||||
#endif //CONFIG_FILE_FWIMG
|
||||
|
||||
module_param(rtw_mc2u_disable, int, 0644);
|
||||
|
||||
module_param(rtw_80211d, int, 0644);
|
||||
|
|
Loading…
Reference in a new issue