Lines Matching refs:chan

47 		   const struct ieee80211_channel *chan, uint16_t *rfXpdGain);
118 struct ieee80211_channel *chan, in ar5212Reset() argument
156 ichan = ath_hal_checkchannel(ah, chan); in ar5212Reset()
173 SAVE_CCK(ah, chan, isBmode); in ar5212Reset()
223 (chan->ic_freq != AH_PRIVATE(ah)->ah_curchan->ic_freq) && in ar5212Reset()
224 ((chan->ic_flags & IEEE80211_CHAN_ALLTURBO) == in ar5212Reset()
226 if (ar5212ChannelChange(ah, chan)) { in ar5212Reset()
260 if (!ar5212ChipReset(ah, chan)) { in ar5212Reset()
266 if (IEEE80211_IS_CHAN_2GHZ(chan)) { in ar5212Reset()
268 if (IEEE80211_IS_CHAN_108G(chan)) in ar5212Reset()
270 else if (IEEE80211_IS_CHAN_G(chan)) in ar5212Reset()
272 else if (IEEE80211_IS_CHAN_B(chan)) in ar5212Reset()
277 __func__, chan->ic_freq, chan->ic_flags); in ar5212Reset()
282 if (IEEE80211_IS_CHAN_TURBO(chan)) in ar5212Reset()
284 else if (IEEE80211_IS_CHAN_A(chan)) in ar5212Reset()
289 __func__, chan->ic_freq, chan->ic_flags); in ar5212Reset()
314 if (IEEE80211_IS_CHAN_HALF(chan) || IEEE80211_IS_CHAN_QUARTER(chan)) { in ar5212Reset()
315 ar5212SetIFSTiming(ah, chan); in ar5212Reset()
345 if (IEEE80211_IS_CHAN_G(chan)) { in ar5212Reset()
391 if (!ar5212SetTransmitPower(ah, chan, rfXpdGain)) { in ar5212Reset()
398 if (!ahp->ah_rfHal->setRfRegs(ah, chan, modesIndex, rfXpdGain)) { in ar5212Reset()
405 if (IEEE80211_IS_CHAN_OFDM(chan)) { in ar5212Reset()
408 ar5212SetSpurMitigation(ah, chan); in ar5212Reset()
409 ar5212SetDeltaSlope(ah, chan); in ar5212Reset()
413 if (!ar5212SetBoardValues(ah, chan)) { in ar5212Reset()
457 if (!ar5212SetChannel(ah, chan)) in ar5212Reset()
464 ar5212SetRateDurationTable(ah, chan); in ar5212Reset()
468 (IEEE80211_IS_CHAN_HALF(chan) || IEEE80211_IS_CHAN_QUARTER(chan))) { in ar5212Reset()
470 IEEE80211_IS_CHAN_HALF(chan) ? in ar5212Reset()
499 if (IEEE80211_IS_CHAN_B(chan)) { in ar5212Reset()
515 if (IEEE80211_IS_CHAN_HALF(chan)) { in ar5212Reset()
517 } else if (IEEE80211_IS_CHAN_QUARTER(chan)) { in ar5212Reset()
541 if (!IEEE80211_IS_CHAN_B(chan) && ahp->ah_bIQCalibration != IQ_CAL_DONE) { in ar5212Reset()
622 if (IEEE80211_IS_CHAN_5GHZ(chan)) { in ar5212Reset()
628 ath_hal_getantennareduction(ah, chan, twiceAntennaGain); in ar5212Reset()
633 if ((ackTpcPow-ahp->ah_txPowerIndexOffset) > chan->ic_maxpower) in ar5212Reset()
634 ackTpcPow = chan->ic_maxpower+ahp->ah_txPowerIndexOffset; in ar5212Reset()
636 if (ackTpcPow > (2*chan->ic_maxregpower - twiceAntennaReduction)) in ar5212Reset()
637 ackTpcPow = (2*chan->ic_maxregpower - twiceAntennaReduction) in ar5212Reset()
641 if ((ctsTpcPow-ahp->ah_txPowerIndexOffset) > chan->ic_maxpower) in ar5212Reset()
642 ctsTpcPow = chan->ic_maxpower+ahp->ah_txPowerIndexOffset; in ar5212Reset()
644 if (ctsTpcPow > (2*chan->ic_maxregpower - twiceAntennaReduction)) in ar5212Reset()
645 ctsTpcPow = (2*chan->ic_maxregpower - twiceAntennaReduction) in ar5212Reset()
649 if ((chirpTpcPow-ahp->ah_txPowerIndexOffset) > chan->ic_maxpower) in ar5212Reset()
650 chirpTpcPow = chan->ic_maxpower+ahp->ah_txPowerIndexOffset; in ar5212Reset()
652 if (chirpTpcPow > (2*chan->ic_maxregpower - twiceAntennaReduction)) in ar5212Reset()
653 chirpTpcPow = (2*chan->ic_maxregpower - twiceAntennaReduction) in ar5212Reset()
687 if (bChannelChange && !IEEE80211_IS_CHAN_DFS(chan)) in ar5212Reset()
688 chan->ic_state &= ~IEEE80211_CHANSTATE_CWINT; in ar5212Reset()
692 RESTORE_CCK(ah, chan, isBmode); in ar5212Reset()
698 RESTORE_CCK(ah, chan, isBmode); in ar5212Reset()
712 ar5212SetChannel(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5212SetChannel() argument
717 if (!ahp->ah_rfHal->setChannel(ah, chan)) in ar5212SetChannel()
729 ar5212ChannelChange(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5212ChannelChange() argument
740 ichan = ath_hal_checkchannel(ah, chan); in ar5212ChannelChange()
763 if (!ar5212SetChannel(ah, chan)) in ar5212ChannelChange()
771 if (IEEE80211_IS_CHAN_B(chan)) { in ar5212ChannelChange()
779 if (!ar5212SetTransmitPower(ah, chan, rfXpdGain)) { in ar5212ChannelChange()
786 if (IEEE80211_IS_CHAN_OFDM(chan)) { in ar5212ChannelChange()
789 ar5212SetSpurMitigation(ah, chan); in ar5212ChannelChange()
790 ar5212SetDeltaSlope(ah, chan); in ar5212ChannelChange()
861 ar5212ChipReset(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5212ChipReset() argument
864 OS_MARK(ah, AH_MARK_CHIPRESET, chan ? chan->ic_freq : 0); in ar5212ChipReset()
891 if (chan != AH_NULL) { /* NB: can be null during attach */ in ar5212ChipReset()
896 if (IEEE80211_IS_CHAN_HALF(chan)) in ar5212ChipReset()
898 else if (IEEE80211_IS_CHAN_QUARTER(chan)) in ar5212ChipReset()
901 if (IEEE80211_IS_CHAN_CCK(chan)) in ar5212ChipReset()
907 if (IEEE80211_IS_CHAN_CCK(chan)) in ar5212ChipReset()
911 if (IEEE80211_IS_CHAN_HALF(chan)) in ar5212ChipReset()
913 else if (IEEE80211_IS_CHAN_QUARTER(chan)) in ar5212ChipReset()
917 if (IEEE80211_IS_CHAN_CCK(chan)) in ar5212ChipReset()
921 if (IEEE80211_IS_CHAN_HALF(chan)) in ar5212ChipReset()
923 else if (IEEE80211_IS_CHAN_QUARTER(chan)) in ar5212ChipReset()
926 if (IEEE80211_IS_CHAN_G(chan)) in ar5212ChipReset()
928 else if (IEEE80211_IS_CHAN_OFDM(chan)) in ar5212ChipReset()
932 if (IEEE80211_IS_CHAN_5GHZ(chan)) in ar5212ChipReset()
936 turbo = IEEE80211_IS_CHAN_TURBO(chan) ? in ar5212ChipReset()
946 if (IEEE80211_IS_CHAN_CCK(chan)) { in ar5212ChipReset()
973 struct ieee80211_channel *chan, in ar5212PerCalibrationN() argument
984 OS_MARK(ah, AH_MARK_PERCAL, chan->ic_freq); in ar5212PerCalibrationN()
986 ichan = ath_hal_checkchannel(ah, chan); in ar5212PerCalibrationN()
990 __func__, chan->ic_freq, chan->ic_flags); in ar5212PerCalibrationN()
993 SAVE_CCK(ah, chan, isBmode); in ar5212PerCalibrationN()
1069 } else if (!IEEE80211_IS_CHAN_B(chan) && in ar5212PerCalibrationN()
1087 ar5212GetNf(ah, chan); in ar5212PerCalibrationN()
1088 if (!IEEE80211_IS_CHAN_CWINT(chan)) { in ar5212PerCalibrationN()
1090 if (IEEE80211_IS_CHAN_5GHZ(chan) || in ar5212PerCalibrationN()
1091 (IS_RAD5112(ah) && IEEE80211_IS_CHAN_OFDM(chan))) in ar5212PerCalibrationN()
1095 RESTORE_CCK(ah, chan, isBmode); in ar5212PerCalibrationN()
1102 ar5212PerCalibration(struct ath_hal *ah, struct ieee80211_channel *chan, in ar5212PerCalibration() argument
1105 return ar5212PerCalibrationN(ah, chan, 0x1, AH_TRUE, isIQdone); in ar5212PerCalibration()
1109 ar5212ResetCalValid(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5212ResetCalValid() argument
1113 ichan = ath_hal_checkchannel(ah, chan); in ar5212ResetCalValid()
1117 __func__, chan->ic_freq, chan->ic_flags); in ar5212ResetCalValid()
1309 getNoiseFloorThresh(struct ath_hal *ah, const struct ieee80211_channel *chan, in getNoiseFloorThresh() argument
1316 switch (chan->ic_flags & IEEE80211_CHAN_ALLFULL) { in getNoiseFloorThresh()
1330 __func__, chan->ic_freq, chan->ic_flags); in getNoiseFloorThresh()
1390 ar5212GetNf(struct ath_hal *ah, struct ieee80211_channel *chan) in ar5212GetNf() argument
1394 HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); in ar5212GetNf()
1409 if (getNoiseFloorThresh(ah, chan, &nfThresh)) { in ar5212GetNf()
1419 chan->ic_state |= IEEE80211_CHANSTATE_CWINT; in ar5212GetNf()
1510 const struct ieee80211_channel *chan) in ar5212SetAntennaSwitchInternal() argument
1522 switch (chan->ic_flags & IEEE80211_CHAN_ALLFULL) { in ar5212SetAntennaSwitchInternal()
1539 __func__, chan->ic_flags); in ar5212SetAntennaSwitchInternal()
1596 ar5212IsSpurChannel(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5212IsSpurChannel() argument
1598 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5212IsSpurChannel()
1611 ar5212SetBoardValues(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5212SetBoardValues() argument
1621 int is2GHz = IEEE80211_IS_CHAN_2GHZ(chan); in ar5212SetBoardValues()
1622 HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); in ar5212SetBoardValues()
1629 switch (chan->ic_flags & IEEE80211_CHAN_ALLTURBOFULL) { in ar5212SetBoardValues()
1647 __func__, chan->ic_flags); in ar5212SetBoardValues()
1655 ar5212SetAntennaSwitchInternal(ah, ahp->ah_antControl, chan); in ar5212SetBoardValues()
1662 if (ee->ee_version >= AR_EEPROM_VER5_0 && IEEE80211_IS_CHAN_TURBO(chan)) { in ar5212SetBoardValues()
1703 IEEE80211_IS_CHAN_OFDM(chan)) in ar5212SetBoardValues()
1706 if (ar5212IsSpurChannel(ah, chan)) in ar5212SetBoardValues()
1728 if (!IEEE80211_IS_CHAN_108G(chan) || ee->ee_version >= AR_EEPROM_VER5_0) in ar5212SetBoardValues()
1750 const struct ieee80211_channel *chan) in ar5212SetSpurMitigation() argument
1759 HAL_BOOL is2GHz = IEEE80211_IS_CHAN_2GHZ(chan); in ar5212SetSpurMitigation()
1760 HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); in ar5212SetSpurMitigation()
1782 if (IEEE80211_IS_CHAN_TURBO(chan)) in ar5212SetSpurMitigation()
1837 if (IEEE80211_IS_CHAN_TURBO(chan)) { in ar5212SetSpurMitigation()
1842 } else if (IEEE80211_IS_CHAN_G(chan)) { in ar5212SetSpurMitigation()
1848 HALASSERT(!IEEE80211_IS_CHAN_B(chan)); in ar5212SetSpurMitigation()
1928 ar5212SetDeltaSlope(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5212SetDeltaSlope() argument
1932 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5212SetDeltaSlope()
1936 if (IEEE80211_IS_CHAN_TURBO(chan)) in ar5212SetDeltaSlope()
1940 if (IEEE80211_IS_CHAN_HALF(chan)) { in ar5212SetDeltaSlope()
1942 } else if (IEEE80211_IS_CHAN_QUARTER(chan)) { in ar5212SetDeltaSlope()
2004 const struct ieee80211_channel *chan, uint16_t *rfXpdGain) in ar5212SetTransmitPower() argument
2012 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5212SetTransmitPower()
2027 if (!ar5212SetRateTable(ah, chan, tpcInDb, powerLimit, in ar5212SetTransmitPower()
2034 &minPower, &maxPower, chan, rfXpdGain)) { in ar5212SetTransmitPower()
2062 IEEE80211_IS_CHAN_G(chan)) { in ar5212SetTransmitPower()
2132 ar5212SetRateTable(struct ath_hal *ah, const struct ieee80211_channel *chan, in ar5212SetRateTable() argument
2137 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5212SetRateTable()
2153 twiceMaxRDPower = chan->ic_maxregpower * 2; in ar5212SetRateTable()
2158 cfgCtl = ath_hal_getctl(ah, chan); in ar5212SetRateTable()
2178 if (IEEE80211_IS_CHAN_G(chan)) { in ar5212SetRateTable()
2205 if (IEEE80211_IS_CHAN_5GHZ(chan)) { in ar5212SetRateTable()
2211 ath_hal_getantennareduction(ah, chan, twiceAntennaGain); in ar5212SetRateTable()
2213 if (IEEE80211_IS_CHAN_OFDM(chan)) { in ar5212SetRateTable()
2215 if (IEEE80211_IS_CHAN_2GHZ(chan)) { in ar5212SetRateTable()
2216 ar5212GetTargetPowers(ah, chan, ee->ee_trgtPwr_11g, in ar5212SetRateTable()
2219 ar5212GetTargetPowers(ah, chan, ee->ee_trgtPwr_11a, in ar5212SetRateTable()
2234 if (IEEE80211_IS_CHAN_TURBO(chan) in ar5212SetRateTable()
2251 IEEE80211_IS_CHAN_2GHZ(chan)) in ar5212SetRateTable()
2275 rpow[15] = AH_MIN(scaledPower, IEEE80211_IS_CHAN_2GHZ(chan) ? in ar5212SetRateTable()
2295 chan->ic_freq, chan->ic_flags, in ar5212SetRateTable()
2299 if (IEEE80211_IS_CHAN_CCK(chan)) { in ar5212SetRateTable()
2301 ar5212GetTargetPowers(ah, chan, ee->ee_trgtPwr_11b, in ar5212SetRateTable()
2339 tpcScaleReduction * 2, chan->ic_freq, chan->ic_flags, in ar5212SetRateTable()
2350 ar5212GetChipPowerLimits(struct ath_hal *ah, struct ieee80211_channel *chan) in ar5212GetChipPowerLimits() argument
2363 if (ahp->ah_rfHal->getChannelMaxMinPower(ah, chan, &maxPower, &minPower)) { in ar5212GetChipPowerLimits()
2365 chan->ic_maxpower = maxPower / 2; in ar5212GetChipPowerLimits()
2366 chan->ic_minpower = minPower / 2; in ar5212GetChipPowerLimits()
2370 __func__, chan->ic_freq, chan->ic_flags); in ar5212GetChipPowerLimits()
2371 chan->ic_maxpower = MAX_RATE_POWER; in ar5212GetChipPowerLimits()
2372 chan->ic_minpower = 0; in ar5212GetChipPowerLimits()
2384 if (!ar5212SetRateTable(ah, chan, tpcInDb, powerLimit, in ar5212GetChipPowerLimits()
2390 if (maxPower < chan->ic_maxpower) in ar5212GetChipPowerLimits()
2391 chan->ic_maxpower = maxPower; in ar5212GetChipPowerLimits()
2392 if (minPower < chan->ic_minpower) in ar5212GetChipPowerLimits()
2393 chan->ic_minpower = minPower; in ar5212GetChipPowerLimits()
2396 chan->ic_freq, chan->ic_maxpower, chans->ic_minpower); in ar5212GetChipPowerLimits()
2566 ar5212GetTargetPowers(struct ath_hal *ah, const struct ieee80211_channel *chan, in ar5212GetTargetPowers() argument
2570 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5212GetTargetPowers()
2716 const struct ieee80211_channel *chan) in ar5212SetRateDurationTable() argument
2722 if (IEEE80211_IS_CHAN_HALF(chan)) { in ar5212SetRateDurationTable()
2724 } else if (IEEE80211_IS_CHAN_QUARTER(chan)) { in ar5212SetRateDurationTable()
2728 IEEE80211_IS_CHAN_TURBO(chan) ? HAL_MODE_TURBO : HAL_MODE_11G); in ar5212SetRateDurationTable()
2737 if (!IEEE80211_IS_CHAN_TURBO(chan)) { in ar5212SetRateDurationTable()
2769 ar5212SetIFSTiming(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5212SetIFSTiming() argument
2773 HALASSERT(IEEE80211_IS_CHAN_HALF(chan) || in ar5212SetIFSTiming()
2774 IEEE80211_IS_CHAN_QUARTER(chan)); in ar5212SetIFSTiming()
2777 if (IEEE80211_IS_CHAN_HALF(chan)) { in ar5212SetIFSTiming()