Skip to content

Commit

Permalink
mac80211: remove requeue from work
Browse files Browse the repository at this point in the history
There's no need to be requeueing the work struct
since we check for the scan after removing items
due to possible timeouts.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Dec 28, 2009
1 parent 1ed32e4 commit 095d5ef
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions net/mac80211/work.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,6 @@ ieee80211_direct_probe(struct ieee80211_work *wk)
*/
ieee80211_remove_auth_bss(local, wk);

/*
* We might have a pending scan which had no chance to run yet
* due to work needing to be done. Hence, queue the STAs work
* again for that.
*/
ieee80211_queue_work(&local->hw, &local->work_work);
return WORK_ACT_TIMEOUT;
}

Expand Down Expand Up @@ -478,12 +472,6 @@ ieee80211_authenticate(struct ieee80211_work *wk)
*/
ieee80211_remove_auth_bss(local, wk);

/*
* We might have a pending scan which had no chance to run yet
* due to work needing to be done. Hence, queue the STAs work
* again for that.
*/
ieee80211_queue_work(&local->hw, &local->work_work);
return WORK_ACT_TIMEOUT;
}

Expand Down Expand Up @@ -519,12 +507,6 @@ ieee80211_associate(struct ieee80211_work *wk)
if (wk->assoc.bss)
cfg80211_unlink_bss(local->hw.wiphy, wk->assoc.bss);

/*
* We might have a pending scan which had no chance to run yet
* due to work needing to be done. Hence, queue the STAs work
* again for that.
*/
ieee80211_queue_work(&local->hw, &local->work_work);
return WORK_ACT_TIMEOUT;
}

Expand Down

0 comments on commit 095d5ef

Please sign in to comment.