Commit 1048643e authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath5k: Clean up eeprom parsing and add missing calibration data

This patch brings the ath5k eeprom parsing code in sync with the work
done on ath_info by Nick Kossifidis and integrates the missing parts
based on the code of the Atheros Legacy HAL release.
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7ac47010
...@@ -821,13 +821,6 @@ struct ath5k_athchan_2ghz { ...@@ -821,13 +821,6 @@ struct ath5k_athchan_2ghz {
return (false); \ return (false); \
} while (0) } while (0)
enum ath5k_ant_setting {
AR5K_ANT_VARIABLE = 0, /* variable by programming */
AR5K_ANT_FIXED_A = 1, /* fixed to 11a frequencies */
AR5K_ANT_FIXED_B = 2, /* fixed to 11b frequencies */
AR5K_ANT_MAX = 3,
};
/* /*
* Hardware interrupt abstraction * Hardware interrupt abstraction
*/ */
......
This diff is collapsed.
This diff is collapsed.
...@@ -674,7 +674,7 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, ...@@ -674,7 +674,7 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
(ee->ee_switch_settling[ee_mode] << 7) & 0x3f80, (ee->ee_switch_settling[ee_mode] << 7) & 0x3f80,
0xffffc07f); 0xffffc07f);
AR5K_REG_MASKED_BITS(ah, AR5K_PHY_GAIN, AR5K_REG_MASKED_BITS(ah, AR5K_PHY_GAIN,
(ee->ee_ant_tx_rx[ee_mode] << 12) & 0x3f000, (ee->ee_atn_tx_rx[ee_mode] << 12) & 0x3f000,
0xfffc0fff); 0xfffc0fff);
AR5K_REG_MASKED_BITS(ah, AR5K_PHY_DESIRED_SIZE, AR5K_REG_MASKED_BITS(ah, AR5K_PHY_DESIRED_SIZE,
(ee->ee_adc_desired_size[ee_mode] & 0x00ff) | (ee->ee_adc_desired_size[ee_mode] & 0x00ff) |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment