Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162541
b: refs/heads/master
c: 8bfd185
h: refs/heads/master
i:
  162539: e95b7b0
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent 08105be commit ce298ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3,666 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96a51d06ccaeb2ca7e23d9e7b9b91c4a45471841
refs/heads/master: 8bfd185b950a25e511b5856bdaa67a696e533d1e
29 changes: 1 addition & 28 deletions trunk/drivers/staging/rtl8192e/r819xE_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
//#include "ieee80211.h"
#include "r8192E.h"
#include "r8192E_hw.h"
#ifdef RTL8190P
#include "r819xP_firmware_img.h"
#else
#include "r819xE_firmware_img.h"
#endif
//#include "r819xE_firmware_img.h"
#include "r819xE_firmware.h"
#include <linux/firmware.h>

Expand Down Expand Up @@ -195,23 +191,13 @@ bool init_firmware(struct net_device *dev)
struct r8192_priv *priv = ieee80211_priv(dev);
bool rt_status = TRUE;

#ifdef RTL8190P
u8 *firmware_img_buf[3] = { &rtl8190_fwboot_array[0],
&rtl8190_fwmain_array[0],
&rtl8190_fwdata_array[0]};

u32 firmware_img_len[3] = { sizeof(rtl8190_fwboot_array),
sizeof(rtl8190_fwmain_array),
sizeof(rtl8190_fwdata_array)};
#else
u8 *firmware_img_buf[3] = { &rtl8192e_fwboot_array[0],
&rtl8192e_fwmain_array[0],
&rtl8192e_fwdata_array[0]};

u32 firmware_img_len[3] = { sizeof(rtl8192e_fwboot_array),
sizeof(rtl8192e_fwmain_array),
sizeof(rtl8192e_fwdata_array)};
#endif
u32 file_length = 0;
u8 *mapped_file = NULL;
u32 init_step = 0;
Expand All @@ -220,16 +206,9 @@ bool init_firmware(struct net_device *dev)

rt_firmware *pfirmware = priv->pFirmware;
const struct firmware *fw_entry;
#ifdef RTL8190P
const char *fw_name[3] = { "RTL8190P/boot.img",
"RTL8190P/main.img",
"RTL8190P/data.img"};
#endif
#ifdef RTL8192E
const char *fw_name[3] = { "RTL8192E/boot.img",
"RTL8192E/main.img",
"RTL8192E/data.img"};
#endif
int rc;

RT_TRACE(COMP_FIRMWARE, " PlatformInitFirmware()==>\n");
Expand Down Expand Up @@ -279,17 +258,11 @@ bool init_firmware(struct net_device *dev)
pfirmware->firmware_buf_size[init_step] = fw_entry->size;

} else {
#ifdef RTL8190P
memcpy(pfirmware->firmware_buf[init_step],fw_entry->data,fw_entry->size);
pfirmware->firmware_buf_size[init_step] = fw_entry->size;

#else
memset(pfirmware->firmware_buf[init_step],0,128);
memcpy(&pfirmware->firmware_buf[init_step][128],fw_entry->data,fw_entry->size);
//mapped_file = pfirmware->firmware_buf[init_step];
pfirmware->firmware_buf_size[init_step] = fw_entry->size+128;
//file_length = fw_entry->size + 128;
#endif
}
//pfirmware->firmware_buf_size = file_length;

Expand Down
Loading

0 comments on commit ce298ed

Please sign in to comment.