aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorSenthil Balasubramanian <senthilkumar@atheros.com>2008-12-08 09:13:49 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-12 13:48:27 -0500
commit2df1bff4c5cd0b28e06e4defc3f5d90618db8d53 (patch)
treed5f92ccc0b042a7d38afeb764aec502b63fb50d4 /drivers/net/wireless
parente7594072a5b918510c937c1ab0acad4e8a931bc7 (diff)
ath9k: Incorrect band enum causes invalid antenna configuration.
It's a regression from the patch titled "ath9k: Use mac80211's band macros and remove enum hal_freq_band". MAC80211 band macros can't be mapped directly with our hal band enum. Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath9k/eeprom.c2
-rw-r--r--drivers/net/wireless/ath9k/hw.c4
-rw-r--r--drivers/net/wireless/ath9k/hw.h5
3 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.c b/drivers/net/wireless/ath9k/eeprom.c
index d4e51dda413c..14f8d40c1427 100644
--- a/drivers/net/wireless/ath9k/eeprom.c
+++ b/drivers/net/wireless/ath9k/eeprom.c
@@ -2631,7 +2631,7 @@ u8 ath9k_hw_get_def_num_ant_config(struct ath_hal *ah,
2631 struct ath_hal_5416 *ahp = AH5416(ah); 2631 struct ath_hal_5416 *ahp = AH5416(ah);
2632 struct ar5416_eeprom_def *eep = &ahp->ah_eeprom.def; 2632 struct ar5416_eeprom_def *eep = &ahp->ah_eeprom.def;
2633 struct modal_eep_header *pModal = 2633 struct modal_eep_header *pModal =
2634 &(eep->modalHeader[IEEE80211_BAND_5GHZ == freq_band]); 2634 &(eep->modalHeader[ATH9K_HAL_FREQ_BAND_2GHZ == freq_band]);
2635 struct base_eep_header *pBase = &eep->baseEepHeader; 2635 struct base_eep_header *pBase = &eep->baseEepHeader;
2636 u8 num_ant_config; 2636 u8 num_ant_config;
2637 2637
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c
index e95dfa0a030a..58f94c3f5e94 100644
--- a/drivers/net/wireless/ath9k/hw.c
+++ b/drivers/net/wireless/ath9k/hw.c
@@ -3387,9 +3387,9 @@ bool ath9k_hw_fill_cap_info(struct ath_hal *ah)
3387 pCap->reg_cap |= AR_EEPROM_EEREGCAP_EN_FCC_MIDBAND; 3387 pCap->reg_cap |= AR_EEPROM_EEREGCAP_EN_FCC_MIDBAND;
3388 3388
3389 pCap->num_antcfg_5ghz = 3389 pCap->num_antcfg_5ghz =
3390 ath9k_hw_get_num_ant_config(ah, IEEE80211_BAND_5GHZ); 3390 ath9k_hw_get_num_ant_config(ah, ATH9K_HAL_FREQ_BAND_5GHZ);
3391 pCap->num_antcfg_2ghz = 3391 pCap->num_antcfg_2ghz =
3392 ath9k_hw_get_num_ant_config(ah, IEEE80211_BAND_2GHZ); 3392 ath9k_hw_get_num_ant_config(ah, ATH9K_HAL_FREQ_BAND_2GHZ);
3393 3393
3394 return true; 3394 return true;
3395} 3395}
diff --git a/drivers/net/wireless/ath9k/hw.h b/drivers/net/wireless/ath9k/hw.h
index a4d52850bdd0..91d8f594af81 100644
--- a/drivers/net/wireless/ath9k/hw.h
+++ b/drivers/net/wireless/ath9k/hw.h
@@ -495,6 +495,11 @@ enum ar5416_rates {
495 Ar5416RateSize 495 Ar5416RateSize
496}; 496};
497 497
498enum ath9k_hal_freq_band {
499 ATH9K_HAL_FREQ_BAND_5GHZ = 0,
500 ATH9K_HAL_FREQ_BAND_2GHZ = 1
501};
502
498struct base_eep_header { 503struct base_eep_header {
499 u16 length; 504 u16 length;
500 u16 checksum; 505 u16 checksum;