Deleted Added
full compact
17c17
< * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9280.c 219605 2011-03-13 13:00:45Z adrian $
---
> * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9280.c 224519 2011-07-30 13:45:12Z adrian $
78a79
> uint8_t frac_n_5g;
87a89,91
> if (ath_hal_eepromGet(ah, AR_EEP_FRAC_N_5G, &frac_n_5g) != HAL_OK)
> frac_n_5g = 0;
>
109,113c113,122
< if ((freq % 20) == 0) {
< aModeRefSel = 3;
< } else if ((freq % 10) == 0) {
< aModeRefSel = 2;
< } else {
---
> switch (frac_n_5g) {
> case 0:
> if ((freq % 20) == 0) {
> aModeRefSel = 3;
> } else if ((freq % 10) == 0) {
> aModeRefSel = 2;
> }
> if (aModeRefSel) break;
> case 1:
> default:
123a133
>