bandaid Dynamic Turbo A operation with old hal's: HAL_MODE_108A
does not have a rate table in older hal's so if we scan such a channel the driver will hit an assertion or crash; for old hal's fallback to using the static turbo rate table for this mode (not correct but good enough for now given none of the rate control algorithms understand how to switch between base+boost) Approved by: re (blanket wireless)
This commit is contained in:
parent
0874cc7a2f
commit
74666fdfce
@ -5605,6 +5605,10 @@ ath_rate_setup(struct ath_softc *sc, u_int mode)
|
||||
break;
|
||||
case IEEE80211_MODE_TURBO_A:
|
||||
rt = ath_hal_getratetable(ah, HAL_MODE_108A);
|
||||
#if HAL_ABI_VERSION < 0x07013100
|
||||
if (rt == NULL) /* XXX bandaid for old hal's */
|
||||
rt = ath_hal_getratetable(ah, HAL_MODE_TURBO);
|
||||
#endif
|
||||
break;
|
||||
case IEEE80211_MODE_TURBO_G:
|
||||
rt = ath_hal_getratetable(ah, HAL_MODE_108G);
|
||||
|
Loading…
x
Reference in New Issue
Block a user