summaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/sys
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-10-12 12:50:15 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-12 12:50:15 -0700
commit0965ae88aff802ff48fa2f35fff29feff2754962 (patch)
tree3ec8ec9a19769e2ef90cbf967e85d8074921a35e /drivers/staging/brcm80211/sys
parent0f0881b09078fe3a6bc70f05e8ba49a52b2478a2 (diff)
downloadop-kernel-dev-0965ae88aff802ff48fa2f35fff29feff2754962.zip
op-kernel-dev-0965ae88aff802ff48fa2f35fff29feff2754962.tar.gz
Staging: brcm80211: remove FALSE #define
use the kernel provided 'false' value instead, especially as we are using a 'bool' for these variables. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/sys')
-rw-r--r--drivers/staging/brcm80211/sys/wl_export.h2
-rw-r--r--drivers/staging/brcm80211/sys/wl_mac80211.c20
-rw-r--r--drivers/staging/brcm80211/sys/wlc_ampdu.c64
-rw-r--r--drivers/staging/brcm80211/sys/wlc_antsel.c6
-rw-r--r--drivers/staging/brcm80211/sys/wlc_bmac.c106
-rw-r--r--drivers/staging/brcm80211/sys/wlc_channel.c30
-rw-r--r--drivers/staging/brcm80211/sys/wlc_event.c20
-rw-r--r--drivers/staging/brcm80211/sys/wlc_key.h2
-rw-r--r--drivers/staging/brcm80211/sys/wlc_mac80211.c214
-rw-r--r--drivers/staging/brcm80211/sys/wlc_mac80211.h4
-rw-r--r--drivers/staging/brcm80211/sys/wlc_rate.c10
-rw-r--r--drivers/staging/brcm80211/sys/wlc_rpctx.h4
-rw-r--r--drivers/staging/brcm80211/sys/wlc_stf.c8
13 files changed, 245 insertions, 245 deletions
diff --git a/drivers/staging/brcm80211/sys/wl_export.h b/drivers/staging/brcm80211/sys/wl_export.h
index f382ee9..08442f8 100644
--- a/drivers/staging/brcm80211/sys/wl_export.h
+++ b/drivers/staging/brcm80211/sys/wl_export.h
@@ -50,7 +50,7 @@ extern uint wl_buf_to_pktcopy(osl_t *osh, void *p, unsigned char *buf, int len,
extern void *wl_get_pktbuffer(osl_t *osh, int len);
extern int wl_set_pktlen(osl_t *osh, void *p, int len);
-#define wl_sort_bsslist(a, b) FALSE
+#define wl_sort_bsslist(a, b) false
extern int wl_tkip_miccheck(struct wl_info *wl, void *p, int hdr_len,
bool group_key, int id);
diff --git a/drivers/staging/brcm80211/sys/wl_mac80211.c b/drivers/staging/brcm80211/sys/wl_mac80211.c
index 7a3116b..c004a0b 100644
--- a/drivers/staging/brcm80211/sys/wl_mac80211.c
+++ b/drivers/staging/brcm80211/sys/wl_mac80211.c
@@ -1373,7 +1373,7 @@ static int wl_suspend(struct pci_dev *pdev, pm_message_t state)
WL_LOCK(wl);
wl_down(wl);
- wl->pub->hw_up = FALSE;
+ wl->pub->hw_up = false;
WL_UNLOCK(wl);
pci_save_state(pdev, wl->pci_psstate);
pci_disable_device(pdev);
@@ -1802,7 +1802,7 @@ irqreturn_t BCMFASTPATH wl_isr(int irq, void *dev_id)
/* ...and call the second level interrupt handler */
/* schedule dpc */
- ASSERT(wl->resched == FALSE);
+ ASSERT(wl->resched == false);
tasklet_schedule(&wl->tasklet);
}
}
@@ -1901,7 +1901,7 @@ static void _wl_timer(wl_timer_t *t)
add_timer(&t->timer);
t->set = true;
} else
- t->set = FALSE;
+ t->set = false;
t->fn(t->arg);
}
@@ -1964,13 +1964,13 @@ void wl_add_timer(wl_info_t *wl, wl_timer_t *t, uint ms, int periodic)
add_timer(&t->timer);
}
-/* return true if timer successfully deleted, FALSE if still pending */
+/* return true if timer successfully deleted, false if still pending */
bool wl_del_timer(wl_info_t *wl, wl_timer_t *t)
{
if (t->set) {
- t->set = FALSE;
+ t->set = false;
if (!del_timer(&t->timer)) {
- return FALSE;
+ return false;
}
atomic_dec(&wl->callbacks);
}
@@ -2080,7 +2080,7 @@ static int BCMFASTPATH wl_start(struct sk_buff *skb, wl_info_t *wl)
}
wl->txq_tail = skb;
- if (wl->txq_dispatched == FALSE) {
+ if (wl->txq_dispatched == false) {
wl->txq_dispatched = true;
if (schedule_work(&wl->txq_task.work)) {
@@ -2133,7 +2133,7 @@ static void wl_start_txqwork(struct wl_task *task)
atomic_dec(&wl->callbacks);
}
} else {
- wl->txq_dispatched = FALSE;
+ wl->txq_dispatched = false;
TXQ_UNLOCK(wl, flags);
atomic_dec(&wl->callbacks);
}
@@ -2200,7 +2200,7 @@ static void wl_rpcq_dispatch(struct wl_task *task)
RPCQ_LOCK(wl, flags);
}
- wl->rpcq_dispatched = FALSE;
+ wl->rpcq_dispatched = false;
RPCQ_UNLOCK(wl, flags);
@@ -2223,7 +2223,7 @@ static void wl_rpcq_add(wl_info_t *wl, rpc_buf_t *buf)
wl->rpcq_tail = buf;
- if (wl->rpcq_dispatched == FALSE) {
+ if (wl->rpcq_dispatched == false) {
wl->rpcq_dispatched = true;
wl_schedule_task(wl, wl_rpcq_dispatch, wl);
}
diff --git a/drivers/staging/brcm80211/sys/wlc_ampdu.c b/drivers/staging/brcm80211/sys/wlc_ampdu.c
index 796848f..bf8597d 100644
--- a/drivers/staging/brcm80211/sys/wlc_ampdu.c
+++ b/drivers/staging/brcm80211/sys/wlc_ampdu.c
@@ -190,12 +190,12 @@ ampdu_info_t *wlc_ampdu_attach(wlc_info_t *wlc)
for (i = 0; i < AMPDU_MAX_SCB_TID; i++)
ampdu->ini_enable[i] = true;
/* Disable ampdu for VO by default */
- ampdu->ini_enable[PRIO_8021D_VO] = FALSE;
- ampdu->ini_enable[PRIO_8021D_NC] = FALSE;
+ ampdu->ini_enable[PRIO_8021D_VO] = false;
+ ampdu->ini_enable[PRIO_8021D_NC] = false;
/* Disable ampdu for BK by default since not enough fifo space */
- ampdu->ini_enable[PRIO_8021D_NONE] = FALSE;
- ampdu->ini_enable[PRIO_8021D_BK] = FALSE;
+ ampdu->ini_enable[PRIO_8021D_NONE] = false;
+ ampdu->ini_enable[PRIO_8021D_BK] = false;
ampdu->ba_tx_wsize = AMPDU_TX_BA_DEF_WSIZE;
ampdu->ba_rx_wsize = AMPDU_RX_BA_DEF_WSIZE;
@@ -223,7 +223,7 @@ ampdu_info_t *wlc_ampdu_attach(wlc_info_t *wlc)
}
ampdu_update_max_txlen(ampdu, ampdu->dur);
- ampdu->mfbr = FALSE;
+ ampdu->mfbr = false;
/* try to set ampdu to the default value */
wlc_ampdu_set(ampdu, wlc->pub->_ampdu);
@@ -261,7 +261,7 @@ void scb_ampdu_cleanup(ampdu_info_t *ampdu, struct scb *scb)
ASSERT(scb_ampdu);
for (tid = 0; tid < AMPDU_MAX_SCB_TID; tid++) {
- ampdu_cleanup_tid_ini(ampdu, scb_ampdu, tid, FALSE);
+ ampdu_cleanup_tid_ini(ampdu, scb_ampdu, tid, false);
}
}
@@ -335,7 +335,7 @@ static void wlc_ffpld_init(ampdu_info_t *ampdu)
static int wlc_ffpld_check_txfunfl(wlc_info_t *wlc, int fid)
{
ampdu_info_t *ampdu = wlc->ampdu;
- u32 phy_rate = MCS_RATE(FFPLD_MAX_MCS, true, FALSE);
+ u32 phy_rate = MCS_RATE(FFPLD_MAX_MCS, true, false);
u32 txunfl_ratio;
u8 max_mpdu;
u32 current_ampdu_cnt = 0;
@@ -463,7 +463,7 @@ static void wlc_ffpld_calc_mcs2ampdu_table(ampdu_info_t *ampdu, int f)
/* note : we divide/multiply by 100 to avoid integer overflows */
max_mpdu =
min_t(u8, fifo->mcs2ampdu_table[FFPLD_MAX_MCS], AMPDU_NUM_MPDU_LEGACY);
- phy_rate = MCS_RATE(FFPLD_MAX_MCS, true, FALSE);
+ phy_rate = MCS_RATE(FFPLD_MAX_MCS, true, false);
dma_rate =
(((phy_rate / 100) *
(max_mpdu * FFPLD_MPDU_SIZE - fifo->ampdu_pld_size))
@@ -474,7 +474,7 @@ static void wlc_ffpld_calc_mcs2ampdu_table(ampdu_info_t *ampdu, int f)
dma_rate = dma_rate >> 7;
for (i = 0; i < FFPLD_MAX_MCS; i++) {
/* shifting to keep it within integer range */
- phy_rate = MCS_RATE(i, true, FALSE) >> 7;
+ phy_rate = MCS_RATE(i, true, false) >> 7;
if (phy_rate > dma_rate) {
tmp = ((fifo->ampdu_pld_size * phy_rate) /
((phy_rate - dma_rate) * FFPLD_MPDU_SIZE)) + 1;
@@ -496,7 +496,7 @@ wlc_ampdu_agg(ampdu_info_t *ampdu, struct scb *scb, void *p, uint prec)
/* initialize initiator on first packet; sends addba req */
ini = SCB_AMPDU_INI(scb_ampdu, tid);
if (ini->magic != INI_MAGIC) {
- ini = wlc_ampdu_init_tid_ini(ampdu, scb_ampdu, tid, FALSE);
+ ini = wlc_ampdu_init_tid_ini(ampdu, scb_ampdu, tid, false);
}
return;
}
@@ -514,7 +514,7 @@ wlc_sendampdu(ampdu_info_t *ampdu, wlc_txq_info_t *qi, void **pdu, int prec)
u8 rts_preamble_type = WLC_LONG_PREAMBLE;
u8 rts_fbr_preamble_type = WLC_LONG_PREAMBLE;
- bool rr = true, fbr = FALSE;
+ bool rr = true, fbr = false;
uint i, count = 0, fifo, seg_cnt = 0;
u16 plen, len, seq = 0, mcl, mch, index, frameid, dma_len = 0;
u32 ampdu_len, maxlen = 0;
@@ -525,7 +525,7 @@ wlc_sendampdu(ampdu_info_t *ampdu, wlc_txq_info_t *qi, void **pdu, int prec)
scb_ampdu_t *scb_ampdu;
scb_ampdu_tid_ini_t *ini;
u8 mcs = 0;
- bool use_rts = FALSE, use_cts = FALSE;
+ bool use_rts = false, use_cts = false;
ratespec_t rspec = 0, rspec_fallback = 0;
ratespec_t rts_rspec = 0, rts_rspec_fallback = 0;
u16 mimo_ctlchbw = PHY_TXC1_BW_20MHZ;
@@ -619,11 +619,11 @@ wlc_sendampdu(ampdu_info_t *ampdu, wlc_txq_info_t *qi, void **pdu, int prec)
if (txrate[0].count <= rr_retry_limit) {
txrate[0].count++;
rr = true;
- fbr = FALSE;
+ fbr = false;
ASSERT(!fbr);
} else {
fbr = true;
- rr = FALSE;
+ rr = false;
txrate[1].count++;
}
@@ -729,17 +729,17 @@ wlc_sendampdu(ampdu_info_t *ampdu, wlc_txq_info_t *qi, void **pdu, int prec)
if (use_rts || use_cts) {
rts_rspec =
- wlc_rspec_to_rts_rspec(wlc, rspec, FALSE,
+ wlc_rspec_to_rts_rspec(wlc, rspec, false,
mimo_ctlchbw);
rts_rspec_fallback =
wlc_rspec_to_rts_rspec(wlc, rspec_fallback,
- FALSE, mimo_ctlchbw);
+ false, mimo_ctlchbw);
}
}
/* if (first mpdu for host agg) */
/* test whether to add more */
- if ((MCS_RATE(mcs, true, FALSE) >= f->dmaxferrate) &&
+ if ((MCS_RATE(mcs, true, false) >= f->dmaxferrate) &&
(count == f->mcs2ampdu_table[mcs])) {
WL_AMPDU_ERR(("wl%d: PR 37644: stopping ampdu at %d for mcs %d", wlc->pub->unit, count, mcs));
break;
@@ -831,7 +831,7 @@ wlc_sendampdu(ampdu_info_t *ampdu, wlc_txq_info_t *qi, void **pdu, int prec)
}
/* set the preload length */
- if (MCS_RATE(mcs, true, FALSE) >= f->dmaxferrate) {
+ if (MCS_RATE(mcs, true, false) >= f->dmaxferrate) {
dma_len = min(dma_len, f->ampdu_pld_size);
txh->PreloadSize = htol16(dma_len);
} else
@@ -899,7 +899,7 @@ wlc_sendampdu(ampdu_info_t *ampdu, wlc_txq_info_t *qi, void **pdu, int prec)
#ifdef WLC_HIGH_ONLY
if (wlc->rpc_agg & BCM_RPC_TP_HOST_AGG_AMPDU)
bcm_rpc_tp_agg_set(bcm_rpc_tp_get(wlc->rpc),
- BCM_RPC_TP_HOST_AGG_AMPDU, FALSE);
+ BCM_RPC_TP_HOST_AGG_AMPDU, false);
#endif
}
@@ -990,7 +990,7 @@ void wlc_ampdu_txstatus_complete(ampdu_info_t *ampdu, u32 s1, u32 s2)
ampdu->p = NULL;
}
- ampdu->waiting_status = FALSE;
+ ampdu->waiting_status = false;
}
#endif /* WLC_HIGH_ONLY */
void rate_status(wlc_info_t *wlc, struct ieee80211_tx_info *tx_info,
@@ -1028,10 +1028,10 @@ wlc_ampdu_dotxstatus_complete(ampdu_info_t *ampdu, struct scb *scb, void *p,
struct dot11_header *h;
u16 seq, start_seq = 0, bindex, index, mcl;
u8 mcs = 0;
- bool ba_recd = FALSE, ack_recd = FALSE;
+ bool ba_recd = false, ack_recd = false;
u8 suc_mpdu = 0, tot_mpdu = 0;
uint supr_status;
- bool update_rate = true, retry = true, tx_error = FALSE;
+ bool update_rate = true, retry = true, tx_error = false;
u16 mimoantsel = 0;
u8 antselid = 0;
u8 retry_limit, rr_retry_limit;
@@ -1064,7 +1064,7 @@ wlc_ampdu_dotxstatus_complete(ampdu_info_t *ampdu, struct scb *scb, void *p,
if (txs->status & TX_STATUS_ACK_RCV) {
if (TX_STATUS_SUPR_UF == supr_status) {
- update_rate = FALSE;
+ update_rate = false;
}
ASSERT(txs->status & TX_STATUS_INTERMEDIATE);
@@ -1091,7 +1091,7 @@ wlc_ampdu_dotxstatus_complete(ampdu_info_t *ampdu, struct scb *scb, void *p,
} else {
WLCNTINCR(ampdu->cnt->noba);
if (supr_status) {
- update_rate = FALSE;
+ update_rate = false;
if (supr_status == TX_STATUS_SUPR_BADCH) {
WL_ERROR(("%s: Pkt tx suppressed, illegal channel possibly %d\n", __func__, CHSPEC_CHANNEL(wlc->default_bss->chanspec)));
} else {
@@ -1104,7 +1104,7 @@ wlc_ampdu_dotxstatus_complete(ampdu_info_t *ampdu, struct scb *scb, void *p,
/* no need to retry for badch; will fail again */
if (supr_status == TX_STATUS_SUPR_BADCH ||
supr_status == TX_STATUS_SUPR_EXPTIME) {
- retry = FALSE;
+ retry = false;
WLCNTINCR(wlc->pub->_cnt->txchanrej);
} else if (supr_status == TX_STATUS_SUPR_EXPTIME) {
@@ -1126,7 +1126,7 @@ wlc_ampdu_dotxstatus_complete(ampdu_info_t *ampdu, struct scb *scb, void *p,
}
}
} else if (txs->phyerr) {
- update_rate = FALSE;
+ update_rate = false;
WLCNTINCR(wlc->pub->_cnt->txphyerr);
WL_ERROR(("wl%d: wlc_ampdu_dotxstatus: tx phy error (0x%x)\n", wlc->pub->unit, txs->phyerr));
@@ -1156,7 +1156,7 @@ wlc_ampdu_dotxstatus_complete(ampdu_info_t *ampdu, struct scb *scb, void *p,
}
index = TX_SEQ_TO_INDEX(seq);
- ack_recd = FALSE;
+ ack_recd = false;
if (ba_recd) {
bindex = MODSUB_POW2(seq, start_seq, SEQNUM_MAX);
@@ -1296,7 +1296,7 @@ int wlc_ampdu_set(ampdu_info_t *ampdu, bool on)
{
wlc_info_t *wlc = ampdu->wlc;
- wlc->pub->_ampdu = FALSE;
+ wlc->pub->_ampdu = false;
if (on) {
if (!N_ENAB(wlc->pub)) {
@@ -1320,7 +1320,7 @@ bool wlc_ampdu_cap(ampdu_info_t *ampdu)
if (WLC_PHY_11N_CAP(ampdu->wlc->band))
return true;
else
- return FALSE;
+ return false;
}
static void ampdu_update_max_txlen(ampdu_info_t *ampdu, u8 dur)
@@ -1330,13 +1330,13 @@ static void ampdu_update_max_txlen(ampdu_info_t *ampdu, u8 dur)
for (mcs = 0; mcs < MCS_TABLE_SIZE; mcs++) {
/* rate is in Kbps; dur is in msec ==> len = (rate * dur) / 8 */
/* 20MHz, No SGI */
- rate = MCS_RATE(mcs, FALSE, FALSE);
+ rate = MCS_RATE(mcs, false, false);
ampdu->max_txlen[mcs][0][0] = (rate * dur) >> 3;
/* 40 MHz, No SGI */
- rate = MCS_RATE(mcs, true, FALSE);
+ rate = MCS_RATE(mcs, true, false);
ampdu->max_txlen[mcs][1][0] = (rate * dur) >> 3;
/* 20MHz, SGI */
- rate = MCS_RATE(mcs, FALSE, true);
+ rate = MCS_RATE(mcs, false, true);
ampdu->max_txlen[mcs][0][1] = (rate * dur) >> 3;
/* 40 MHz, SGI */
rate = MCS_RATE(mcs, true, true);
diff --git a/drivers/staging/brcm80211/sys/wlc_antsel.c b/drivers/staging/brcm80211/sys/wlc_antsel.c
index 671a0aa..cecec82 100644
--- a/drivers/staging/brcm80211/sys/wlc_antsel.c
+++ b/drivers/staging/brcm80211/sys/wlc_antsel.c
@@ -105,7 +105,7 @@ antsel_info_t *wlc_antsel_attach(wlc_info_t *wlc, osl_t *osh,
asi->wlc = wlc;
asi->pub = pub;
asi->antsel_type = ANTSEL_NA;
- asi->antsel_avail = FALSE;
+ asi->antsel_avail = false;
asi->antsel_antswitch = (u8) getintvar(asi->pub->vars, "antswitch");
if ((asi->pub->sromrev >= 4) && (asi->antsel_antswitch != 0)) {
@@ -124,9 +124,9 @@ antsel_info_t *wlc_antsel_attach(wlc_info_t *wlc, osl_t *osh,
3)
|| ((u16) getintvar(asi->pub->vars, "aa5g")
== 3)) {
- asi->antsel_avail = FALSE;
+ asi->antsel_avail = false;
} else {
- asi->antsel_avail = FALSE;
+ asi->antsel_avail = false;
WL_ERROR(("wlc_antsel_attach: 2o3 board cfg invalid\n"));
ASSERT(0);
}
diff --git a/drivers/staging/brcm80211/sys/wlc_bmac.c b/drivers/staging/brcm80211/sys/wlc_bmac.c
index 335c8db..61c6d2f 100644
--- a/drivers/staging/brcm80211/sys/wlc_bmac.c
+++ b/drivers/staging/brcm80211/sys/wlc_bmac.c
@@ -266,7 +266,7 @@ static u32 WLBANDINITFN(wlc_setband_inact) (wlc_info_t *wlc, uint bandunit)
/* Process received frames */
/*
- * Return true if more frames need to be processed. FALSE otherwise.
+ * Return true if more frames need to be processed. false otherwise.
* Param 'bound' indicates max. # frames to process before break out.
*/
static bool BCMFASTPATH
@@ -321,7 +321,7 @@ wlc_bmac_recv(wlc_hw_info_t *wlc_hw, uint fifo, bool bound)
}
/* second-level interrupt processing
- * Return true if another dpc needs to be re-scheduled. FALSE otherwise.
+ * Return true if another dpc needs to be re-scheduled. false otherwise.
* Param 'bounded' indicates if applicable loops should be bounded.
*/
bool BCMFASTPATH wlc_dpc(wlc_info_t *wlc, bool bounded)
@@ -329,12 +329,12 @@ bool BCMFASTPATH wlc_dpc(wlc_info_t *wlc, bool bounded)
u32 macintstatus;
wlc_hw_info_t *wlc_hw = wlc->hw;
d11regs_t *regs = wlc_hw->regs;
- bool fatal = FALSE;
+ bool fatal = false;
if (DEVICEREMOVED(wlc)) {
WL_ERROR(("wl%d: %s: dead chip\n", wlc_hw->unit, __func__));
wl_down(wlc->wl);
- return FALSE;
+ return false;
}
/* grab and clear the saved software intstatus bits */
@@ -594,7 +594,7 @@ static bool wlc_bmac_attach_dmapio(wlc_info_t *wlc, uint j, bool wme)
if (!wl_alloc_dma_resources(wlc_hw->wlc->wl, addrwidth)) {
WL_ERROR(("wl%d: wlc_attach: alloc_dma_resources failed\n", unit));
- return FALSE;
+ return false;
}
/*
@@ -668,7 +668,7 @@ static bool wlc_bmac_attach_dmapio(wlc_info_t *wlc, uint j, bool wme)
if (dma_attach_err) {
WL_ERROR(("wl%d: wlc_attach: dma_attach failed\n",
unit));
- return FALSE;
+ return false;
}
/* get pointer to dma engine tx flow control variable */
@@ -713,7 +713,7 @@ int wlc_bmac_attach(wlc_info_t *wlc, u16 vendor, u16 device, uint unit,
char *vars;
uint err = 0;
uint j;
- bool wme = FALSE;
+ bool wme = false;
shared_phy_params_t sha_params;
WL_TRACE(("wl%d: wlc_bmac_attach: vendor 0x%x device 0x%x\n", unit,
@@ -803,7 +803,7 @@ int wlc_bmac_attach(wlc_info_t *wlc, u16 vendor, u16 device, uint unit,
/* request fastclock and force fastclock for the rest of attach
* bring the d11 core out of reset.
- * For PMU chips, the first wlc_clkctl_clk is no-op since core-clk is still FALSE;
+ * For PMU chips, the first wlc_clkctl_clk is no-op since core-clk is still false;
* But it will be called again inside wlc_corereset, after d11 is out of reset.
*/
wlc_clkctl_clk(wlc_hw, CLK_FAST);
@@ -1009,7 +1009,7 @@ int wlc_bmac_attach(wlc_info_t *wlc, u16 vendor, u16 device, uint unit,
* or cores are in reset with clocks off, and the board PLLs
* are off if possible.
*
- * Beyond this point, wlc->sbclk == FALSE and chip registers
+ * Beyond this point, wlc->sbclk == false and chip registers
* should not be touched.
*********************************************************************
*/
@@ -1054,7 +1054,7 @@ void wlc_bmac_info_init(wlc_hw_info_t *wlc_hw)
wlc->defmacintmask = DEF_MACINTMASK;
/* various 802.11g modes */
- wlc_hw->shortslot = FALSE;
+ wlc_hw->shortslot = false;
wlc_hw->SFBL = RETRY_SHORT_FB;
wlc_hw->LFBL = RETRY_LONG_FB;
@@ -1287,15 +1287,15 @@ int wlc_bmac_down_finish(wlc_hw_info_t *wlc_hw)
if (!wlc_hw->up)
return callbacks;
- wlc_hw->up = FALSE;
- wlc_phy_hw_state_upd(wlc_hw->band->pi, FALSE);
+ wlc_hw->up = false;
+ wlc_phy_hw_state_upd(wlc_hw->band->pi, false);
dev_gone = DEVICEREMOVED(wlc_hw->wlc);
if (dev_gone) {
- wlc_hw->sbclk = FALSE;
- wlc_hw->clk = FALSE;
- wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, FALSE);
+ wlc_hw->sbclk = false;
+ wlc_hw->clk = false;
+ wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false);
/* reclaim any posted packets */
wlc_flushqueues(wlc_hw->wlc);
@@ -2042,7 +2042,7 @@ void wlc_bmac_phy_reset(wlc_hw_info_t *wlc_hw)
{
wlc_phy_t *pih = wlc_hw->band->pi;
u32 phy_bw_clkbits;
- bool phy_in_reset = FALSE;
+ bool phy_in_reset = false;
WL_TRACE(("wl%d: wlc_bmac_phy_reset\n", wlc_hw->unit));
@@ -2146,7 +2146,7 @@ static bool wlc_isgoodchip(wlc_hw_info_t *wlc_hw)
/* reject unsupported corerev */
if (!VALID_COREREV(wlc_hw->corerev)) {
WL_ERROR(("unsupported core rev %d\n", wlc_hw->corerev));
- return FALSE;
+ return false;
}
return true;
@@ -2158,7 +2158,7 @@ static bool wlc_validboardtype(wlc_hw_info_t *wlc_hw)
uint boardrev = wlc_hw->boardrev;
if (boardrev == 0)
- goodboard = FALSE;
+ goodboard = false;
else if (boardrev > 0xff) {
uint brt = (boardrev & 0xf000) >> 12;
uint b0 = (boardrev & 0xf00) >> 8;
@@ -2167,7 +2167,7 @@ static bool wlc_validboardtype(wlc_hw_info_t *wlc_hw)
if ((brt > 2) || (brt == 0) || (b0 > 9) || (b0 == 0) || (b1 > 9)
|| (b2 > 9))
- goodboard = FALSE;
+ goodboard = false;
}
if (wlc_hw->sih->boardvendor != VENDOR_BROADCOM)
@@ -2200,7 +2200,7 @@ static char *wlc_get_macaddr(wlc_hw_info_t *wlc_hw)
}
/*
- * Return true if radio is disabled, otherwise FALSE.
+ * Return true if radio is disabled, otherwise false.
* hw radio disable signal is an external pin, users activate it asynchronously
* this function could be called when driver is down and w/o clock
* it operates on different registers depending on corerev and boardflag.
@@ -2281,7 +2281,7 @@ void wlc_bmac_hw_up(wlc_hw_info_t *wlc_hw)
/* Inform phy that a POR reset has occurred so it does a complete phy init */
wlc_phy_por_inform(wlc_hw->band->pi);
- wlc_hw->ucode_loaded = FALSE;
+ wlc_hw->ucode_loaded = false;
wlc_hw->wlc->pub->hw_up = true;
if ((wlc_hw->boardflags & BFL_FEM)
@@ -2387,7 +2387,7 @@ void wlc_bmac_corereset(wlc_hw_info_t *wlc_hw, u32 flags)
* chipcommon during this period if necessary. But that has to work coordinate
* with other driver like mips/arm since they may touch chipcommon as well.
*/
- wlc_hw->clk = FALSE;
+ wlc_hw->clk = false;
si_core_reset(wlc_hw->sih, flags, resetbits);
wlc_hw->clk = true;
if (wlc_hw->band && wlc_hw->band->pi)
@@ -2482,7 +2482,7 @@ static void wlc_coreinit(wlc_info_t *wlc)
u32 sflags;
uint bcnint_us;
uint i = 0;
- bool fifosz_fixup = FALSE;
+ bool fifosz_fixup = false;
osl_t *osh;
int err = 0;
u16 buf[NFIFO];
@@ -2750,7 +2750,7 @@ static void wlc_gpio_init(wlc_info_t *wlc)
MHF3_ANTSEL_MODE, WLC_BAND_ALL);
/* init superswitch control */
- wlc_phy_antsel_init(wlc_hw->band->pi, FALSE);
+ wlc_phy_antsel_init(wlc_hw->band->pi, false);
} else if (wlc_hw->antsel_type == ANTSEL_2x4) {
ASSERT((gm & BOARD_GPIO_12) == 0);
@@ -2898,7 +2898,7 @@ void wlc_bmac_antsel_type_set(wlc_hw_info_t *wlc_hw, u8 antsel_type)
void wlc_bmac_fifoerrors(wlc_hw_info_t *wlc_hw)
{
- bool fatal = FALSE;
+ bool fatal = false;
uint unit;
uint intstatus, idx;
d11regs_t *regs = wlc_hw->regs;
@@ -3109,7 +3109,7 @@ bool wlc_bmac_tx_fifo_suspended(wlc_hw_info_t *wlc_hw, uint tx_fifo)
(1 << tx_fifo)) == 0)
return true;
- return FALSE;
+ return false;
}
void wlc_bmac_tx_fifo_suspend(wlc_hw_info_t *wlc_hw, uint tx_fifo)
@@ -3262,7 +3262,7 @@ static inline u32 wlc_intstatus(wlc_info_t *wlc, bool in_isr)
}
/* Update wlc->macintstatus and wlc->intstatus[]. */
-/* Return true if they are updated successfully. FALSE otherwise */
+/* Return true if they are updated successfully. false otherwise */
bool wlc_intrsupd(wlc_info_t *wlc)
{
u32 macintstatus;
@@ -3270,11 +3270,11 @@ bool wlc_intrsupd(wlc_info_t *wlc)
ASSERT(wlc->macintstatus != 0);
/* read and clear macintstatus and intstatus registers */
- macintstatus = wlc_intstatus(wlc, FALSE);
+ macintstatus = wlc_intstatus(wlc, false);
/* device is removed */
if (macintstatus == 0xffffffff)
- return FALSE;
+ return false;
/* update interrupt status in software */
wlc->macintstatus |= macintstatus;
@@ -3284,19 +3284,19 @@ bool wlc_intrsupd(wlc_info_t *wlc)
/*
* First-level interrupt processing.
- * Return true if this was our interrupt, FALSE otherwise.
+ * Return true if this was our interrupt, false otherwise.
* *wantdpc will be set to true if further wlc_dpc() processing is required,
- * FALSE otherwise.
+ * false otherwise.
*/
bool BCMFASTPATH wlc_isr(wlc_info_t *wlc, bool *wantdpc)
{
wlc_hw_info_t *wlc_hw = wlc->hw;
u32 macintstatus;
- *wantdpc = FALSE;
+ *wantdpc = false;
if (!wlc_hw->up || !wlc->macintmask)
- return FALSE;
+ return false;
/* read and clear macintstatus and intstatus registers */
macintstatus = wlc_intstatus(wlc, true);
@@ -3306,7 +3306,7 @@ bool BCMFASTPATH wlc_isr(wlc_info_t *wlc, bool *wantdpc)
/* it is not for us */
if (macintstatus == 0)
- return FALSE;
+ return false;
*wantdpc = true;
@@ -3324,7 +3324,7 @@ static bool wlc_bmac_txstatus_corerev4(wlc_hw_info_t *wlc_hw)
void *status_p;
tx_status_t *txs;
osl_t *osh;
- bool fatal = FALSE;
+ bool fatal = false;
WL_TRACE(("wl%d: wlc_txstatusrecv\n", wlc_hw->unit));
@@ -3342,7 +3342,7 @@ static bool wlc_bmac_txstatus_corerev4(wlc_hw_info_t *wlc_hw)
fatal = wlc_bmac_dotxstatus(wlc_hw, txs, 0);
- PKTFREE(osh, status_p, FALSE);
+ PKTFREE(osh, status_p, false);
}
if (fatal)
@@ -3351,7 +3351,7 @@ static bool wlc_bmac_txstatus_corerev4(wlc_hw_info_t *wlc_hw)
/* post more rbufs */
dma_rxfill(wlc_hw->di[RX_TXSTATUS_FIFO]);
- return FALSE;
+ return false;
}
static bool BCMFASTPATH
@@ -3364,19 +3364,19 @@ wlc_bmac_dotxstatus(wlc_hw_info_t *wlc_hw, tx_status_t *txs, u32 s2)
*/
if (!(txs->status & TX_STATUS_AMPDU)
&& (txs->status & TX_STATUS_INTERMEDIATE)) {
- return FALSE;
+ return false;
}
return wlc_dotxstatus(wlc_hw->wlc, txs, s2);
}
/* process tx completion events in BMAC
- * Return true if more tx status need to be processed. FALSE otherwise.
+ * Return true if more tx status need to be processed. false otherwise.
*/
static bool BCMFASTPATH
wlc_bmac_txstatus(wlc_hw_info_t *wlc_hw, bool bound, bool *fatal)
{
- bool morepending = FALSE;
+ bool morepending = false;
wlc_info_t *wlc = wlc_hw->wlc;
WL_TRACE(("wl%d: wlc_bmac_txstatus\n", wlc_hw->unit));
@@ -3693,7 +3693,7 @@ bool wlc_bmac_validate_chip_access(wlc_hw_info_t *wlc_hw)
val = R_REG(osh, &regs->objdata);
if (val != (u32) 0xaa5555aa) {
WL_ERROR(("wl%d: validate_chip_access: SHM = 0x%x, expected 0xaa5555aa\n", wlc_hw->unit, val));
- return FALSE;
+ return false;
}
W_REG(osh, &regs->objaddr, OBJADDR_SHM_SEL | 0);
@@ -3705,7 +3705,7 @@ bool wlc_bmac_validate_chip_access(wlc_hw_info_t *wlc_hw)
val = R_REG(osh, &regs->objdata);
if (val != (u32) 0x55aaaa55) {
WL_ERROR(("wl%d: validate_chip_access: SHM = 0x%x, expected 0x55aaaa55\n", wlc_hw->unit, val));
- return FALSE;
+ return false;
}
W_REG(osh, &regs->objaddr, OBJADDR_SHM_SEL | 0);
@@ -3735,12 +3735,12 @@ bool wlc_bmac_validate_chip_access(wlc_hw_info_t *wlc_hw)
val = R_REG(osh, &regs->tsf_cfpstrt_l);
if (val != (uint) 0xBBBB) {
WL_ERROR(("wl%d: validate_chip_access: tsf_cfpstrt_l = 0x%x, expected" " 0x%x\n", wlc_hw->unit, val, 0xBBBB));
- return FALSE;
+ return false;
}
val = R_REG(osh, &regs->tsf_cfpstrt_h);
if (val != (uint) 0xCCCC) {
WL_ERROR(("wl%d: validate_chip_access: tsf_cfpstrt_h = 0x%x, expected" " 0x%x\n", wlc_hw->unit, val, 0xCCCC));
- return FALSE;
+ return false;
}
}
@@ -3752,7 +3752,7 @@ bool wlc_bmac_validate_chip_access(wlc_hw_info_t *wlc_hw)
if ((w != (MCTL_IHR_EN | MCTL_WAKE)) &&
(w != (MCTL_IHR_EN | MCTL_GMODE | MCTL_WAKE))) {
WL_ERROR(("wl%d: validate_chip_access: maccontrol = 0x%x, expected 0x%x or 0x%x\n", wlc_hw->unit, w, (MCTL_IHR_EN | MCTL_WAKE), (MCTL_IHR_EN | MCTL_GMODE | MCTL_WAKE)));
- return FALSE;
+ return false;
}
return true;
@@ -3842,7 +3842,7 @@ void wlc_coredisable(wlc_hw_info_t *wlc_hw)
wlc_phy_anacore(wlc_hw->band->pi, OFF);
/* turn off PHYPLL to save power */
- wlc_bmac_core_phypll_ctl(wlc_hw, FALSE);
+ wlc_bmac_core_phypll_ctl(wlc_hw, false);
/* No need to set wlc->pub->radio_active = OFF
* because this function needs down capability and
@@ -3853,9 +3853,9 @@ void wlc_coredisable(wlc_hw_info_t *wlc_hw)
if (wlc_hw->ucode_dbgsel)
si_gpiocontrol(wlc_hw->sih, ~0, 0, GPIO_DRV_PRIORITY);
- wlc_hw->clk = FALSE;
+ wlc_hw->clk = false;
si_core_disable(wlc_hw->sih, 0);
- wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, FALSE);
+ wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false);
}
/* power both the pll and external oscillator on/off */
@@ -3872,9 +3872,9 @@ void wlc_bmac_xtal(wlc_hw_info_t *wlc_hw, bool want)
wlc_hw->sbclk = want;
if (!wlc_hw->sbclk) {
- wlc_hw->clk = FALSE;
+ wlc_hw->clk = false;
if (wlc_hw->band && wlc_hw->band->pi)
- wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, FALSE);
+ wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false);
}
}
@@ -4143,8 +4143,8 @@ void wlc_gpio_fast_deinit(wlc_hw_info_t *wlc_hw)
bool wlc_bmac_radio_hw(wlc_hw_info_t *wlc_hw, bool enable)
{
/* Do not access Phy registers if core is not up */
- if (si_iscoreup(wlc_hw->sih) == FALSE)
- return FALSE;
+ if (si_iscoreup(wlc_hw->sih) == false)
+ return false;
if (enable) {
if (PMUCTL_ENAB(wlc_hw->sih)) {
@@ -4166,7 +4166,7 @@ bool wlc_bmac_radio_hw(wlc_hw_info_t *wlc_hw, bool enable)
wlc_phy_anacore(wlc_hw->band->pi, OFF);
if (PMUCTL_ENAB(wlc_hw->sih)) {
- si_pmu_radio_enable(wlc_hw->sih, FALSE);
+ si_pmu_radio_enable(wlc_hw->sih, false);
OR_REG(wlc_hw->osh, &wlc_hw->regs->clk_ctl_st,
CCS_FORCEHWREQOFF);
}
diff --git a/drivers/staging/brcm80211/sys/wlc_channel.c b/drivers/staging/brcm80211/sys/wlc_channel.c
index ae152bb1..324de3d 100644
--- a/drivers/staging/brcm80211/sys/wlc_channel.c
+++ b/drivers/staging/brcm80211/sys/wlc_channel.c
@@ -682,14 +682,14 @@ wlc_channel_get_chanvec(struct wlc_info *wlc, const char *country_abbrev,
country = wlc_country_lookup(wlc, country_abbrev);
if (country == NULL)
- return FALSE;
+ return false;
if (bandtype == WLC_BAND_2G)
locale = wlc_get_locale_2g(country->locale_2G);
else if (bandtype == WLC_BAND_5G)
locale = wlc_get_locale_5g(country->locale_5G);
if (locale == NULL)
- return FALSE;
+ return false;
wlc_locale_get_channels(locale, channels);
return true;
@@ -775,7 +775,7 @@ wlc_set_country_common(wlc_cm_info_t *wlc_cm,
wlc_set_nmode(wlc, OFF);
wlc->stf->no_cddstbc = true;
} else {
- wlc->stf->no_cddstbc = FALSE;
+ wlc->stf->no_cddstbc = false;
if (N_ENAB(wlc->pub) != wlc->protection->nmode_user)
wlc_set_nmode(wlc, wlc->protection->nmode_user);
}
@@ -785,9 +785,9 @@ wlc_set_country_common(wlc_cm_info_t *wlc_cm,
/* set or restore gmode as required by regulatory */
locale = wlc_get_locale_2g(country->locale_2G);
if (locale && (locale->flags & WLC_NO_OFDM)) {
- wlc_set_gmode(wlc, GMODE_LEGACY_B, FALSE);
+ wlc_set_gmode(wlc, GMODE_LEGACY_B, false);
} else {
- wlc_set_gmode(wlc, wlc->protection->gmode_user, FALSE);
+ wlc_set_gmode(wlc, wlc->protection->gmode_user, false);
}
wlc_channels_init(wlc_cm, country);
@@ -867,7 +867,7 @@ static int
wlc_country_aggregate_map(wlc_cm_info_t *wlc_cm, const char *ccode,
char *mapped_ccode, uint *mapped_regrev)
{
- return FALSE;
+ return false;
}
/* Lookup a country info structure from a null terminated country
@@ -986,7 +986,7 @@ static void wlc_channels_commit(wlc_cm_info_t *wlc_cm)
if (NBANDS(wlc) > 1 || BAND_2G(wlc->band->bandtype)) {
wlc_phy_chanspec_ch14_widefilter_set(wlc->band->pi,
wlc_japan(wlc) ? true :
- FALSE);
+ false);
}
if (wlc->pub->up && chan != INVCHANNEL) {
@@ -1539,12 +1539,12 @@ wlc_valid_chanspec_ext(wlc_cm_info_t *wlc_cm, chanspec_t chspec, bool dualband)
WL_ERROR(("wl%d: malformed chanspec 0x%x\n", wlc->pub->unit,
chspec));
ASSERT(0);
- return FALSE;
+ return false;
}
if (CHANNEL_BANDUNIT(wlc_cm->wlc, channel) !=
CHSPEC_WLCBANDUNIT(chspec))
- return FALSE;
+ return false;
/* Check a 20Mhz channel */
if (CHSPEC_IS20(chspec)) {
@@ -1563,16 +1563,16 @@ wlc_valid_chanspec_ext(wlc_cm_info_t *wlc_cm, chanspec_t chspec, bool dualband)
sizeof(chan20_info) / sizeof(struct chan20_info);
if (!VALID_40CHANSPEC_IN_BAND(wlc, CHSPEC_WLCBANDUNIT(chspec)))
- return FALSE;
+ return false;
if (dualband) {
if (!VALID_CHANNEL20_DB(wlc, LOWER_20_SB(channel)) ||
!VALID_CHANNEL20_DB(wlc, UPPER_20_SB(channel)))
- return FALSE;
+ return false;
} else {
if (!VALID_CHANNEL20(wlc, LOWER_20_SB(channel)) ||
!VALID_CHANNEL20(wlc, UPPER_20_SB(channel)))
- return FALSE;
+ return false;
}
/* find the lower sideband info in the sideband array */
@@ -1584,16 +1584,16 @@ wlc_valid_chanspec_ext(wlc_cm_info_t *wlc_cm, chanspec_t chspec, bool dualband)
if ((upper_sideband & (CH_UPPER_SB | CH_EWA_VALID)) ==
(CH_UPPER_SB | CH_EWA_VALID))
return true;
- return FALSE;
+ return false;
}
#endif /* 40 MHZ */
- return FALSE;
+ return false;
}
bool wlc_valid_chanspec(wlc_cm_info_t *wlc_cm, chanspec_t chspec)
{
- return wlc_valid_chanspec_ext(wlc_cm, chspec, FALSE);
+ return wlc_valid_chanspec_ext(wlc_cm, chspec, false);
}
bool wlc_valid_chanspec_db(wlc_cm_info_t *wlc_cm, chanspec_t chspec)
diff --git a/drivers/staging/brcm80211/sys/wlc_event.c b/drivers/staging/brcm80211/sys/wlc_event.c
index 4af1e71..e787390 100644
--- a/drivers/staging/brcm80211/sys/wlc_event.c
+++ b/drivers/staging/brcm80211/sys/wlc_event.c
@@ -88,13 +88,13 @@ int wlc_eventq_detach(wlc_eventq_t *eq)
if (eq->timer) {
if (eq->tpending) {
wl_del_timer(eq->wl, eq->timer);
- eq->tpending = FALSE;
+ eq->tpending = false;
}
wl_free_timer(eq->wl, eq->timer);
eq->timer = NULL;
}
- ASSERT(wlc_eventq_avail(eq) == FALSE);
+ ASSERT(wlc_eventq_avail(eq) == false);
MFREE(eq->pub->osh, eq, sizeof(wlc_eventq_t));
return 0;
}
@@ -107,16 +107,16 @@ int wlc_eventq_down(wlc_eventq_t *eq)
callbacks++;
ASSERT(wlc_eventq_avail(eq) == true);
- ASSERT(eq->workpending == FALSE);
+ ASSERT(eq->workpending == false);
eq->workpending = true;
if (eq->cb)
eq->cb(eq->wlc);
ASSERT(eq->workpending == true);
- eq->workpending = FALSE;
- eq->tpending = FALSE;
+ eq->workpending = false;
+ eq->tpending = false;
} else {
- ASSERT(eq->workpending || wlc_eventq_avail(eq) == FALSE);
+ ASSERT(eq->workpending || wlc_eventq_avail(eq) == false);
}
return callbacks;
}
@@ -216,14 +216,14 @@ static void wlc_timer_cb(void *arg)
ASSERT(eq->tpending == true);
ASSERT(wlc_eventq_avail(eq) == true);
- ASSERT(eq->workpending == FALSE);
+ ASSERT(eq->workpending == false);
eq->workpending = true;
if (eq->cb)
eq->cb(eq->wlc);
- ASSERT(wlc_eventq_avail(eq) == FALSE);
+ ASSERT(wlc_eventq_avail(eq) == false);
ASSERT(eq->tpending == true);
- eq->workpending = FALSE;
- eq->tpending = FALSE;
+ eq->workpending = false;
+ eq->tpending = false;
}
diff --git a/drivers/staging/brcm80211/sys/wlc_key.h b/drivers/staging/brcm80211/sys/wlc_key.h
index b4f2051..d4f1b91 100644
--- a/drivers/staging/brcm80211/sys/wlc_key.h
+++ b/drivers/staging/brcm80211/sys/wlc_key.h
@@ -65,7 +65,7 @@ struct wlc_bsscfg;
#define WSEC_KEY(wlc, i) (((wlc)->wsec_keys[i] && (wlc)->wsec_keys[i]->len) ? \
(wlc)->wsec_keys[i] : NULL)
-#define WSEC_SCB_KEY_VALID(scb) (((scb)->key && (scb)->key->len) ? true : FALSE)
+#define WSEC_SCB_KEY_VALID(scb) (((scb)->key && (scb)->key->len) ? true : false)
/* default key */
#define WSEC_BSS_DEFAULT_KEY(bsscfg) (((bsscfg)->wsec_index == -1) ? \
diff --git a/drivers/staging/brcm80211/sys/wlc_mac80211.c b/drivers/staging/brcm80211/sys/wlc_mac80211.c
index 464bd63..92759e4 100644
--- a/drivers/staging/brcm80211/sys/wlc_mac80211.c
+++ b/drivers/staging/brcm80211/sys/wlc_mac80211.c
@@ -114,7 +114,7 @@
#define WLC_WAR16165(wlc) (BUSTYPE(wlc->pub->sih->bustype) == PCI_BUS && \
(!AP_ENAB(wlc->pub)) && (wlc->war16165))
#else
-#define WLC_WAR16165(wlc) (FALSE)
+#define WLC_WAR16165(wlc) (false)
#endif /* WLC_HIGH_ONLY */
/* debug/trace */
@@ -216,7 +216,7 @@ const u8 wme_fifo2ac[] = { AC_BK, AC_BE, AC_VI, AC_VO, AC_BE, AC_BE };
/* WME/802.1E Access Category to TX FIFO number */
static const u8 wme_ac2fifo[] = { 1, 0, 2, 3 };
-static bool in_send_q = FALSE;
+static bool in_send_q = false;
/* Shared memory location index for various AC params */
#define wme_shmemacindex(ac) wme_ac2fifo[ac]
@@ -361,21 +361,21 @@ bool wlc_ps_allowed(wlc_info_t *wlc)
/* disallow PS when one of the following global conditions meets */
if (!wlc->pub->associated || !wlc->PMenabled || wlc->PM_override)
- return FALSE;
+ return false;
/* disallow PS when one of these meets when not scanning */
if (!wlc->PMblocked) {
if (AP_ACTIVE(wlc) || wlc->monitor)
- return FALSE;
+ return false;
}
FOREACH_AS_STA(wlc, idx, cfg) {
/* disallow PS when one of the following bsscfg specific conditions meets */
if (!cfg->BSS || !WLC_PORTOPEN(cfg))
- return FALSE;
+ return false;
if (!cfg->dtim_programmed)
- return FALSE;
+ return false;
}
return true;
@@ -385,7 +385,7 @@ void wlc_reset(wlc_info_t *wlc)
{
WL_TRACE(("wl%d: wlc_reset\n", wlc->pub->unit));
- wlc->check_for_unaligned_tbtt = FALSE;
+ wlc->check_for_unaligned_tbtt = false;
/* slurp up hw mac counters before core reset */
if (WLC_UPDATE_STATS(wlc)) {
@@ -458,7 +458,7 @@ void wlc_init(wlc_info_t *wlc)
chanspec_t chanspec;
int i;
wlc_bsscfg_t *bsscfg;
- bool mute = FALSE;
+ bool mute = false;
WL_TRACE(("wl%d: wlc_init\n", wlc->pub->unit));
@@ -531,7 +531,7 @@ void wlc_init(wlc_info_t *wlc)
/* initialize maximum allowed duty cycle */
wlc_duty_cycle_set(wlc, wlc->tx_duty_cycle_ofdm, true, true);
- wlc_duty_cycle_set(wlc, wlc->tx_duty_cycle_cck, FALSE, true);
+ wlc_duty_cycle_set(wlc, wlc->tx_duty_cycle_cck, false, true);
/* Update some shared memory locations related to max AMPDU size allowed to received */
wlc_ampdu_shm_upd(wlc->ampdu);
@@ -542,7 +542,7 @@ void wlc_init(wlc_info_t *wlc)
/* Enable EDCF mode (while the MAC is suspended) */
if (EDCF_ENAB(wlc->pub)) {
OR_REG(wlc->osh, &regs->ifs_ctl, IFS_USEEDCF);
- wlc_edcf_setparams(wlc->cfg, FALSE);
+ wlc_edcf_setparams(wlc->cfg, false);
}
/* Init precedence maps for empty FIFOs */
@@ -562,7 +562,7 @@ void wlc_init(wlc_info_t *wlc)
wlc_txflowcontrol_reset(wlc);
/* clear tx data fifo suspends */
- wlc->tx_suspended = FALSE;
+ wlc->tx_suspended = false;
/* enable the RF Disable Delay timer */
if (D11REV_GE(wlc->pub->corerev, 10))
@@ -655,7 +655,7 @@ bool wlc_ps_check(wlc_info_t *wlc)
continue;
}
- res = FALSE;
+ res = false;
}
#ifdef WLC_LOW
/* For a monolithic build the wake check can be exact since it looks at wake
@@ -674,7 +674,7 @@ bool wlc_ps_check(wlc_info_t *wlc)
#endif
if (hps && !wake_ok) {
WL_ERROR(("wl%d: wake not sync, sw %d maccontrol 0x%x\n", wlc->pub->unit, wake, tmp));
- res = FALSE;
+ res = false;
}
}
ASSERT(res);
@@ -846,7 +846,7 @@ static void wlc_set_phy_chanspec(wlc_info_t *wlc, chanspec_t chanspec)
void wlc_set_chanspec(wlc_info_t *wlc, chanspec_t chanspec)
{
uint bandunit;
- bool switchband = FALSE;
+ bool switchband = false;
chanspec_t old_chanspec = wlc->chanspec;
if (!wlc_valid_chanspec_db(wlc->cmi, chanspec)) {
@@ -1093,13 +1093,13 @@ void wlc_watchdog_upd(wlc_info_t *wlc, bool tbtt)
return;
if (!tbtt && wlc->WDarmed) {
wl_del_timer(wlc->wl, wlc->wdtimer);
- wlc->WDarmed = FALSE;
+ wlc->WDarmed = false;
}
/* stop watchdog timer and use tbtt interrupt to drive watchdog */
if (tbtt && wlc->WDarmed) {
wl_del_timer(wlc->wl, wlc->wdtimer);
- wlc->WDarmed = FALSE;
+ wlc->WDarmed = false;
wlc->WDlast = OSL_SYSUPTIME();
}
/* arm watchdog timer and drive the watchdog there */
@@ -1231,7 +1231,7 @@ static void wlc_ht_update_ldpc(wlc_info_t *wlc, s8 val)
if (wlc->pub->up) {
wlc_update_beacon(wlc);
wlc_update_probe_resp(wlc, true);
- wlc_phy_ldpc_override_set(wlc->band->pi, (val ? true : FALSE));
+ wlc_phy_ldpc_override_set(wlc->band->pi, (val ? true : false));
}
}
@@ -1301,7 +1301,7 @@ static void wlc_bandinit_ordered(wlc_info_t *wlc, chanspec_t chanspec)
/* fill in hw_rate */
wlc_rateset_filter(&default_rateset, &wlc->band->hw_rateset,
- FALSE, WLC_RATES_CCK_OFDM, RATE_MASK,
+ false, WLC_RATES_CCK_OFDM, RATE_MASK,
(bool) N_ENAB(wlc->pub));
/* init basic rate lookup */
@@ -1543,7 +1543,7 @@ void wlc_edcf_setparams(wlc_bsscfg_t *cfg, bool suspend)
if (AP_ENAB(wlc->pub) && WME_ENAB(wlc->pub)) {
wlc_update_beacon(wlc);
- wlc_update_probe_resp(wlc, FALSE);
+ wlc_update_probe_resp(wlc, false);
}
if (suspend)
@@ -1571,7 +1571,7 @@ bool wlc_timers_init(wlc_info_t *wlc, int unit)
return true;
fail:
- return FALSE;
+ return false;
}
/*
@@ -1591,12 +1591,12 @@ void wlc_info_init(wlc_info_t *wlc, int unit)
wlc->chanspec = CH20MHZ_CHSPEC(1);
/* initialize CCK preamble mode to unassociated state */
- wlc->shortpreamble = FALSE;
+ wlc->shortpreamble = false;
wlc->legacy_probe = true;
/* various 802.11g modes */
- wlc->shortslot = FALSE;
+ wlc->shortslot = false;
wlc->shortslot_override = WLC_SHORTSLOT_AUTO;
wlc->barker_overlap_control = true;
@@ -1604,12 +1604,12 @@ void wlc_info_init(wlc_info_t *wlc, int unit)
wlc->txburst_limit_override = AUTO;
wlc_protection_upd(wlc, WLC_PROT_G_OVR, WLC_PROTECTION_AUTO);
- wlc_protection_upd(wlc, WLC_PROT_G_SPEC, FALSE);
+ wlc_protection_upd(wlc, WLC_PROT_G_SPEC, false);
wlc_protection_upd(wlc, WLC_PROT_N_CFG_OVR, WLC_PROTECTION_AUTO);
wlc_protection_upd(wlc, WLC_PROT_N_CFG, WLC_N_PROTECTION_OFF);
wlc_protection_upd(wlc, WLC_PROT_N_NONGF_OVR, WLC_PROTECTION_AUTO);
- wlc_protection_upd(wlc, WLC_PROT_N_NONGF, FALSE);
+ wlc_protection_upd(wlc, WLC_PROT_N_NONGF, false);
wlc_protection_upd(wlc, WLC_PROT_N_PAM_OVR, AUTO);
wlc_protection_upd(wlc, WLC_PROT_OVERLAP, WLC_PROTECTION_CTL_OVERLAP);
@@ -1637,30 +1637,30 @@ void wlc_info_init(wlc_info_t *wlc, int unit)
/* init PM state */
wlc->PM = PM_OFF; /* User's setting of PM mode through IOCTL */
- wlc->PM_override = FALSE; /* Prevents from going to PM if our AP is 'ill' */
- wlc->PMenabled = FALSE; /* Current PM state */
- wlc->PMpending = FALSE; /* Tracks whether STA indicated PM in the last attempt */
- wlc->PMblocked = FALSE; /* To allow blocking going into PM during RM and scans */
+ wlc->PM_override = false; /* Prevents from going to PM if our AP is 'ill' */
+ wlc->PMenabled = false; /* Current PM state */
+ wlc->PMpending = false; /* Tracks whether STA indicated PM in the last attempt */
+ wlc->PMblocked = false; /* To allow blocking going into PM during RM and scans */
/* In WMM Auto mode, PM is allowed if association is a UAPSD association */
- wlc->WME_PM_blocked = FALSE;
+ wlc->WME_PM_blocked = false;
/* Init wme queuing method */
- wlc->wme_prec_queuing = FALSE;
+ wlc->wme_prec_queuing = false;
/* Overrides for the core to stay awake under zillion conditions Look for STAY_AWAKE */
- wlc->wake = FALSE;
+ wlc->wake = false;
/* Are we waiting for a response to PS-Poll that we sent */
- wlc->PSpoll = FALSE;
+ wlc->PSpoll = false;
/* APSD defaults */
wlc->wme_apsd = true;
- wlc->apsd_sta_usp = FALSE;
+ wlc->apsd_sta_usp = false;
wlc->apsd_trigger_timeout = 0; /* disable the trigger timer */
wlc->apsd_trigger_ac = AC_BITMAP_ALL;
/* Set flag to indicate that hw keys should be used when available. */
- wlc->wsec_swkeys = FALSE;
+ wlc->wsec_swkeys = false;
/* init the 4 static WEP default keys */
for (i = 0; i < WSEC_MAX_DEFAULT_KEYS; i++) {
@@ -1668,7 +1668,7 @@ void wlc_info_init(wlc_info_t *wlc, int unit)
wlc->wsec_keys[i]->idx = (u8) i;
}
- wlc->_regulatory_domain = FALSE; /* 802.11d */
+ wlc->_regulatory_domain = false; /* 802.11d */
/* WME QoS mode is Auto by default */
wlc->pub->_wme = AUTO;
@@ -1694,7 +1694,7 @@ static bool wlc_state_bmac_sync(wlc_info_t *wlc)
wlc_bmac_state_t state_bmac;
if (wlc_bmac_state_get(wlc->hw, &state_bmac) != 0)
- return FALSE;
+ return false;
wlc->machwcap = state_bmac.machwcap;
wlc_protection_upd(wlc, WLC_PROT_N_PAM_OVR,
@@ -1818,7 +1818,7 @@ void *wlc_attach(void *wl, u16 vendor, u16 device, uint unit, bool piomode,
pub->osh = osh;
wlc->btparam = btparam;
pub->_piomode = piomode;
- wlc->bandinit_pending = FALSE;
+ wlc->bandinit_pending = false;
/* By default restrict TKIP associations from 11n STA's */
wlc->ht_wsec_restriction = WLC_HT_TKIP_RESTRICT;
@@ -1931,7 +1931,7 @@ void *wlc_attach(void *wl, u16 vendor, u16 device, uint unit, bool piomode,
/* fill in hw_rateset (used early by WLC_SET_RATESET) */
wlc_rateset_filter(&wlc->band->defrateset,
- &wlc->band->hw_rateset, FALSE,
+ &wlc->band->hw_rateset, false,
WLC_RATES_CCK_OFDM, RATE_MASK,
(bool) N_ENAB(wlc->pub));
}
@@ -2415,10 +2415,10 @@ static void wlc_radio_hwdisable_upd(wlc_info_t *wlc)
}
}
-/* return true if Minimum Power Consumption should be entered, FALSE otherwise */
+/* return true if Minimum Power Consumption should be entered, false otherwise */
bool wlc_is_non_delay_mpc(wlc_info_t *wlc)
{
- return FALSE;
+ return false;
}
bool wlc_ismpc(wlc_info_t *wlc)
@@ -2471,7 +2471,7 @@ void wlc_radio_mpc_upd(wlc_info_t *wlc)
* other than wlc->mpc_delay_off keeping the mpc off. In that case reset
* wlc->mpc_delay_off to wlc->mpc_dlycnt, so that we restart the countdown of mpc_delay_off
*/
- if ((wlc->prev_non_delay_mpc == FALSE) &&
+ if ((wlc->prev_non_delay_mpc == false) &&
(wlc_is_non_delay_mpc(wlc) == true) && wlc->mpc_delay_off) {
wlc->mpc_delay_off = wlc->mpc_dlycnt;
}
@@ -2500,7 +2500,7 @@ static void wlc_down_led_upd(wlc_info_t *wlc)
if (!AP_ENAB(wlc->pub)) {
wlc_pllreq(wlc, true, WLC_PLLREQ_FLIP);
- wlc_pllreq(wlc, FALSE, WLC_PLLREQ_FLIP);
+ wlc_pllreq(wlc, false, WLC_PLLREQ_FLIP);
}
}
@@ -2569,8 +2569,8 @@ bool wlc_radio_monitor_stop(wlc_info_t *wlc)
ASSERT((wlc->pub->wlfeatureflag & WL_SWFL_NOHWRADIO) !=
WL_SWFL_NOHWRADIO);
- wlc->radio_monitor = FALSE;
- wlc_pllreq(wlc, FALSE, WLC_PLLREQ_RADIO_MON);
+ wlc->radio_monitor = false;
+ wlc_pllreq(wlc, false, WLC_PLLREQ_RADIO_MON);
return wl_del_timer(wlc->wl, wlc->radio_timer);
}
@@ -2580,7 +2580,7 @@ void wlc_out(wlc_info_t *wlc)
wlc_bmac_set_noreset(wlc->hw, true);
wlc_radio_upd(wlc);
wl_down(wlc->wl);
- wlc_bmac_set_noreset(wlc->hw, FALSE);
+ wlc_bmac_set_noreset(wlc->hw, false);
/* core clk is true in BMAC driver due to noreset, need to mirror it in HIGH */
wlc->clk = true;
@@ -2588,7 +2588,7 @@ void wlc_out(wlc_info_t *wlc)
/* This will make sure that when 'up' is done
* after 'out' it'll restore hardware (especially gpios)
*/
- wlc->pub->hw_up = FALSE;
+ wlc->pub->hw_up = false;
}
#if defined(BCMDBG)
@@ -2604,7 +2604,7 @@ static bool wlc_tx_prec_map_verify(wlc_info_t *wlc)
if (!EDCF_ENAB(wlc->pub)) {
if (!(WLC_TX_FIFO_CHECK(wlc, TX_DATA_FIFO) ||
WLC_TX_FIFO_CHECK(wlc, TX_CTL_FIFO)))
- return FALSE;
+ return false;
else
return true;
}
@@ -2800,7 +2800,7 @@ int wlc_up(wlc_info_t *wlc)
if (wlc->bandinit_pending) {
wlc_suspend_mac_and_wait(wlc);
wlc_set_chanspec(wlc, wlc->default_bss->chanspec);
- wlc->bandinit_pending = FALSE;
+ wlc->bandinit_pending = false;
wlc_enable_mac(wlc);
}
@@ -2863,7 +2863,7 @@ uint wlc_down(wlc_info_t *wlc)
uint callbacks = 0;
int i;
- bool dev_gone = FALSE;
+ bool dev_gone = false;
wlc_txq_info_t *qi;
WL_TRACE(("wl%d: %s:\n", wlc->pub->unit, __func__));
@@ -2895,7 +2895,7 @@ uint wlc_down(wlc_info_t *wlc)
if (wlc->WDarmed) {
if (!wl_del_timer(wlc->wl, wlc->wdtimer))
callbacks++;
- wlc->WDarmed = FALSE;
+ wlc->WDarmed = false;
}
/* cancel all other timers */
callbacks += wlc_down_del_timer(wlc);
@@ -2903,9 +2903,9 @@ uint wlc_down(wlc_info_t *wlc)
/* interrupt must have been blocked */
ASSERT((wlc->macintmask == 0) || !wlc->pub->up);
- wlc->pub->up = FALSE;
+ wlc->pub->up = false;
- wlc_phy_mute_upd(wlc->band->pi, FALSE, PHY_MUTE_ALL);
+ wlc_phy_mute_upd(wlc->band->pi, false, PHY_MUTE_ALL);
/* clear txq flow control */
wlc_txflowcontrol_reset(wlc);
@@ -2925,7 +2925,7 @@ uint wlc_down(wlc_info_t *wlc)
callbacks += wlc_bmac_down_finish(wlc->hw);
/* wlc_bmac_down_finish has done wlc_coredisable(). so clk is off */
- wlc->clk = FALSE;
+ wlc->clk = false;
#ifdef WLC_HIGH_ONLY
wlc_rpctx_txreclaim(wlc->rpctx);
@@ -2943,7 +2943,7 @@ uint wlc_down(wlc_info_t *wlc)
for (i = 1; i <= wlc->pub->tunables->maxpktcb; i++)
ASSERT(wlc->pkt_callback[i].fn == NULL);
#endif
- wlc->going_down = FALSE;
+ wlc->going_down = false;
return callbacks;
}
@@ -2955,12 +2955,12 @@ int wlc_set_gmode(wlc_info_t *wlc, u8 gmode, bool config)
wlc_rateset_t rs;
/* Default to 54g Auto */
s8 shortslot = WLC_SHORTSLOT_AUTO; /* Advertise and use shortslot (-1/0/1 Auto/Off/On) */
- bool shortslot_restrict = FALSE; /* Restrict association to stations that support shortslot
+ bool shortslot_restrict = false; /* Restrict association to stations that support shortslot
*/
bool ignore_bcns = true; /* Ignore legacy beacons on the same channel */
- bool ofdm_basic = FALSE; /* Make 6, 12, and 24 basic rates */
+ bool ofdm_basic = false; /* Make 6, 12, and 24 basic rates */
int preamble = WLC_PLCP_LONG; /* Advertise and use short preambles (-1/0/1 Auto/Off/On) */
- bool preamble_restrict = FALSE; /* Restrict association to stations that support short
+ bool preamble_restrict = false; /* Restrict association to stations that support short
* preambles
*/
wlcband_t *band;
@@ -3238,7 +3238,7 @@ int wlc_get(wlc_info_t *wlc, int cmd, int *arg)
static void wlc_ofdm_rateset_war(wlc_info_t *wlc)
{
u8 r;
- bool war = FALSE;
+ bool war = false;
if (wlc->cfg->associated)
r = wlc->cfg->current_bss->rateset.rates[0];
@@ -3279,7 +3279,7 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
/* initialize the following to get rid of compiler warning */
nextscb = NULL;
- ta_ok = FALSE;
+ ta_ok = false;
band = 0;
r = NULL;
@@ -3381,7 +3381,7 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
CHSPEC_WLCBANDUNIT(chspec))
wlc->bandinit_pending = true;
else
- wlc->bandinit_pending = FALSE;
+ wlc->bandinit_pending = false;
}
wlc->default_bss->chanspec = chspec;
@@ -4007,7 +4007,7 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
break;
}
- wlc->wake = val ? true : FALSE;
+ wlc->wake = val ? true : false;
/* if down, we're done */
if (!wlc->pub->up)
@@ -4141,11 +4141,11 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
/* let watchdog or beacon processing update shortslot */
} else if (wlc->pub->up) {
/* unassociated shortslot is off */
- wlc_switch_shortslot(wlc, FALSE);
+ wlc_switch_shortslot(wlc, false);
} else {
/* driver is down, so just update the wlc_info value */
if (wlc->shortslot_override == WLC_SHORTSLOT_AUTO) {
- wlc->shortslot = FALSE;
+ wlc->shortslot = false;
} else {
wlc->shortslot =
(wlc->shortslot_override ==
@@ -4258,11 +4258,11 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
}
/* validate rateset by comparing pre and post sorted against 11g hw rates */
- wlc_rateset_filter(&rs, &new, FALSE, WLC_RATES_CCK_OFDM,
+ wlc_rateset_filter(&rs, &new, false, WLC_RATES_CCK_OFDM,
RATE_MASK, BSS_N_ENAB(wlc, bsscfg));
wlc_rate_hwrs_filter_sort_validate(&new,
&cck_ofdm_rates,
- FALSE,
+ false,
wlc->stf->txstreams);
if (rs.count != new.count) {
bcmerror = BCME_BADRATESET; /* invalid rateset */
@@ -4321,7 +4321,7 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
/* treat the 'val' parm as the key id */
key = WSEC_BSS_DEFAULT_KEY(bsscfg);
if (key != NULL) {
- *pval = key->id == val ? true : FALSE;
+ *pval = key->id == val ? true : false;
} else {
bcmerror = BCME_BADKEYIDX;
}
@@ -4764,8 +4764,8 @@ wlc_doiovar(void *hdl, const bcm_iovar_t *vi, u32 actionid,
/* convenience int ptr for 4-byte gets (requires int aligned arg) */
ret_int_ptr = (s32 *) arg;
- bool_val = (int_val != 0) ? true : FALSE;
- bool_val2 = (int_val2 != 0) ? true : FALSE;
+ bool_val = (int_val != 0) ? true : false;
+ bool_val2 = (int_val2 != 0) ? true : false;
WL_TRACE(("wl%d: %s: id %d\n", wlc->pub->unit, __func__,
IOV_ID(actionid)));
@@ -4799,7 +4799,7 @@ wlc_doiovar(void *hdl, const bcm_iovar_t *vi, u32 actionid,
/* Remove override bit and clip to max qdbm value */
qdbm = (u8)min_t(u32, (int_val & ~WL_TXPWR_OVERRIDE), 0xff);
/* Extract override setting */
- override = (int_val & WL_TXPWR_OVERRIDE) ? true : FALSE;
+ override = (int_val & WL_TXPWR_OVERRIDE) ? true : false;
err =
wlc_phy_txpower_set(wlc->band->pi, qdbm, override);
break;
@@ -5021,7 +5021,7 @@ bool wlc_chipmatch(u16 vendor, u16 device)
{
if (vendor != VENDOR_BROADCOM) {
WL_ERROR(("wlc_chipmatch: unknown vendor id %04x\n", vendor));
- return FALSE;
+ return false;
}
if ((device == BCM43224_D11N_ID) || (device == BCM43225_D11N2G_ID))
@@ -5033,7 +5033,7 @@ bool wlc_chipmatch(u16 vendor, u16 device)
return true;
WL_ERROR(("wlc_chipmatch: unknown device id %04x\n", device));
- return FALSE;
+ return false;
}
#if defined(BCMDBG)
@@ -5198,7 +5198,7 @@ void wlc_device_removed(void *arg)
{
wlc_info_t *wlc = (wlc_info_t *) arg;
- wlc->device_present = FALSE;
+ wlc->device_present = false;
}
#endif /* WLC_HIGH_ONLY */
@@ -5209,12 +5209,12 @@ void wlc_device_removed(void *arg)
* 'prec' is the precedence number that has already been mapped
* from the packet priority.
*
- * Returns true if packet consumed (queued), FALSE if not.
+ * Returns true if packet consumed (queued), false if not.
*/
bool BCMFASTPATH
wlc_prec_enq(wlc_info_t *wlc, struct pktq *q, void *pkt, int prec)
{
- return wlc_prec_enq_head(wlc, q, pkt, prec, FALSE);
+ return wlc_prec_enq_head(wlc, q, pkt, prec, false);
}
bool BCMFASTPATH
@@ -5233,7 +5233,7 @@ wlc_prec_enq_head(wlc_info_t *wlc, struct pktq *q, void *pkt, int prec,
if (eprec > prec) {
WL_ERROR(("%s: Failing: eprec %d > prec %d\n", __func__,
eprec, prec));
- return FALSE;
+ return false;
}
}
@@ -5250,7 +5250,7 @@ wlc_prec_enq_head(wlc_info_t *wlc, struct pktq *q, void *pkt, int prec,
if (eprec == prec && !discard_oldest) {
WL_ERROR(("%s: No where to go, prec == %d\n", __func__,
prec));
- return FALSE;
+ return false;
}
/* Evict packet according to discard policy */
@@ -5423,7 +5423,7 @@ void BCMFASTPATH wlc_send_q(wlc_info_t *wlc, wlc_txq_info_t *qi)
}
}
}
- in_send_q = FALSE;
+ in_send_q = false;
}
/*
@@ -5882,10 +5882,10 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
u16 seq = 0, mcl = 0, status = 0;
ratespec_t rspec[2] = { WLC_RATE_1M, WLC_RATE_1M }, rts_rspec[2] = {
WLC_RATE_1M, WLC_RATE_1M};
- bool use_rts = FALSE;
- bool use_cts = FALSE;
- bool use_rifs = FALSE;
- bool short_preamble[2] = { FALSE, FALSE };
+ bool use_rts = false;
+ bool use_cts = false;
+ bool use_rifs = false;
+ bool short_preamble[2] = { false, false };
u8 preamble_type[2] = { WLC_LONG_PREAMBLE, WLC_LONG_PREAMBLE };
u8 rts_preamble_type[2] = { WLC_LONG_PREAMBLE, WLC_LONG_PREAMBLE };
u8 *rts_plcp, rts_plcp_fallback[D11_PHY_HDR_LEN];
@@ -5893,7 +5893,7 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
bool qos;
uint ac;
u32 rate_val[2];
- bool hwtkmic = FALSE;
+ bool hwtkmic = false;
u16 mimo_ctlchbw = PHY_TXC1_BW_20MHZ;
#ifdef WLANTSEL
#define ANTCFG_NONE 0xFF
@@ -5996,7 +5996,7 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
for (k = 0; k < hw->max_rates; k++) {
is_mcs[k] =
- txrate[k]->flags & IEEE80211_TX_RC_MCS ? true : FALSE;
+ txrate[k]->flags & IEEE80211_TX_RC_MCS ? true : false;
if (!is_mcs[k]) {
ASSERT(!(tx_info->flags & IEEE80211_TX_CTL_AMPDU));
if ((txrate[k]->idx >= 0)
@@ -6008,7 +6008,7 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
short_preamble[k] =
txrate[k]->
flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE ?
- true : FALSE;
+ true : false;
} else {
ASSERT((txrate[k]->idx >= 0) &&
(txrate[k]->idx <
@@ -6024,10 +6024,10 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
*/
use_rts |=
txrate[k]->
- flags & IEEE80211_TX_RC_USE_RTS_CTS ? true : FALSE;
+ flags & IEEE80211_TX_RC_USE_RTS_CTS ? true : false;
use_cts |=
txrate[k]->
- flags & IEEE80211_TX_RC_USE_CTS_PROTECT ? true : FALSE;
+ flags & IEEE80211_TX_RC_USE_CTS_PROTECT ? true : false;
if (is_mcs[k])
rate_val[k] |= NRATE_MCS_INUSE;
@@ -6041,7 +6041,7 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
} else {
if (WLANTSEL_ENAB(wlc) && !ETHER_ISMULTI(&h->a1)) {
/* set tx antenna config */
- wlc_antsel_antcfg_get(wlc->asi, FALSE, FALSE, 0,
+ wlc_antsel_antcfg_get(wlc->asi, false, false, 0,
0, &antcfg, &fbantcfg);
}
}
@@ -6290,11 +6290,11 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
/* RTS PLCP header and RTS frame */
if (use_rts || use_cts) {
if (use_rts && use_cts)
- use_cts = FALSE;
+ use_cts = false;
for (k = 0; k < 2; k++) {
rts_rspec[k] = wlc_rspec_to_rts_rspec(wlc, rspec[k],
- FALSE,
+ false,
mimo_ctlchbw);
}
@@ -6341,13 +6341,13 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
durid = wlc_compute_rtscts_dur(wlc, use_cts, rts_rspec[0],
rspec[0], rts_preamble_type[0],
- preamble_type[0], phylen, FALSE);
+ preamble_type[0], phylen, false);
rts->durid = htol16(durid);
/* fallback rate version of RTS DUR field */
durid = wlc_compute_rtscts_dur(wlc, use_cts,
rts_rspec[1], rspec[1],
rts_preamble_type[1],
- preamble_type[1], phylen, FALSE);
+ preamble_type[1], phylen, false);
txh->RTSDurFallback = htol16(durid);
if (use_cts) {
@@ -6552,7 +6552,7 @@ void wlc_tbtt(wlc_info_t *wlc, d11regs_t *regs)
u32 cur, delta;
if (wlc->WDarmed) {
wl_del_timer(wlc->wl, wlc->wdtimer);
- wlc->WDarmed = FALSE;
+ wlc->WDarmed = false;
}
cur = OSL_SYSUPTIME();
@@ -6774,7 +6774,7 @@ wlc_dotxstatus(wlc_info_t *wlc, tx_status_t *txs, u32 frm_tx2)
status & TX_STATUS_FRM_RTX_MASK) >>
TX_STATUS_FRM_RTX_SHIFT));
WL_ERROR(("%s: INTERMEDIATE but not AMPDU\n", __func__));
- return FALSE;
+ return false;
}
osh = wlc->osh;
@@ -6787,7 +6787,7 @@ wlc_dotxstatus(wlc_info_t *wlc, tx_status_t *txs, u32 frm_tx2)
p = GETNEXTTXP(wlc, queue);
if (WLC_WAR16165(wlc))
- wlc_war16165(wlc, FALSE);
+ wlc_war16165(wlc, false);
if (p == NULL)
p = wlc_15420war(wlc, queue);
ASSERT(p != NULL);
@@ -6825,7 +6825,7 @@ wlc_dotxstatus(wlc_info_t *wlc, tx_status_t *txs, u32 frm_tx2)
if (tx_info->flags & IEEE80211_TX_CTL_AMPDU) {
ASSERT((mcl & TXC_AMPDU_MASK) != TXC_AMPDU_NONE);
wlc_ampdu_dotxstatus(wlc->ampdu, scb, p, txs);
- return FALSE;
+ return false;
}
supr_status = txs->status & TX_STATUS_SUPR_MASK;
@@ -6897,7 +6897,7 @@ wlc_dotxstatus(wlc_info_t *wlc, tx_status_t *txs, u32 frm_tx2)
__func__));
}
- return FALSE;
+ return false;
fatal:
ASSERT(0);
@@ -6933,7 +6933,7 @@ wlc_txfifo_complete(wlc_info_t *wlc, uint fifo, s8 txpktpend)
/* Clear MHF2_TXBCMC_NOW flag if BCMC fifo has drained */
if (AP_ENAB(wlc->pub) &&
wlc->bcmcfifo_drain && !TXPKTPENDGET(wlc, TX_BCMC_FIFO)) {
- wlc->bcmcfifo_drain = FALSE;
+ wlc->bcmcfifo_drain = false;
wlc_mhf(wlc, MHF2, MHF2_TXBCMC_NOW, 0, WLC_BAND_AUTO);
}
@@ -7203,7 +7203,7 @@ void wlc_bss_list_free(wlc_info_t *wlc, wlc_bss_list_t *bss_list)
/* Process received frames */
/*
- * Return true if more frames need to be processed. FALSE otherwise.
+ * Return true if more frames need to be processed. false otherwise.
* Param 'bound' indicates max. # frames to process before break out.
*/
/* WLC_HIGH_API */
@@ -7293,7 +7293,7 @@ void BCMFASTPATH wlc_recv(wlc_info_t *wlc, void *p)
return;
toss:
- PKTFREE(osh, p, FALSE);
+ PKTFREE(osh, p, false);
}
/* calculate frame duration for Mixed-mode L-SIG spoofing, return
@@ -7691,7 +7691,7 @@ bool wlc_valid_rate(wlc_info_t *wlc, ratespec_t rspec, int band, bool verbose)
hw_rateset = &wlc->bandstate[OTHERBANDUNIT(wlc)]->hw_rateset;
} else {
/* other band specified and we are a single band device */
- return FALSE;
+ return false;
}
/* check if this is a mimo rate */
@@ -7710,7 +7710,7 @@ bool wlc_valid_rate(wlc_info_t *wlc, ratespec_t rspec, int band, bool verbose)
WL_ERROR(("wl%d: wlc_valid_rate: rate spec 0x%x not in hw_rateset\n", wlc->pub->unit, rspec));
}
- return FALSE;
+ return false;
}
static void wlc_update_mimo_band_bwcap(wlc_info_t *wlc, u8 bwcap)
@@ -7727,13 +7727,13 @@ static void wlc_update_mimo_band_bwcap(wlc_info_t *wlc, u8 bwcap)
|| (bwcap == WLC_N_BW_20IN2G_40IN5G))
band->mimo_cap_40 = true;
else
- band->mimo_cap_40 = FALSE;
+ band->mimo_cap_40 = false;
} else {
ASSERT(band->bandtype == WLC_BAND_2G);
if (bwcap == WLC_N_BW_40ALL)
band->mimo_cap_40 = true;
else
- band->mimo_cap_40 = FALSE;
+ band->mimo_cap_40 = false;
}
}
@@ -7943,7 +7943,7 @@ void wlc_bss_update_beacon(wlc_info_t *wlc, wlc_bsscfg_t *cfg)
/* update the template and ucode shm */
wlc_bcn_prb_template(wlc, FC_BEACON, wlc->bcn_rspec, cfg, bcn,
&len);
- wlc_write_hw_bcntemplates(wlc, bcn, len, FALSE);
+ wlc_write_hw_bcntemplates(wlc, bcn, len, false);
}
}
@@ -8129,7 +8129,7 @@ int wlc_get_revision_info(wlc_info_t *wlc, void *buf, uint len)
void wlc_default_rateset(wlc_info_t *wlc, wlc_rateset_t *rs)
{
wlc_rateset_default(rs, NULL, wlc->band->phytype, wlc->band->bandtype,
- FALSE, RATE_MASK_FULL, (bool) N_ENAB(wlc->pub),
+ false, RATE_MASK_FULL, (bool) N_ENAB(wlc->pub),
CHSPEC_WLC_BW(wlc->default_bss->chanspec),
wlc->stf->txstreams);
}
@@ -8162,7 +8162,7 @@ static void wlc_bss_default_init(wlc_info_t *wlc)
/* init bss rates to the band specific default rate set */
wlc_rateset_default(&bi->rateset, NULL, band->phytype, band->bandtype,
- FALSE, RATE_MASK_FULL, (bool) N_ENAB(wlc->pub),
+ false, RATE_MASK_FULL, (bool) N_ENAB(wlc->pub),
CHSPEC_WLC_BW(chanspec), wlc->stf->txstreams);
if (N_ENAB(wlc->pub))
@@ -8483,7 +8483,7 @@ void wlc_pllreq(wlc_info_t *wlc, bool set, mbool req_bit)
void wlc_reset_bmac_done(wlc_info_t *wlc)
{
#ifdef WLC_HIGH_ONLY
- wlc->reset_bmac_pending = FALSE;
+ wlc->reset_bmac_pending = false;
#endif
}
diff --git a/drivers/staging/brcm80211/sys/wlc_mac80211.h b/drivers/staging/brcm80211/sys/wlc_mac80211.h
index c9f8442..602925f 100644
--- a/drivers/staging/brcm80211/sys/wlc_mac80211.h
+++ b/drivers/staging/brcm80211/sys/wlc_mac80211.h
@@ -723,7 +723,7 @@ struct wlc_info {
u16 counter; /* per-sdu monotonically increasing counter */
u16 mc_fid_counter; /* BC/MC FIFO frame ID counter */
- bool ibss_allowed; /* FALSE, all IBSS will be ignored during a scan
+ bool ibss_allowed; /* false, all IBSS will be ignored during a scan
* and the driver will not allow the creation of
* an IBSS network
*/
@@ -847,7 +847,7 @@ struct antsel_info {
/* sum the individual fifo tx pending packet counts */
#if defined(WLC_HIGH_ONLY)
#define TXPKTPENDTOT(wlc) (wlc_rpctx_txpktpend((wlc)->rpctx, 0, true))
-#define TXPKTPENDGET(wlc, fifo) (wlc_rpctx_txpktpend((wlc)->rpctx, (fifo), FALSE))
+#define TXPKTPENDGET(wlc, fifo) (wlc_rpctx_txpktpend((wlc)->rpctx, (fifo), false))
#define TXPKTPENDINC(wlc, fifo, val) (wlc_rpctx_txpktpendinc((wlc)->rpctx, (fifo), (val)))
#define TXPKTPENDDEC(wlc, fifo, val) (wlc_rpctx_txpktpenddec((wlc)->rpctx, (fifo), (val)))
#define TXPKTPENDCLR(wlc, fifo) (wlc_rpctx_txpktpendclr((wlc)->rpctx, (fifo)))
diff --git a/drivers/staging/brcm80211/sys/wlc_rate.c b/drivers/staging/brcm80211/sys/wlc_rate.c
index 1108d1c..d4dcd05 100644
--- a/drivers/staging/brcm80211/sys/wlc_rate.c
+++ b/drivers/staging/brcm80211/sys/wlc_rate.c
@@ -265,7 +265,7 @@ static bool wlc_rateset_valid(wlc_rateset_t *rs, bool check_brate)
uint idx;
if (!rs->count)
- return FALSE;
+ return false;
if (!check_brate)
return true;
@@ -275,7 +275,7 @@ static bool wlc_rateset_valid(wlc_rateset_t *rs, bool check_brate)
if (rs->rates[idx] & WLC_RATE_FLAG)
return true;
}
- return FALSE;
+ return false;
}
void wlc_rateset_mcs_upd(wlc_rateset_t *rs, u8 txstreams)
@@ -328,7 +328,7 @@ wlc_rate_hwrs_filter_sort_validate(wlc_rateset_t *rs,
if (wlc_rateset_valid(rs, check_brate))
return true;
else
- return FALSE;
+ return false;
}
/* caluclate the rate of a rx'd frame and return it as a ratespec */
@@ -460,10 +460,10 @@ wlc_rateset_default(wlc_rateset_t *rs_tgt, const wlc_rateset_t *rs_hw,
wlc_rateset_copy(rs_dflt, &rs_sel);
wlc_rateset_mcs_upd(&rs_sel, txstreams);
- wlc_rateset_filter(&rs_sel, rs_tgt, FALSE,
+ wlc_rateset_filter(&rs_sel, rs_tgt, false,
cck_only ? WLC_RATES_CCK : WLC_RATES_CCK_OFDM,
rate_mask, mcsallow);
- wlc_rate_hwrs_filter_sort_validate(rs_tgt, rs_hw, FALSE,
+ wlc_rate_hwrs_filter_sort_validate(rs_tgt, rs_hw, false,
mcsallow ? txstreams : 1);
}
diff --git a/drivers/staging/brcm80211/sys/wlc_rpctx.h b/drivers/staging/brcm80211/sys/wlc_rpctx.h
index d2b94ea..7427154 100644
--- a/drivers/staging/brcm80211/sys/wlc_rpctx.h
+++ b/drivers/staging/brcm80211/sys/wlc_rpctx.h
@@ -51,11 +51,11 @@ extern void wlc_rpctx_txpktpendclr(rpctx_info_t *rpctx, uint fifo);
extern int wlc_rpctx_txpktpend(rpctx_info_t *rpctx, uint fifo, bool all);
#else
-#define RPCTX_ENAB(pub) (FALSE)
+#define RPCTX_ENAB(pub) (false)
#define wlc_rpctx_attach(pub, wlc) (NULL)
#define wlc_rpctx_fifoinit(rpctx, fifo, ntxd) (0)
#define wlc_rpctx_detach(rpctx) ASSERT(0)
-#define wlc_rpctx_txavail(rpctx, f) (FALSE)
+#define wlc_rpctx_txavail(rpctx, f) (false)
#define wlc_rpctx_dump(rpctx, b) (0)
#define wlc_rpctx_getnexttxp(rpctx, f) (NULL)
#define wlc_rpctx_txreclaim(rpctx) ASSERT(0)
diff --git a/drivers/staging/brcm80211/sys/wlc_stf.c b/drivers/staging/brcm80211/sys/wlc_stf.c
index 05a67df..8bf4289 100644
--- a/drivers/staging/brcm80211/sys/wlc_stf.c
+++ b/drivers/staging/brcm80211/sys/wlc_stf.c
@@ -157,11 +157,11 @@ static s8 wlc_stf_stbc_rx_get(wlc_info_t *wlc)
static bool wlc_stf_stbc_tx_set(wlc_info_t *wlc, s32 int_val)
{
if ((int_val != AUTO) && (int_val != OFF) && (int_val != ON)) {
- return FALSE;
+ return false;
}
if ((int_val == ON) && (wlc->stf->txstreams == 1))
- return FALSE;
+ return false;
if ((int_val == OFF) || (wlc->stf->txstreams == 1)
|| !WLC_STBC_CAP_PHY(wlc))
@@ -179,13 +179,13 @@ bool wlc_stf_stbc_rx_set(wlc_info_t *wlc, s32 int_val)
{
if ((int_val != HT_CAP_RX_STBC_NO)
&& (int_val != HT_CAP_RX_STBC_ONE_STREAM)) {
- return FALSE;
+ return false;
}
if (WLC_STF_SS_STBC_RX(wlc)) {
if ((int_val != HT_CAP_RX_STBC_NO)
&& (wlc->stf->rxstreams == 1))
- return FALSE;
+ return false;
}
wlc_stf_stbc_rx_ht_update(wlc, int_val);
OpenPOWER on IntegriCloud