Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236202
b: refs/heads/master
c: d769f4c
h: refs/heads/master
v: v3
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Mar 1, 2011
1 parent 1d2b8fb commit 3dc887d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 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: 26bcc1810b7c982ee3a220425c485c2a301abec1
refs/heads/master: d769f4ce8738d1b56080d16716f645910d02eebf
13 changes: 6 additions & 7 deletions trunk/drivers/staging/brcm80211/brcmsmac/wlc_antsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,19 @@ const u8 mimo_2x3_div_antselid_tbl[16] = {
0, 0, 0, 0, 0, 0, 0, 0 /* pat to antselid */
};

struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc,
struct osl_info *osh,
struct wlc_pub *pub,
struct wlc_hw_info *wlc_hw) {
struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc)
{
struct antsel_info *asi;

asi = kzalloc(sizeof(struct antsel_info), GFP_ATOMIC);
if (!asi) {
WL_ERROR("wl%d: wlc_antsel_attach: out of mem\n", pub->unit);
WL_ERROR("wl%d: wlc_antsel_attach: out of mem\n",
wlc->pub->unit);
return NULL;
}

asi->wlc = wlc;
asi->pub = pub;
asi->pub = wlc->pub;
asi->antsel_type = ANTSEL_NA;
asi->antsel_avail = false;
asi->antsel_antswitch = (u8) getintvar(asi->pub->vars, "antswitch");
Expand Down Expand Up @@ -150,7 +149,7 @@ struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc,
}

/* Set the antenna selection type for the low driver */
wlc_bmac_antsel_type_set(wlc_hw, asi->antsel_type);
wlc_bmac_antsel_type_set(wlc->hw, asi->antsel_type);

/* Init (auto/manual) antenna selection */
wlc_antsel_init_cfg(asi, &asi->antcfg_11n, true);
Expand Down
9 changes: 4 additions & 5 deletions trunk/drivers/staging/brcm80211/brcmsmac/wlc_antsel.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@

#ifndef _wlc_antsel_h_
#define _wlc_antsel_h_
extern struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc,
struct osl_info *osh,
struct wlc_pub *pub,
struct wlc_hw_info *wlc_hw);

extern struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc);
extern void wlc_antsel_detach(struct antsel_info *asi);
extern void wlc_antsel_init(struct antsel_info *asi);
extern void wlc_antsel_antcfg_get(struct antsel_info *asi, bool usedef,
bool sel,
u8 id, u8 fbid, u8 *antcfg,
u8 *fbantcfg);
extern u8 wlc_antsel_antsel2id(struct antsel_info *asi, u16 antsel);
#endif /* _wlc_antsel_h_ */

#endif /* _wlc_antsel_h_ */
2 changes: 1 addition & 1 deletion trunk/drivers/staging/brcm80211/brcmsmac/wlc_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ static uint wlc_attach_module(struct wlc_info *wlc)
uint unit;
unit = wlc->pub->unit;

wlc->asi = wlc_antsel_attach(wlc, wlc->osh, wlc->pub, wlc->hw);
wlc->asi = wlc_antsel_attach(wlc);
if (wlc->asi == NULL) {
WL_ERROR("wl%d: wlc_attach: wlc_antsel_attach failed\n", unit);
err = 44;
Expand Down

0 comments on commit 3dc887d

Please sign in to comment.