Add a new HAL parameter which forces a full reset rather than warm reset.
This forces a full reset of the baseband/radio and seems needed to clear some issues (with Merlin at least) when the baseband gets confused in a very noisy environment. Sponsored by: Hobnob, Inc.
This commit is contained in:
parent
a1dd224b99
commit
d3054f72e0
@ -780,6 +780,7 @@ typedef struct
|
||||
int ah_dma_beacon_response_time;/* in TU's */
|
||||
int ah_sw_beacon_response_time; /* in TU's */
|
||||
int ah_additional_swba_backoff; /* in TU's */
|
||||
int ah_force_full_reset; /* force full chip reset rather then warm reset */
|
||||
} HAL_OPS_CONFIG;
|
||||
|
||||
/*
|
||||
|
@ -146,7 +146,9 @@ ar5416Reset(struct ath_hal *ah, HAL_OPMODE opmode,
|
||||
|
||||
/* For chips on which the RTC reset is done, save TSF before it gets cleared */
|
||||
if (AR_SREV_HOWL(ah) ||
|
||||
(AR_SREV_MERLIN(ah) && ath_hal_eepromGetFlag(ah, AR_EEP_OL_PWRCTRL)))
|
||||
(AR_SREV_MERLIN(ah) &&
|
||||
ath_hal_eepromGetFlag(ah, AR_EEP_OL_PWRCTRL)) ||
|
||||
(ah->ah_config.ah_force_full_reset))
|
||||
tsf = ar5416GetTsf64(ah);
|
||||
|
||||
/* Mark PHY as inactive; marked active in ar5416InitBB() */
|
||||
@ -733,12 +735,15 @@ ar5416ChipReset(struct ath_hal *ah, const struct ieee80211_channel *chan)
|
||||
{
|
||||
OS_MARK(ah, AH_MARK_CHIPRESET, chan ? chan->ic_freq : 0);
|
||||
/*
|
||||
* Warm reset is optimistic.
|
||||
* Warm reset is optimistic for open-loop TX power control.
|
||||
*/
|
||||
if (AR_SREV_MERLIN(ah) &&
|
||||
ath_hal_eepromGetFlag(ah, AR_EEP_OL_PWRCTRL)) {
|
||||
if (!ar5416SetResetReg(ah, HAL_RESET_POWER_ON))
|
||||
return AH_FALSE;
|
||||
} else if (ah->ah_config.ah_force_full_reset) {
|
||||
if (!ar5416SetResetReg(ah, HAL_RESET_POWER_ON))
|
||||
return AH_FALSE;
|
||||
} else {
|
||||
if (!ar5416SetResetReg(ah, HAL_RESET_WARM))
|
||||
return AH_FALSE;
|
||||
|
@ -893,4 +893,9 @@ ath_sysctl_hal_attach(struct ath_softc *sc)
|
||||
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "swba_backoff", CTLFLAG_RW,
|
||||
&sc->sc_ah->ah_config.ah_additional_swba_backoff, 0,
|
||||
"Atheros HAL additional SWBA backoff time");
|
||||
|
||||
sc->sc_ah->ah_config.ah_force_full_reset = 0;
|
||||
SYSCTL_ADD_INT(ctx, child, OID_AUTO, "force_full_reset", CTLFLAG_RW,
|
||||
&sc->sc_ah->ah_config.ah_force_full_reset, 0,
|
||||
"Force full chip reset rather than a warm reset");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user