diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2009-09-18 05:37:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:40 -0400 |
commit | ebb90cfc32f0d7ee55be7787ce7d88e521e9ed01 (patch) | |
tree | bb8d6ee96ade93630ba01c5787dfebb4176eb28e /drivers/net/wireless/ath | |
parent | 63a75b912b00fbafeb54849ca3bcd0295ad68609 (diff) |
ath9k: Advertise midband for AR5416 devices
This has to be done if the EEPROM supports FCC Midband
capability.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h index 8463ba09c12c..33492741735d 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.h +++ b/drivers/net/wireless/ath/ath9k/eeprom.h | |||
@@ -639,6 +639,7 @@ struct ar9287_eeprom { | |||
639 | } __packed; | 639 | } __packed; |
640 | 640 | ||
641 | enum reg_ext_bitmap { | 641 | enum reg_ext_bitmap { |
642 | REG_EXT_FCC_MIDBAND = 0, | ||
642 | REG_EXT_JAPAN_MIDBAND = 1, | 643 | REG_EXT_JAPAN_MIDBAND = 1, |
643 | REG_EXT_FCC_DFS_HT40 = 2, | 644 | REG_EXT_FCC_DFS_HT40 = 2, |
644 | REG_EXT_JAPAN_NONDFS_HT40 = 3, | 645 | REG_EXT_JAPAN_NONDFS_HT40 = 3, |
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index b53faa09bdb5..7a4de3d8e6fb 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -3660,7 +3660,10 @@ void ath9k_hw_fill_cap_info(struct ath_hw *ah) | |||
3660 | AR_EEPROM_EEREGCAP_EN_KK_U1_EVEN; | 3660 | AR_EEPROM_EEREGCAP_EN_KK_U1_EVEN; |
3661 | } | 3661 | } |
3662 | 3662 | ||
3663 | pCap->reg_cap |= AR_EEPROM_EEREGCAP_EN_FCC_MIDBAND; | 3663 | /* Advertise midband for AR5416 with FCC midband set in eeprom */ |
3664 | if (regulatory->current_rd_ext & (1 << REG_EXT_FCC_MIDBAND) && | ||
3665 | AR_SREV_5416(ah)) | ||
3666 | pCap->reg_cap |= AR_EEPROM_EEREGCAP_EN_FCC_MIDBAND; | ||
3664 | 3667 | ||
3665 | pCap->num_antcfg_5ghz = | 3668 | pCap->num_antcfg_5ghz = |
3666 | ah->eep_ops->get_num_ant_config(ah, ATH9K_HAL_FREQ_BAND_5GHZ); | 3669 | ah->eep_ops->get_num_ant_config(ah, ATH9K_HAL_FREQ_BAND_5GHZ); |