Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352590
b: refs/heads/master
c: 371830e
h: refs/heads/master
v: v3
  • Loading branch information
Arend van Spriel authored and John W. Linville committed Feb 8, 2013
1 parent bc58426 commit 1b1da3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75d907d3ee835f8759fe291023aa609dccebe504
refs/heads/master: 371830eafeb742e973964b38a55f17b69ea714d0
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -552,5 +552,6 @@ extern int brcmf_net_attach(struct brcmf_if *ifp);
extern struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, int ifidx,
s32 bssidx, char *name, u8 *mac_addr);
extern void brcmf_del_if(struct brcmf_pub *drvr, int ifidx);
extern u32 brcmf_get_chip_info(struct brcmf_if *ifp);

#endif /* _BRCMF_H_ */
10 changes: 10 additions & 0 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,16 @@ int brcmf_netdev_wait_pend8021x(struct net_device *ndev)
return !err;
}

/*
* return chip id and rev of the device encoded in u32.
*/
u32 brcmf_get_chip_info(struct brcmf_if *ifp)
{
struct brcmf_bus *bus = ifp->drvr->bus_if;

return bus->chip << 4 | bus->chiprev;
}

static void brcmf_driver_init(struct work_struct *work)
{
brcmf_debugfs_init();
Expand Down

0 comments on commit 1b1da3e

Please sign in to comment.