Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215029
b: refs/heads/master
c: 970bf9d
h: refs/heads/master
i:
  215027: e59c3d0
v: v3
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Oct 5, 2010
1 parent 57678ab commit 224ff77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4198a8d036c998ca8cec1b08116ab9f6a3a9ffff
refs/heads/master: 970bf9d40c03e48cc34ee2c1a70693a0e0fca3f6
10 changes: 9 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/eeprom_4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ static u32 ath9k_hw_4k_get_eeprom(struct ath_hw *ah,
struct ar5416_eeprom_4k *eep = &ah->eeprom.map4k;
struct modal_eep_4k_header *pModal = &eep->modalHeader;
struct base_eep_header_4k *pBase = &eep->baseEepHeader;
u16 ver_minor;

ver_minor = pBase->version & AR5416_EEP_VER_MINOR_MASK;

switch (param) {
case EEP_NFTHRESH_2:
Expand All @@ -204,7 +207,7 @@ static u32 ath9k_hw_4k_get_eeprom(struct ath_hw *ah,
case EEP_DB_2:
return pModal->db1_1;
case EEP_MINOR_REV:
return pBase->version & AR5416_EEP_VER_MINOR_MASK;
return ver_minor;
case EEP_TX_MASK:
return pBase->txMask;
case EEP_RX_MASK:
Expand All @@ -217,6 +220,11 @@ static u32 ath9k_hw_4k_get_eeprom(struct ath_hw *ah,
return pModal->version;
case EEP_ANT_DIV_CTL1:
return pModal->antdiv_ctl1;
case EEP_TXGAIN_TYPE:
if (ver_minor >= AR5416_EEP_MINOR_VER_19)
return pBase->txGainType;
else
return AR5416_EEP_TXGAIN_ORIGINAL;
default:
return 0;
}
Expand Down

0 comments on commit 224ff77

Please sign in to comment.