diff options
Diffstat (limited to 'net/mac80211/ieee80211_rate.h')
-rw-r--r-- | net/mac80211/ieee80211_rate.h | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/net/mac80211/ieee80211_rate.h b/net/mac80211/ieee80211_rate.h index 3eb0696f3757..73f19e8aa51c 100644 --- a/net/mac80211/ieee80211_rate.h +++ b/net/mac80211/ieee80211_rate.h | |||
@@ -58,12 +58,6 @@ struct rate_control_ref { | |||
58 | struct kref kref; | 58 | struct kref kref; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | /* default 'simple' algorithm */ | ||
62 | extern struct rate_control_ops mac80211_rcsimple; | ||
63 | |||
64 | /* 'PID' algorithm */ | ||
65 | extern struct rate_control_ops mac80211_rcpid; | ||
66 | |||
67 | int ieee80211_rate_control_register(struct rate_control_ops *ops); | 61 | int ieee80211_rate_control_register(struct rate_control_ops *ops); |
68 | void ieee80211_rate_control_unregister(struct rate_control_ops *ops); | 62 | void ieee80211_rate_control_unregister(struct rate_control_ops *ops); |
69 | 63 | ||
@@ -170,4 +164,36 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local, | |||
170 | const char *name); | 164 | const char *name); |
171 | void rate_control_deinitialize(struct ieee80211_local *local); | 165 | void rate_control_deinitialize(struct ieee80211_local *local); |
172 | 166 | ||
167 | |||
168 | /* Rate control algorithms */ | ||
169 | #if defined(RC80211_SIMPLE_COMPILE) || \ | ||
170 | (defined(CONFIG_MAC80211_RC_SIMPLE) && \ | ||
171 | !defined(CONFIG_MAC80211_RC_SIMPLE_MODULE)) | ||
172 | extern int rc80211_simple_init(void); | ||
173 | extern void rc80211_simple_exit(void); | ||
174 | #else | ||
175 | static inline int rc80211_simple_init(void) | ||
176 | { | ||
177 | return 0; | ||
178 | } | ||
179 | static inline void rc80211_simple_exit(void) | ||
180 | { | ||
181 | } | ||
182 | #endif | ||
183 | |||
184 | #if defined(RC80211_PID_COMPILE) || \ | ||
185 | (defined(CONFIG_MAC80211_RC_PID) && \ | ||
186 | !defined(CONFIG_MAC80211_RC_PID_MODULE)) | ||
187 | extern int rc80211_pid_init(void); | ||
188 | extern void rc80211_pid_exit(void); | ||
189 | #else | ||
190 | static inline int rc80211_pid_init(void) | ||
191 | { | ||
192 | return 0; | ||
193 | } | ||
194 | static inline void rc80211_pid_exit(void) | ||
195 | { | ||
196 | } | ||
197 | #endif | ||
198 | |||
173 | #endif /* IEEE80211_RATE_H */ | 199 | #endif /* IEEE80211_RATE_H */ |