aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/eeprom.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-02-11 23:36:45 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:51:43 -0500
commit06d0f0663e11cab4ec5f2c143a118d71a12fbbe9 (patch)
tree25f7f2dcee8b2f6acdf577a8122fd5da15e2b2b2 /drivers/net/wireless/ath9k/eeprom.c
parentfec0de1110e58ed39647e484bff8437e4185158d (diff)
ath9k: Enable Fractional N mode
This patch enables Fractional N mode for all channel if the EEPROM says so, and also fixes the INI only when the device is not a 2 GHz only capable device. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/eeprom.c')
-rw-r--r--drivers/net/wireless/ath9k/eeprom.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.c b/drivers/net/wireless/ath9k/eeprom.c
index 34e9d818fadd..68de89d7986f 100644
--- a/drivers/net/wireless/ath9k/eeprom.c
+++ b/drivers/net/wireless/ath9k/eeprom.c
@@ -466,6 +466,8 @@ static u32 ath9k_hw_4k_get_eeprom(struct ath_hw *ah,
466 return pBase->txMask; 466 return pBase->txMask;
467 case EEP_RX_MASK: 467 case EEP_RX_MASK:
468 return pBase->rxMask; 468 return pBase->rxMask;
469 case EEP_FRAC_N_5G:
470 return 0;
469 default: 471 default:
470 return 0; 472 return 0;
471 } 473 }
@@ -1599,6 +1601,11 @@ static u32 ath9k_hw_def_get_eeprom(struct ath_hw *ah,
1599 return pBase->dacHiPwrMode_5G; 1601 return pBase->dacHiPwrMode_5G;
1600 else 1602 else
1601 return 0; 1603 return 0;
1604 case EEP_FRAC_N_5G:
1605 if (AR5416_VER_MASK >= AR5416_EEP_MINOR_VER_22)
1606 return pBase->frac_n_5g;
1607 else
1608 return 0;
1602 default: 1609 default:
1603 return 0; 1610 return 0;
1604 } 1611 }