Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228089
b: refs/heads/master
c: 06fc884
h: refs/heads/master
i:
  228087: cf69e27
v: v3
  • Loading branch information
Brett Rudley authored and Greg Kroah-Hartman committed Nov 11, 2010
1 parent 98c30f6 commit 8068d7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 43 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: 6174c3496d43b78969d4a989e1aabfbc55acbf15
refs/heads/master: 06fc8846a2c0ddcc51e6666a78fc29a8e749ca3b
48 changes: 6 additions & 42 deletions trunk/drivers/staging/brcm80211/sys/wl_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,32 +182,6 @@ module_param(phymsglevel, int, 0);
#endif /* WLC_HIGH_ONLY */
#endif /* BCMDBG */

static int oneonly;
module_param(oneonly, int, 0);

static int piomode;
module_param(piomode, int, 0);

static int instance_base; /* Starting instance number */
module_param(instance_base, int, 0);

#if defined(BCMDBG)
static char *macaddr;
module_param(macaddr, charp, S_IRUGO);
#endif

static int nompc = 1;
module_param(nompc, int, 0);

static char name[IFNAMSIZ] = "eth%d";
module_param_string(name, name, IFNAMSIZ, 0);

#ifndef SRCBASE
#define SRCBASE "."
#endif

#define WL_MAGIC 0xdeadbeef

#define HW_TO_WL(hw) (hw->priv)
#define WL_TO_HW(wl) (wl->pub->ieee_hw)
#ifdef WLC_HIGH_ONLY
Expand Down Expand Up @@ -776,19 +750,14 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
struct ieee80211_hw *hw;
u8 perm[ETH_ALEN];

unit = wl_found + instance_base;
unit = wl_found;
err = 0;

if (unit < 0) {
WL_ERROR(("wl%d: unit number overflow, exiting\n", unit));
return NULL;
}

if (oneonly && (unit != instance_base)) {
WL_ERROR(("wl%d: wl_attach: oneonly is set, exiting\n", unit));
return NULL;
}

osh = osl_attach(btparam, bustype);
ASSERT(osh);

Expand All @@ -808,7 +777,6 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
#endif
ASSERT(wl);

wl->magic = WL_MAGIC;
wl->osh = osh;
atomic_set(&wl->callbacks, 0);

Expand Down Expand Up @@ -842,9 +810,7 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
base_addr = regs;

if (bustype == PCI_BUS) {
/* piomode can be overwritten by command argument */
wl->piomode = piomode;
WL_TRACE(("PCI/%s\n", wl->piomode ? "PIO" : "DMA"));
wl->piomode = false;
} else if (bustype == RPC_BUS) {
/* Do nothing */
} else {
Expand Down Expand Up @@ -911,11 +877,9 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
wl_rpc_down, NULL, NULL);
#endif /* WLC_HIGH_ONLY */

if (nompc) {
if (wlc_iovar_setint(wl->wlc, "mpc", 0)) {
WL_ERROR(("wl%d: Error setting MPC variable to 0\n",
unit));
}
if (wlc_iovar_setint(wl->wlc, "mpc", 0)) {
WL_ERROR(("wl%d: Error setting MPC variable to 0\n",
unit));
}
#ifdef BCMSDIO
/* Set SDIO drive strength */
Expand Down Expand Up @@ -967,7 +931,7 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
#endif

#ifdef BCMDBG
printf(" (Compiled in " SRCBASE " at " __TIME__ " on " __DATE__ ")");
printf(" (Compiled at " __TIME__ " on " __DATE__ ")");
#endif /* BCMDBG */
printf("\n");

Expand Down

0 comments on commit 8068d7a

Please sign in to comment.