diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2006-01-05 19:43:45 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-22 22:16:52 -0500 |
commit | 5c4df6da580b9317dc0856e235232b95cbc8251c (patch) | |
tree | df82db654b024cd7204f182cbc40101681e012c0 /net/ieee80211/softmac/ieee80211softmac_scan.c | |
parent | 45867e6a55aee984d69ce8f93a87e26d32d470dc (diff) |
[PATCH] softmac: convert to use global workqueue
Convert softmac to use global workqueue instead of private one...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_scan.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_scan.c b/net/ieee80211/softmac/ieee80211softmac_scan.c index b4b44fa8727d..1a1eda434cfd 100644 --- a/net/ieee80211/softmac/ieee80211softmac_scan.c +++ b/net/ieee80211/softmac/ieee80211softmac_scan.c | |||
@@ -93,7 +93,7 @@ void ieee80211softmac_scan(void *d) | |||
93 | // TODO: is this if correct, or should we do this only if scanning from assoc request? | 93 | // TODO: is this if correct, or should we do this only if scanning from assoc request? |
94 | if (sm->associnfo.req_essid.len) | 94 | if (sm->associnfo.req_essid.len) |
95 | ieee80211softmac_send_mgt_frame(sm, &sm->associnfo.req_essid, IEEE80211_STYPE_PROBE_REQ, 0); | 95 | ieee80211softmac_send_mgt_frame(sm, &sm->associnfo.req_essid, IEEE80211_STYPE_PROBE_REQ, 0); |
96 | queue_delayed_work(sm->workqueue, &si->softmac_scan, IEEE80211SOFTMAC_PROBE_DELAY); | 96 | schedule_delayed_work(&si->softmac_scan, IEEE80211SOFTMAC_PROBE_DELAY); |
97 | return; | 97 | return; |
98 | } else { | 98 | } else { |
99 | dprintk(PFX "Not probing Channel %d (not allowed here)\n", si->channels[current_channel_idx].channel); | 99 | dprintk(PFX "Not probing Channel %d (not allowed here)\n", si->channels[current_channel_idx].channel); |
@@ -158,7 +158,7 @@ int ieee80211softmac_start_scan_implementation(struct net_device *dev) | |||
158 | sm->scaninfo->current_channel_idx = 0; | 158 | sm->scaninfo->current_channel_idx = 0; |
159 | sm->scaninfo->started = 1; | 159 | sm->scaninfo->started = 1; |
160 | INIT_COMPLETION(sm->scaninfo->finished); | 160 | INIT_COMPLETION(sm->scaninfo->finished); |
161 | queue_work(sm->workqueue, &sm->scaninfo->softmac_scan); | 161 | schedule_work(&sm->scaninfo->softmac_scan); |
162 | spin_unlock_irqrestore(&sm->lock, flags); | 162 | spin_unlock_irqrestore(&sm->lock, flags); |
163 | return 0; | 163 | return 0; |
164 | } | 164 | } |