Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219818
b: refs/heads/master
c: 90ea229
h: refs/heads/master
v: v3
  • Loading branch information
Jason Cooper authored and Greg Kroah-Hartman committed Sep 14, 2010
1 parent 490d4a6 commit 4d644c9
Show file tree
Hide file tree
Showing 22 changed files with 285 additions and 285 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: a2627bc06580ffe1115b24a1dcce52924f157955
refs/heads/master: 90ea22962c5160812c601a115fb7b80c60d49fad
4 changes: 2 additions & 2 deletions trunk/drivers/staging/brcm80211/include/bcmnvram.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ extern int BCMINITFN(nvram_resetgpio_init) (void *sih);
static INLINE int nvram_match(char *name, char *match)
{
const char *value = nvram_get(name);
return (value && !strcmp(value, match));
return value && !strcmp(value, match);
}

/*
Expand All @@ -107,7 +107,7 @@ static INLINE int nvram_match(char *name, char *match)
static INLINE int nvram_invmatch(char *name, char *invmatch)
{
const char *value = nvram_get(name);
return (value && strcmp(value, invmatch));
return value && strcmp(value, invmatch);
}

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/brcm80211/include/bitfuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static INLINE uint32 find_msbit(uint32 x)
if (temp_x & DB_POW_MASK1) {
msbit += 1;
}
return (msbit);
return msbit;
}

#endif /* USE_PENTIUM_BSR && __GNUC__ */
Expand Down
28 changes: 14 additions & 14 deletions trunk/drivers/staging/brcm80211/phy/wlc_phy_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,22 @@ char *phy_getvar(phy_info_t *pi, const char *name)

for (s = vars; s && *s;) {
if ((bcmp(s, name, len) == 0) && (s[len] == '='))
return (&s[len + 1]);
return &s[len + 1];

while (*s++) ;
}

return (nvram_get(name));
return nvram_get(name);
}

int phy_getintvar(phy_info_t *pi, const char *name)
{
char *val;

if ((val = PHY_GETVAR(pi, name)) == NULL)
return (0);
return 0;

return (bcm_strtoul(val, NULL, 0));
return bcm_strtoul(val, NULL, 0);
}

void wlc_phyreg_enter(wlc_phy_t *pih)
Expand Down Expand Up @@ -216,7 +216,7 @@ uint16 read_radio_reg(phy_info_t *pi, uint16 addr)
return 0xffff;

if (NORADIO_ENAB(pi->pubpi))
return (NORADIO_IDCODE & 0xffff);
return NORADIO_IDCODE & 0xffff;

switch (pi->pubpi.phy_type) {
case PHY_TYPE_N:
Expand Down Expand Up @@ -303,7 +303,7 @@ static uint32 read_radio_id(phy_info_t *pi)
uint32 id;

if (NORADIO_ENAB(pi->pubpi))
return (NORADIO_IDCODE);
return NORADIO_IDCODE;

if (D11REV_GE(pi->sh->corerev, 24)) {
uint32 b0, b1, b2;
Expand Down Expand Up @@ -415,7 +415,7 @@ uint16 read_phy_reg(phy_info_t *pi, uint16 addr)
|| D11REV_IS(pi->sh->corerev, 12)) || wlc_phy_war41476(pi));

pi->phy_wreg = 0;
return (R_REG(osh, &regs->phyregdata));
return R_REG(osh, &regs->phyregdata);
}

void write_phy_reg(phy_info_t *pi, uint16 addr, uint16 val)
Expand Down Expand Up @@ -1514,8 +1514,8 @@ int wlc_phy_channel2freq(uint channel)

for (i = 0; i < ARRAYSIZE(chan_info_all); i++)
if (chan_info_all[i].chan == channel)
return (chan_info_all[i].freq);
return (0);
return chan_info_all[i].freq;
return 0;
}

void
Expand Down Expand Up @@ -1599,7 +1599,7 @@ int wlc_phy_txpower_get(wlc_phy_t *ppi, uint *qdbm, bool *override)
*qdbm = pi->tx_user_target[0];
if (override != NULL)
*override = pi->txpwroverride;
return (0);
return 0;
}

void wlc_phy_txpower_target_set(wlc_phy_t *ppi, struct txpwr_limits *txpwr)
Expand Down Expand Up @@ -1687,7 +1687,7 @@ int wlc_phy_txpower_set(wlc_phy_t *ppi, uint qdbm, bool override)
wlapi_enable_mac(pi->sh->physhim);
}
}
return (0);
return 0;
}

void
Expand Down Expand Up @@ -2309,7 +2309,7 @@ static uint32 wlc_phy_txpower_est_power_nphy(phy_info_t *pi)

est_pwr =
(uint32) ((pwr0 << 24) | (pwr1 << 16) | (adj_pwr0 << 8) | adj_pwr1);
return (est_pwr);
return est_pwr;
}

void
Expand Down Expand Up @@ -2421,7 +2421,7 @@ bool wlc_phy_test_ison(wlc_phy_t *ppi)
{
phy_info_t *pi = (phy_info_t *) ppi;

return (pi->phytest_on);
return pi->phytest_on;
}

bool wlc_phy_ant_rxdiv_get(wlc_phy_t *ppi, uint8 *pval)
Expand Down Expand Up @@ -3440,7 +3440,7 @@ bool wlc_phy_txpower_ipa_ison(wlc_phy_t *ppi)
phy_info_t *pi = (phy_info_t *) ppi;

if (ISNPHY(pi))
return (wlc_phy_n_txpower_ipa_ison(pi));
return wlc_phy_n_txpower_ipa_ison(pi);
else
return 0;
}
20 changes: 10 additions & 10 deletions trunk/drivers/staging/brcm80211/phy/wlc_phy_n.c
Original file line number Diff line number Diff line change
Expand Up @@ -15125,7 +15125,7 @@ uint8 wlc_phy_rxcore_getstate_nphy(wlc_phy_t *pih)
regval = read_phy_reg(pi, 0xa2);
rxen_bits = (regval >> 4) & 0xf;

return ((uint8) rxen_bits);
return (uint8) rxen_bits;
}

bool wlc_phy_n_txpower_ipa_ison(phy_info_t *pi)
Expand Down Expand Up @@ -18336,9 +18336,9 @@ static uint16 wlc_phy_radio205x_rcal(phy_info_t *pi)
write_radio_reg(pi, RADIO_2056_SYN_PLL_MAST2 | RADIO_2056_SYN,
savereg);

return (rcal_reg & 0x1f);
return rcal_reg & 0x1f;
}
return (rcal_reg & 0x3e);
return rcal_reg & 0x3e;
}

static void
Expand Down Expand Up @@ -18620,7 +18620,7 @@ static uint16 wlc_phy_radio2057_rccal(phy_info_t *pi)

write_radio_reg(pi, RADIO_2057_RCCAL_START_R1_Q1_P1, 0x15);

return (rccal_valid);
return rccal_valid;
}

static void
Expand Down Expand Up @@ -20902,7 +20902,7 @@ wlc_phy_poll_rssi_nphy(phy_info_t *pi, uint8 rssi_type, int32 *rssi_buf,
write_phy_reg(pi, 0x7d, rfctrlrssiothers2_save);
}

return (rssi_out_val);
return rssi_out_val;
}

int16 wlc_phy_tempsense_nphy(phy_info_t *pi)
Expand Down Expand Up @@ -21185,7 +21185,7 @@ int16 wlc_phy_tempsense_nphy(phy_info_t *pi)
write_phy_reg(pi, 0xa5, afectrlOverride_save);
}

return ((int16) radio_temp[0] + offset);
return (int16) radio_temp[0] + offset;
}

static void
Expand Down Expand Up @@ -22719,7 +22719,7 @@ nphy_txgains_t wlc_phy_get_tx_gain_nphy(phy_info_t *pi)
}
}

return (target_gain);
return target_gain;
}

static void
Expand Down Expand Up @@ -25759,7 +25759,7 @@ wlc_phy_rc_sweep_nphy(phy_info_t *pi, uint8 core_idx, uint8 loopback_type)

pi->nphy_anarxlpf_adjusted = FALSE;

return (best_rccal_val - 0x80);
return best_rccal_val - 0x80;
}

#define WAIT_FOR_SCOPE 4000000
Expand Down Expand Up @@ -28718,8 +28718,8 @@ static void wlc_phy_txpwrctrl_pwr_setup_nphy(phy_info_t *pi)

static bool wlc_phy_txpwr_ison_nphy(phy_info_t *pi)
{
return (read_phy_reg((pi), 0x1e7) & ((0x1 << 15) |
(0x1 << 14) | (0x1 << 13)));
return read_phy_reg((pi), 0x1e7) & ((0x1 << 15) |
(0x1 << 14) | (0x1 << 13));
}

static uint8 wlc_phy_txpwr_idx_cur_get_nphy(phy_info_t *pi, uint8 core)
Expand Down
30 changes: 15 additions & 15 deletions trunk/drivers/staging/brcm80211/sys/wl_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ static int wl_set_hint(wl_info_t *wl, char *abbrev)
{
WL_ERROR(("%s: Sending country code %c%c to MAC80211\n", __func__,
abbrev[0], abbrev[1]));
return (regulatory_hint(wl->pub->ieee_hw->wiphy, abbrev));
return regulatory_hint(wl->pub->ieee_hw->wiphy, abbrev);
}

/**
Expand Down Expand Up @@ -1403,7 +1403,7 @@ static int ieee_hw_rate_init(struct ieee80211_hw *hw)
hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &wl_band_2GHz_nphy;
} else {
BUG();
return (-1);
return -1;
}

/* Assume all bands use the same phy. True for 11n devices. */
Expand All @@ -1417,13 +1417,13 @@ static int ieee_hw_rate_init(struct ieee80211_hw *hw)
hw->wiphy->bands[IEEE80211_BAND_5GHZ] =
&wl_band_5GHz_nphy;
} else {
return (-1);
return -1;
}
}

WL_NONE(("%s: 2ghz = %d, 5ghz = %d\n", __func__, 1, has_5g));

return (0);
return 0;
}

static int ieee_hw_init(struct ieee80211_hw *hw)
Expand All @@ -1449,7 +1449,7 @@ static int ieee_hw_init(struct ieee80211_hw *hw)
hw->rate_control_algorithm = "minstrel_ht";

hw->sta_data_size = sizeof(struct scb);
return (ieee_hw_rate_init(hw));
return ieee_hw_rate_init(hw);
}

#ifndef BCMSDIO
Expand Down Expand Up @@ -1478,14 +1478,14 @@ wl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
(((pdev->device & 0xff00) != 0x4300) &&
((pdev->device & 0xff00) != 0x4700) &&
((pdev->device < 43000) || (pdev->device > 43999))))
return (-ENODEV);
return -ENODEV;

rc = pci_enable_device(pdev);
if (rc) {
WL_ERROR(("%s: Cannot enable device %d-%d_%d\n", __func__,
pdev->bus->number, PCI_SLOT(pdev->devfn),
PCI_FUNC(pdev->devfn)));
return (-ENODEV);
return -ENODEV;
}
pci_set_master(pdev);

Expand Down Expand Up @@ -1574,7 +1574,7 @@ static int wl_resume(struct pci_dev *pdev)
err = wl_up(wl);
WL_UNLOCK(wl);

return (err);
return err;
}
#endif /* LINUXSTA_PS */

Expand Down Expand Up @@ -1657,7 +1657,7 @@ static int __init wl_module_init(void)

#ifndef BCMSDIO
if (!(error = pci_module_init(&wl_pci_driver)))
return (0);
return 0;

#endif /* !BCMSDIO */

Expand All @@ -1671,7 +1671,7 @@ static int __init wl_module_init(void)
}
#endif /* WLC_HIGH_ONLY */

return (error);
return error;
}

/**
Expand Down Expand Up @@ -1809,7 +1809,7 @@ wl_start_int(wl_info_t *wl, struct ieee80211_hw *hw, struct sk_buff *skb)
#ifdef WLC_HIGH_ONLY
WL_UNLOCK(wl);
#endif
return (NETDEV_TX_OK);
return NETDEV_TX_OK;
}

void wl_txflowcontrol(wl_info_t *wl, struct wl_if *wlif, bool state, int prio)
Expand Down Expand Up @@ -1865,7 +1865,7 @@ uint wl_reset(wl_info_t *wl)
/* dpc will not be rescheduled */
wl->resched = 0;

return (0);
return 0;
}

/*
Expand Down Expand Up @@ -1919,11 +1919,11 @@ int wl_up(wl_info_t *wl)
int error = 0;

if (wl->pub->up)
return (0);
return 0;

error = wlc_up(wl->wlc);

return (error);
return error;
}

void wl_down(wl_info_t *wl)
Expand Down Expand Up @@ -2254,7 +2254,7 @@ static int BCMFASTPATH wl_start(struct sk_buff *skb, wl_info_t *wl)

TXQ_UNLOCK(wl, flags);

return (0);
return 0;

}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/brcm80211/sys/wlc_ampdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static INLINE uint16 pkt_txh_seqnum(wlc_info_t *wlc, void *p)
struct dot11_header *h;
txh = (d11txh_t *) PKTDATA(p);
h = (struct dot11_header *)((uint8 *) (txh + 1) + D11_PHY_HDR_LEN);
return (ltoh16(h->seq) >> SEQNUM_SHIFT);
return ltoh16(h->seq) >> SEQNUM_SHIFT;
}

ampdu_info_t *BCMATTACHFN(wlc_ampdu_attach) (wlc_info_t *wlc)
Expand Down Expand Up @@ -1400,7 +1400,7 @@ void wlc_ampdu_macaddr_upd(wlc_info_t *wlc)

bool wlc_aggregatable(wlc_info_t *wlc, uint8 tid)
{
return (wlc->ampdu->ini_enable[tid]);
return wlc->ampdu->ini_enable[tid];
}

void wlc_ampdu_shm_upd(ampdu_info_t *ampdu)
Expand Down
Loading

0 comments on commit 4d644c9

Please sign in to comment.