summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/rc.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-09-20 15:45:40 +0400
committerJohn W. Linville <linville@tuxdriver.com>2010-09-21 19:05:35 +0400
commit6e5c2b4e8addfaab8ef54dedaf7b607e1585c35b (patch)
tree02a6ffb04e06f658fcb92860b14be41b38b4b99e /drivers/net/wireless/ath/ath9k/rc.h
parent334b06029ed3f5e31d773527d54fb40e3ee571f9 (diff)
downloadlinux-6e5c2b4e8addfaab8ef54dedaf7b607e1585c35b.tar.xz
ath9k: make the driver specific rate control module optional
ath9k can use minstrel_ht instead, so it makes sense to save some space here. 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/rc.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/rc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.h b/drivers/net/wireless/ath/ath9k/rc.h
index dc1082654501..268072fd3c1c 100644
--- a/drivers/net/wireless/ath/ath9k/rc.h
+++ b/drivers/net/wireless/ath/ath9k/rc.h
@@ -224,7 +224,18 @@ enum ath9k_internal_frame_type {
ATH9K_IFT_UNPAUSE
};
+#ifdef CONFIG_ATH9K_RATE_CONTROL
int ath_rate_control_register(void);
void ath_rate_control_unregister(void);
+#else
+static inline int ath_rate_control_register(void)
+{
+ return 0;
+}
+
+static inline void ath_rate_control_unregister(void)
+{
+}
+#endif
#endif /* RC_H */