aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-04-15 17:38:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:27 -0400
commit641d99217f507024720d21f0a76a8075824fcc46 (patch)
tree885eadc6bb378c8c76b324c89d804ae5afea3ec1 /drivers/net/wireless/ath/ath9k/hw.h
parentb5c80475abaad015699384ca64ef8229fdd88758 (diff)
ath9k_hw: Split out the function for reading the noise floor
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 1eceda22ae5..7889ecbfeee 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -513,6 +513,7 @@ struct ath_hw_private_ops {
513 struct ath9k_channel *chan); 513 struct ath9k_channel *chan);
514 bool (*ani_control)(struct ath_hw *ah, enum ath9k_ani_cmd cmd, 514 bool (*ani_control)(struct ath_hw *ah, enum ath9k_ani_cmd cmd,
515 int param); 515 int param);
516 void (*do_getnf)(struct ath_hw *ah, int16_t nfarray[NUM_NF_READINGS]);
516}; 517};
517 518
518/** 519/**
@@ -553,6 +554,10 @@ struct ath_hw {
553 bool is_pciexpress; 554 bool is_pciexpress;
554 bool need_an_top2_fixup; 555 bool need_an_top2_fixup;
555 u16 tx_trig_level; 556 u16 tx_trig_level;
557 s16 nf_2g_max;
558 s16 nf_2g_min;
559 s16 nf_5g_max;
560 s16 nf_5g_min;
556 u16 rfsilent; 561 u16 rfsilent;
557 u32 rfkill_gpio; 562 u32 rfkill_gpio;
558 u32 rfkill_polarity; 563 u32 rfkill_polarity;
@@ -818,6 +823,13 @@ void ath9k_hw_htc_resetinit(struct ath_hw *ah);
818void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled, 823void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled,
819 u32 *coef_mantissa, u32 *coef_exponent); 824 u32 *coef_mantissa, u32 *coef_exponent);
820 825
826/*
827 * Code specifric to AR9003, we stuff these here to avoid callbacks
828 * for older families
829 */
830void ar9003_hw_set_nf_limits(struct ath_hw *ah);
831
832/* Hardware family op attach helpers */
821void ar5008_hw_attach_phy_ops(struct ath_hw *ah); 833void ar5008_hw_attach_phy_ops(struct ath_hw *ah);
822void ar9002_hw_attach_phy_ops(struct ath_hw *ah); 834void ar9002_hw_attach_phy_ops(struct ath_hw *ah);
823void ar9003_hw_attach_phy_ops(struct ath_hw *ah); 835void ar9003_hw_attach_phy_ops(struct ath_hw *ah);