aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-04 14:09:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-10-06 16:30:39 -0400
commit8eb4980c33c35e97a0a226fdbc07e38da0f1f4aa (patch)
treef3e4b3a36d97f9fce5e8919489fa7a929b9941d3 /drivers/net/wireless/ath/ath9k/hw.h
parentbfc472bb736bf309158ea76897d255a283d0d31c (diff)
ath9k_hw: remove function pointer abstraction for internal ANI ops
The code gets more concise and readable when making the new ANI functions fall back to the old ones if ANI v2 is disabled. This also makes further code cleanup easier. Signed-off-by: Felix Fietkau <nbd@openwrt.org> 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.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index a87840bab2ad..c982a24146d2 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -509,14 +509,6 @@ struct ath_hw_antcomb_conf {
509 * @setup_calibration: set up calibration 509 * @setup_calibration: set up calibration
510 * @iscal_supported: used to query if a type of calibration is supported 510 * @iscal_supported: used to query if a type of calibration is supported
511 * 511 *
512 * @ani_reset: reset ANI parameters to default values
513 * @ani_lower_immunity: lower the noise immunity level. The level controls
514 * the power-based packet detection on hardware. If a power jump is
515 * detected the adapter takes it as an indication that a packet has
516 * arrived. The level ranges from 0-5. Each level corresponds to a
517 * few dB more of noise immunity. If you have a strong time-varying
518 * interference that is causing false detections (OFDM timing errors or
519 * CCK timing errors) the level can be increased.
520 * @ani_cache_ini_regs: cache the values for ANI from the initial 512 * @ani_cache_ini_regs: cache the values for ANI from the initial
521 * register settings through the register initialization. 513 * register settings through the register initialization.
522 */ 514 */
@@ -561,8 +553,6 @@ struct ath_hw_private_ops {
561 void (*do_getnf)(struct ath_hw *ah, int16_t nfarray[NUM_NF_READINGS]); 553 void (*do_getnf)(struct ath_hw *ah, int16_t nfarray[NUM_NF_READINGS]);
562 554
563 /* ANI */ 555 /* ANI */
564 void (*ani_reset)(struct ath_hw *ah, bool is_scanning);
565 void (*ani_lower_immunity)(struct ath_hw *ah);
566 void (*ani_cache_ini_regs)(struct ath_hw *ah); 556 void (*ani_cache_ini_regs)(struct ath_hw *ah);
567}; 557};
568 558
@@ -977,6 +967,7 @@ void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan);
977 * older families (AR5008, AR9001, AR9002) by using modparam_force_new_ani. 967 * older families (AR5008, AR9001, AR9002) by using modparam_force_new_ani.
978 */ 968 */
979extern int modparam_force_new_ani; 969extern int modparam_force_new_ani;
970void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning);
980void ath9k_hw_proc_mib_event(struct ath_hw *ah); 971void ath9k_hw_proc_mib_event(struct ath_hw *ah);
981void ath9k_hw_attach_ani_ops_old(struct ath_hw *ah); 972void ath9k_hw_attach_ani_ops_old(struct ath_hw *ah);
982void ath9k_hw_attach_ani_ops_new(struct ath_hw *ah); 973void ath9k_hw_attach_ani_ops_new(struct ath_hw *ah);