diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index ed27de1de57b..dc5c6574aaf4 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -30,6 +30,7 @@ | |||
30 | /* | 30 | /* |
31 | * Interval defines | 31 | * Interval defines |
32 | */ | 32 | */ |
33 | #define WATCHDOG_INTERVAL round_jiffies_relative(HZ) | ||
33 | #define LINK_TUNE_INTERVAL round_jiffies_relative(HZ) | 34 | #define LINK_TUNE_INTERVAL round_jiffies_relative(HZ) |
34 | 35 | ||
35 | /* | 36 | /* |
@@ -257,11 +258,30 @@ void rt2x00link_stop_tuner(struct rt2x00_dev *rt2x00dev); | |||
257 | void rt2x00link_reset_tuner(struct rt2x00_dev *rt2x00dev, bool antenna); | 258 | void rt2x00link_reset_tuner(struct rt2x00_dev *rt2x00dev, bool antenna); |
258 | 259 | ||
259 | /** | 260 | /** |
260 | * rt2x00link_register - Initialize link tuning functionality | 261 | * rt2x00link_start_watchdog - Start periodic watchdog monitoring |
261 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | 262 | * @rt2x00dev: Pointer to &struct rt2x00_dev. |
262 | * | 263 | * |
263 | * Initialize work structure and all link tuning related | 264 | * This start the watchdog periodic work, this work will |
264 | * parameters. This will not start the link tuning process itself. | 265 | *be executed periodically until &rt2x00link_stop_watchdog has |
266 | * been called. | ||
267 | */ | ||
268 | void rt2x00link_start_watchdog(struct rt2x00_dev *rt2x00dev); | ||
269 | |||
270 | /** | ||
271 | * rt2x00link_stop_watchdog - Stop periodic watchdog monitoring | ||
272 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | ||
273 | * | ||
274 | * After this function completed the watchdog monitoring will not | ||
275 | * be running until &rt2x00link_start_watchdog is called. | ||
276 | */ | ||
277 | void rt2x00link_stop_watchdog(struct rt2x00_dev *rt2x00dev); | ||
278 | |||
279 | /** | ||
280 | * rt2x00link_register - Initialize link tuning & watchdog functionality | ||
281 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | ||
282 | * | ||
283 | * Initialize work structure and all link tuning and watchdog related | ||
284 | * parameters. This will not start the periodic work itself. | ||
265 | */ | 285 | */ |
266 | void rt2x00link_register(struct rt2x00_dev *rt2x00dev); | 286 | void rt2x00link_register(struct rt2x00_dev *rt2x00dev); |
267 | 287 | ||