Lines Matching +full:mode +full:- +full:capable

1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2006 Atheros Communications, Inc.
50 OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt); in ar5211SetBeaconTimers()
51 OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba); in ar5211SetBeaconTimers()
52 OS_REG_WRITE(ah, AR_TIMER2, bt->bt_nextswba); in ar5211SetBeaconTimers()
53 OS_REG_WRITE(ah, AR_TIMER3, bt->bt_nextatim); in ar5211SetBeaconTimers()
57 OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval); in ar5211SetBeaconTimers()
71 * TIMER1: in AP/adhoc mode this controls the DMA beacon in ar5211BeaconInit()
73 * TIMER2: in AP mode, it controls the SBA beacon alert in ar5211BeaconInit()
76 switch (AH_PRIVATE(ah)->ah_opmode) { in ar5211BeaconInit()
84 bt.bt_nextdba = (next_beacon - in ar5211BeaconInit()
85 ah->ah_config.ah_dma_beacon_response_time) << 3; /* 1/8 TU */ in ar5211BeaconInit()
86 bt.bt_nextswba = (next_beacon - in ar5211BeaconInit()
87 ah->ah_config.ah_sw_beacon_response_time) << 3; /* 1/8 TU */ in ar5211BeaconInit()
110 /* tell the h/w that the associated AP is not PCF capable */ in ar5211ResetStaBeaconTimers()
128 HALASSERT(bs->bs_intval != 0); in ar5211SetStaBeaconTimers()
130 if (bs->bs_cfpmaxduration != 0) { in ar5211SetStaBeaconTimers()
131 /* tell the h/w that the associated AP is PCF capable */ in ar5211SetStaBeaconTimers()
136 OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod); in ar5211SetStaBeaconTimers()
139 OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration); in ar5211SetStaBeaconTimers()
142 OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3); in ar5211SetStaBeaconTimers()
144 /* tell the h/w that the associated AP is not PCF capable */ in ar5211SetStaBeaconTimers()
152 OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt); in ar5211SetStaBeaconTimers()
163 | SM(bs->bs_intval, AR_BEACON_PERIOD) in ar5211SetStaBeaconTimers()
164 | SM(bs->bs_timoffset ? bs->bs_timoffset + 4 : 0, AR_BEACON_TIM) in ar5211SetStaBeaconTimers()
172 HALASSERT(bs->bs_bmissthreshold <= MS(0xffffffff, AR_RSSI_THR_BM_THR)); in ar5211SetStaBeaconTimers()
173 ahp->ah_rssiThr = (ahp->ah_rssiThr &~ AR_RSSI_THR_BM_THR) in ar5211SetStaBeaconTimers()
174 | SM(bs->bs_bmissthreshold, AR_RSSI_THR_BM_THR); in ar5211SetStaBeaconTimers()
175 OS_REG_WRITE(ah, AR_RSSI_THR, ahp->ah_rssiThr); in ar5211SetStaBeaconTimers()
182 (bs->bs_sleepduration - SLEEP_SLOP) << 3); in ar5211SetStaBeaconTimers()