diff options
author | Pavel Roskin <proski@gnu.org> | 2009-08-02 14:30:15 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:24 -0400 |
commit | d8cc8926e9b4dc2ce513ee3325bf16b4ea6d94e8 (patch) | |
tree | 4ec925d139de91b7aaa8df58f705a958afe2993f | |
parent | 117839bd1251dc654938c529c95c7611ac260351 (diff) |
rt2x00: cancel all work on disconnect
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index b717afbf3f38..db54fcc94c8f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -893,6 +893,12 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev) | |||
893 | rt2x00lib_disable_radio(rt2x00dev); | 893 | rt2x00lib_disable_radio(rt2x00dev); |
894 | 894 | ||
895 | /* | 895 | /* |
896 | * Stop all work. | ||
897 | */ | ||
898 | cancel_work_sync(&rt2x00dev->filter_work); | ||
899 | cancel_work_sync(&rt2x00dev->intf_work); | ||
900 | |||
901 | /* | ||
896 | * Uninitialize device. | 902 | * Uninitialize device. |
897 | */ | 903 | */ |
898 | rt2x00lib_uninitialize(rt2x00dev); | 904 | rt2x00lib_uninitialize(rt2x00dev); |