mac80211: track work started through callbacks

Currently, the remain_on_channel work callback needs
to track in its own data structure whether the work
was just started or not. By reordering some code this
becomes unnecessary, the generic wk->started variable
can still be 'false' on the first invocation and only
be 'true' on actual timeout invocations, so that the
extra variable can be removed.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Johannes Berg
2010-01-25 13:36:36 +01:00
committed by John W. Linville
orang tua 382b16559d
melakukan 723bae7ee4
2 mengubah file dengan 10 tambahan dan 8 penghapusan

Melihat File

@@ -299,7 +299,6 @@ struct ieee80211_work {
} assoc;
struct {
u32 duration;
bool started;
} remain;
};