Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291154
b: refs/heads/master
c: ac94f19
h: refs/heads/master
v: v3
  • Loading branch information
Arend van Spriel authored and John W. Linville committed Mar 5, 2012
1 parent 585249f commit b8b8a72
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 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: 3bc7e29c984ffda0b6133c2b34233023ff36f370
refs/heads/master: ac94f196a5fed4915b82d71b9b111867d78df992
17 changes: 9 additions & 8 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,8 @@ brcmf_usb_dlneeded(struct brcmf_usbdev_info *devinfo)
sizeof(struct bootrom_id_le));
return false;
} else {
devinfo->bus_pub.attrib.devid = chipid;
devinfo->bus_pub.attrib.chiprev = chiprev;
devinfo->bus_pub.devid = chipid;
devinfo->bus_pub.chiprev = chiprev;
}
return true;
}
Expand Down Expand Up @@ -1064,7 +1064,7 @@ static int brcmf_usb_dlstart(struct brcmf_usbdev_info *devinfo, u8 *fw, int len)
if (devinfo == NULL)
return -EINVAL;

if (devinfo->bus_pub.attrib.devid == 0xDEAD)
if (devinfo->bus_pub.devid == 0xDEAD)
return -EINVAL;

err = brcmf_usb_dl_writeimage(devinfo, fw, len);
Expand All @@ -1085,7 +1085,7 @@ static int brcmf_usb_dlrun(struct brcmf_usbdev_info *devinfo)
if (!devinfo)
return -EINVAL;

if (devinfo->bus_pub.attrib.devid == 0xDEAD)
if (devinfo->bus_pub.devid == 0xDEAD)
return -EINVAL;

/* Check we are runnable */
Expand Down Expand Up @@ -1124,18 +1124,19 @@ static bool brcmf_usb_chip_support(int chipid, int chiprev)
static int
brcmf_usb_fw_download(struct brcmf_usbdev_info *devinfo)
{
struct brcmf_usb_attrib *attr;
int devid, chiprev;
int err;

brcmf_dbg(TRACE, "enter\n");
if (devinfo == NULL)
return -ENODEV;

attr = &devinfo->bus_pub.attrib;
devid = devinfo->bus_pub.devid;
chiprev = devinfo->bus_pub.chiprev;

if (!brcmf_usb_chip_support(attr->devid, attr->chiprev)) {
if (!brcmf_usb_chip_support(devid, chiprev)) {
brcmf_dbg(ERROR, "unsupported chip %d rev %d\n",
attr->devid, attr->chiprev);
devid, chiprev);
return -EINVAL;
}

Expand Down
16 changes: 2 additions & 14 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,15 @@ struct brcmf_stats {

};

struct brcmf_usb_attrib {
int bustype;
int vid;
int pid;
int devid;
int chiprev; /* chip revsion number */
int mtu;
int nchan; /* Data Channels */
int has_2nd_bulk_in_ep;
};

struct brcmf_usbdev_info;

struct brcmf_usbdev {
struct brcmf_bus *bus;
struct brcmf_usbdev_info *devinfo;
enum brcmf_usb_state state;
struct brcmf_stats stats;
int ntxq, nrxq, rxsize;
u32 bus_mtu;
struct brcmf_usb_attrib attrib;
int devid;
int chiprev; /* chip revsion number */
};

/* IO Request Block (IRB) */
Expand Down

0 comments on commit b8b8a72

Please sign in to comment.