mac80211: track work started through callbacks
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 25 Jan 2010 12:36:36 +0000 (13:36 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Jan 2010 21:36:29 +0000 (16:36 -0500)
commit723bae7ee44fd79c1cd3c7531ed581d373920774
tree2f82c098aeb61694d4f6e1ec7f9bb3c29b7d43f3
parent382b16559d599c4260aeb82a5ea5ba44459d1cd2
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>
net/mac80211/ieee80211_i.h
net/mac80211/work.c