Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235665
b: refs/heads/master
c: c84a702
h: refs/heads/master
i:
  235663: 83a4f6e
v: v3
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent 07de6f5 commit c47a971
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 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: e3dc896b21fbb4d23e2747dbe58bb9156c9e1a99
refs/heads/master: c84a7028cc4957e39af5ed8b1a3c8acda24a2a89
2 changes: 0 additions & 2 deletions trunk/drivers/staging/rtl8712/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ TODO:
- switch to use LIB80211
- switch to use MAC80211
- checkpatch.pl fixes - only a few remain
- switch from large inline firmware file to use the firmware interface
and add the file to the linux-firmware package.

Please send any patches to Greg Kroah-Hartman <greg@kroah.com>,
Larry Finger <Larry.Finger@lwfinger.net> and
Expand Down
22 changes: 17 additions & 5 deletions trunk/drivers/staging/rtl8712/hal_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "osdep_service.h"
#include "drv_types.h"
#include "rtl871x_byteorder.h"
#include "farray.h"
#include "usb_osintf.h"

#define FWBUFF_ALIGN_SZ 512
Expand All @@ -40,11 +39,24 @@
static u32 rtl871x_open_fw(struct _adapter *padapter, void **pphfwfile_hdl,
const u8 **ppmappedfw)
{
u32 len;
int rc;
const char firmware_file[] = "rtl8712u/rtl8712u.bin";
const struct firmware **praw = (const struct firmware **)
(pphfwfile_hdl);
struct dvobj_priv *pdvobjpriv = (struct dvobj_priv *)
(&padapter->dvobjpriv);
struct usb_device *pusbdev = pdvobjpriv->pusbdev;

*ppmappedfw = f_array;
len = sizeof(f_array);
return len;
printk(KERN_INFO "r8712u: Loading firmware from \"%s\"\n",
firmware_file);
rc = request_firmware(praw, firmware_file, &pusbdev->dev);
if (rc < 0) {
printk(KERN_ERR "r8712u: Unable to load firmware\n");
printk(KERN_ERR "r8712u: Install latest linux-firmware\n");
return 0;
}
*ppmappedfw = (u8 *)((*praw)->data);
return (*praw)->size;
}

static void fill_fwpriv(struct _adapter *padapter, struct fw_priv *pfwpriv)
Expand Down

0 comments on commit c47a971

Please sign in to comment.