Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277629
b: refs/heads/master
c: a8bc491
h: refs/heads/master
i:
  277627: fc07798
v: v3
  • Loading branch information
Roland Vossen authored and John W. Linville committed Nov 8, 2011
1 parent 79725e5 commit 1ef01de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 43ac09722f8e8f69cb528877c4b853cf9b96d9d7
refs/heads/master: a8bc4917ed6bd6101569630708baaac14504ab8c
16 changes: 8 additions & 8 deletions trunk/drivers/net/wireless/brcm80211/brcmsmac/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2452,6 +2452,7 @@ static void brcms_b_tx_fifo_resume(struct brcms_hardware *wlc_hw,
}
}

/* precondition: requires the mac core to be enabled */
static void brcms_b_mute(struct brcms_hardware *wlc_hw, bool on, u32 flags)
{
static const u8 null_ether_addr[ETH_ALEN] = {0, 0, 0, 0, 0, 0};
Expand Down Expand Up @@ -3354,8 +3355,7 @@ static void brcms_b_coreinit(struct brcms_c_info *wlc)
}

void
static brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec,
bool mute) {
static brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec) {
u32 macintmask;
bool fastclk;
struct brcms_c_info *wlc = wlc_hw->wlc;
Expand All @@ -3380,10 +3380,6 @@ static brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec,
/* core-specific initialization */
brcms_b_coreinit(wlc);

/* suspend the tx fifos and mute the phy for preism cac time */
if (mute)
brcms_b_mute(wlc_hw, ON, PHY_MUTE_FOR_PREISM);

/* band-specific inits */
brcms_b_bsinit(wlc, chanspec);

Expand Down Expand Up @@ -8261,7 +8257,7 @@ void brcms_c_init(struct brcms_c_info *wlc)
{
struct d11regs __iomem *regs;
u16 chanspec;
bool mute = false;
bool mute_tx = false;

BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit);

Expand All @@ -8277,7 +8273,7 @@ void brcms_c_init(struct brcms_c_info *wlc)
else
chanspec = brcms_c_init_chanspec(wlc);

brcms_b_init(wlc->hw, chanspec, mute);
brcms_b_init(wlc->hw, chanspec);

/* update beacon listen interval */
brcms_c_bcn_li_upd(wlc);
Expand Down Expand Up @@ -8343,6 +8339,10 @@ void brcms_c_init(struct brcms_c_info *wlc)
/* ..now really unleash hell (allow the MAC out of suspend) */
brcms_c_enable_mac(wlc);

/* suspend the tx fifos and mute the phy for preism cac time */
if (mute_tx)
brcms_b_mute(wlc->hw, ON, PHY_MUTE_FOR_PREISM);

/* clear tx flow control */
brcms_c_txflowcontrol_reset(wlc);

Expand Down

0 comments on commit 1ef01de

Please sign in to comment.