Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2321: ar5212_attach.patch

File ar5212_attach.patch, 1.3 kB (added by ppx <ppingxu@tranzeo.com>, 13 years ago)
  • ath_hal/ar5212/ar5212_attach.c

    old new  
    692692#define IS_GRIFFIN_LITE(ah) \ 
    693693    (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_VERSION_GRIFFIN && \ 
    694694     AH_PRIVATE(ah)->ah_macRev == AR_SREV_GRIFFIN_LITE) 
     695#define IS_EAGLE_LITE(ah) \ 
     696    (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_VERSION_EAGLE && \ 
     697     AH_PRIVATE(ah)->ah_macRev == 4) 
    695698#define IS_COBRA(ah) \ 
    696699    (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_VERSION_COBRA) 
    697700#define IS_2112(ah) \ 
     
    709712        } 
    710713        if (IS_2112(ah)) 
    711714                ath_hal_eepromSet(ah, AR_EEP_AMODE, AH_FALSE); 
    712         if (capField == 0 && IS_GRIFFIN_LITE(ah)) { 
     715        if (capField == 0 && (IS_GRIFFIN_LITE(ah) || IS_EAGLE_LITE(ah))) { 
    713716                /* 
    714                  * For griffin-lite cards with unprogrammed capabilities. 
     717                 * For lite cards with unprogrammed capabilities. 
    715718                 */ 
    716719                ath_hal_eepromSet(ah, AR_EEP_COMPRESS, AH_FALSE); 
    717720                ath_hal_eepromSet(ah, AR_EEP_FASTFRAME, AH_FALSE); 
    718721                ath_hal_eepromSet(ah, AR_EEP_TURBO5DISABLE, AH_TRUE); 
    719722                ath_hal_eepromSet(ah, AR_EEP_TURBO2DISABLE, AH_TRUE); 
    720723                HALDEBUG(ah, HAL_DEBUG_ATTACH, 
    721                     "%s: override caps for griffin-lite, now 0x%x (+!turbo)\n", 
     724                    "%s: override caps for lite cards, now 0x%x (+!turbo)\n", 
    722725                    __func__, capField); 
    723726        } 
    724727