Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277630
b: refs/heads/master
c: c6c4489
h: refs/heads/master
v: v3
  • Loading branch information
Roland Vossen authored and John W. Linville committed Nov 8, 2011
1 parent 1ef01de commit e143ac3
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: a8bc4917ed6bd6101569630708baaac14504ab8c
refs/heads/master: c6c44893c864429a7c6a4f7942dfb3ee182b4ad1
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 @@ -2453,11 +2453,11 @@ 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 void brcms_b_mute(struct brcms_hardware *wlc_hw, bool mute_tx)
{
static const u8 null_ether_addr[ETH_ALEN] = {0, 0, 0, 0, 0, 0};

if (on) {
if (mute_tx) {
/* suspend tx fifos */
brcms_b_tx_fifo_suspend(wlc_hw, TX_DATA_FIFO);
brcms_b_tx_fifo_suspend(wlc_hw, TX_CTL_FIFO);
Expand All @@ -2479,9 +2479,9 @@ static void brcms_b_mute(struct brcms_hardware *wlc_hw, bool on, u32 flags)
wlc_hw->etheraddr);
}

wlc_phy_mute_upd(wlc_hw->band->pi, on, flags);
wlc_phy_mute_upd(wlc_hw->band->pi, mute_tx, 0);

if (on)
if (mute_tx)
brcms_c_ucode_mute_override_set(wlc_hw);
else
brcms_c_ucode_mute_override_clear(wlc_hw);
Expand Down Expand Up @@ -3892,7 +3892,7 @@ static void brcms_c_set_home_chanspec(struct brcms_c_info *wlc, u16 chanspec)

void
brcms_b_set_chanspec(struct brcms_hardware *wlc_hw, u16 chanspec,
bool mute, struct txpwr_limits *txpwr)
bool mute_tx, struct txpwr_limits *txpwr)
{
uint bandunit;

Expand All @@ -3918,7 +3918,7 @@ brcms_b_set_chanspec(struct brcms_hardware *wlc_hw, u16 chanspec,
}
}

wlc_phy_initcal_enable(wlc_hw->band->pi, !mute);
wlc_phy_initcal_enable(wlc_hw->band->pi, !mute_tx);

if (!wlc_hw->up) {
if (wlc_hw->clk)
Expand All @@ -3930,7 +3930,7 @@ brcms_b_set_chanspec(struct brcms_hardware *wlc_hw, u16 chanspec,
wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, chanspec);

/* Update muting of the channel */
brcms_b_mute(wlc_hw, mute, 0);
brcms_b_mute(wlc_hw, mute_tx);
}
}

Expand Down Expand Up @@ -8341,7 +8341,7 @@ void brcms_c_init(struct brcms_c_info *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);
brcms_b_mute(wlc->hw, true);

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

0 comments on commit e143ac3

Please sign in to comment.