summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/530-ath9k_remove_calinitdata.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-03 16:57:25 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-03 16:57:25 +0000
commit8c5fdf2ae8b470286a40684a3823159635b447c9 (patch)
tree3b1354ccf23f376dae0fd774fd1d9efad9819b92 /package/mac80211/patches/530-ath9k_remove_calinitdata.patch
parenta26814e6d64497363e371690e8a4ac44a2df1425 (diff)
ath9k: add a few fixes and cleanups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23198 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/530-ath9k_remove_calinitdata.patch')
-rw-r--r--package/mac80211/patches/530-ath9k_remove_calinitdata.patch75
1 files changed, 75 insertions, 0 deletions
diff --git a/package/mac80211/patches/530-ath9k_remove_calinitdata.patch b/package/mac80211/patches/530-ath9k_remove_calinitdata.patch
new file mode 100644
index 0000000000..78425e1dc2
--- /dev/null
+++ b/package/mac80211/patches/530-ath9k_remove_calinitdata.patch
@@ -0,0 +1,75 @@
+--- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
++++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
+@@ -45,11 +45,6 @@ static void ar9002_hw_setup_calibration(
+ ath_print(common, ATH_DBG_CALIBRATE,
+ "starting ADC DC Calibration\n");
+ break;
+- case ADC_DC_INIT_CAL:
+- REG_WRITE(ah, AR_PHY_CALMODE, AR_PHY_CALMODE_ADC_DC_INIT);
+- ath_print(common, ATH_DBG_CALIBRATE,
+- "starting Init ADC DC Calibration\n");
+- break;
+ case TEMP_COMP_CAL:
+ break; /* Not supported */
+ }
+@@ -950,13 +945,6 @@ static const struct ath9k_percal_data ad
+ ar9002_hw_adc_dccal_collect,
+ ar9002_hw_adc_dccal_calibrate
+ };
+-static const struct ath9k_percal_data adc_init_dc_cal = {
+- ADC_DC_INIT_CAL,
+- MIN_CAL_SAMPLES,
+- INIT_LOG_COUNT,
+- ar9002_hw_adc_dccal_collect,
+- ar9002_hw_adc_dccal_calibrate
+-};
+
+ static void ar9002_hw_init_cal_settings(struct ath_hw *ah)
+ {
+@@ -973,16 +961,12 @@ static void ar9002_hw_init_cal_settings(
+ &adc_gain_cal_single_sample;
+ ah->adcdc_caldata.calData =
+ &adc_dc_cal_single_sample;
+- ah->adcdc_calinitdata.calData =
+- &adc_init_dc_cal;
+ } else {
+ ah->iq_caldata.calData = &iq_cal_multi_sample;
+ ah->adcgain_caldata.calData =
+ &adc_gain_cal_multi_sample;
+ ah->adcdc_caldata.calData =
+ &adc_dc_cal_multi_sample;
+- ah->adcdc_calinitdata.calData =
+- &adc_init_dc_cal;
+ }
+ ah->supp_cals = ADC_GAIN_CAL | ADC_DC_CAL | IQ_MISMATCH_CAL;
+ }
+--- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
++++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
+@@ -50,7 +50,6 @@ static void ar9003_hw_setup_calibration(
+ ath_print(common, ATH_DBG_CALIBRATE,
+ "starting Temperature Compensation Calibration\n");
+ break;
+- case ADC_DC_INIT_CAL:
+ case ADC_GAIN_CAL:
+ case ADC_DC_CAL:
+ /* Not yet */
+--- a/drivers/net/wireless/ath/ath9k/calib.h
++++ b/drivers/net/wireless/ath/ath9k/calib.h
+@@ -59,7 +59,6 @@ struct ar5416IniArray {
+ } while (0)
+
+ enum ath9k_cal_types {
+- ADC_DC_INIT_CAL = 0x1,
+ ADC_GAIN_CAL = 0x2,
+ ADC_DC_CAL = 0x4,
+ IQ_MISMATCH_CAL = 0x8,
+--- a/drivers/net/wireless/ath/ath9k/hw.h
++++ b/drivers/net/wireless/ath/ath9k/hw.h
+@@ -692,7 +692,6 @@ struct ath_hw {
+ enum ath9k_cal_types supp_cals;
+ struct ath9k_cal_list iq_caldata;
+ struct ath9k_cal_list adcgain_caldata;
+- struct ath9k_cal_list adcdc_calinitdata;
+ struct ath9k_cal_list adcdc_caldata;
+ struct ath9k_cal_list tempCompCalData;
+ struct ath9k_cal_list *cal_list;