aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee80211/softmac/ieee80211softmac_wx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_wx.c')
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_wx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_wx.c b/net/ieee80211/softmac/ieee80211softmac_wx.c
index 8e8ad08a411c..ac36767b56e8 100644
--- a/net/ieee80211/softmac/ieee80211softmac_wx.c
+++ b/net/ieee80211/softmac/ieee80211softmac_wx.c
@@ -91,7 +91,7 @@ check_assoc_again:
91 /* We must unlock to avoid deadlocks with the assoc workqueue 91 /* We must unlock to avoid deadlocks with the assoc workqueue
92 * on the associnfo.mutex */ 92 * on the associnfo.mutex */
93 mutex_unlock(&sm->associnfo.mutex); 93 mutex_unlock(&sm->associnfo.mutex);
94 flush_scheduled_work(); 94 flush_workqueue(sm->wq);
95 /* Avoid race! Check assoc status again. Maybe someone started an 95 /* Avoid race! Check assoc status again. Maybe someone started an
96 * association while we flushed. */ 96 * association while we flushed. */
97 goto check_assoc_again; 97 goto check_assoc_again;
@@ -114,7 +114,7 @@ check_assoc_again:
114 114
115 sm->associnfo.associating = 1; 115 sm->associnfo.associating = 1;
116 /* queue lower level code to do work (if necessary) */ 116 /* queue lower level code to do work (if necessary) */
117 schedule_delayed_work(&sm->associnfo.work, 0); 117 queue_delayed_work(sm->wq, &sm->associnfo.work, 0);
118 118
119 mutex_unlock(&sm->associnfo.mutex); 119 mutex_unlock(&sm->associnfo.mutex);
120 120
@@ -349,7 +349,7 @@ ieee80211softmac_wx_set_wap(struct net_device *net_dev,
349 /* force reassociation */ 349 /* force reassociation */
350 mac->associnfo.bssvalid = 0; 350 mac->associnfo.bssvalid = 0;
351 if (mac->associnfo.associated) 351 if (mac->associnfo.associated)
352 schedule_delayed_work(&mac->associnfo.work, 0); 352 queue_delayed_work(mac->wq, &mac->associnfo.work, 0);
353 } else if (is_zero_ether_addr(data->ap_addr.sa_data)) { 353 } else if (is_zero_ether_addr(data->ap_addr.sa_data)) {
354 /* the bssid we have is no longer fixed */ 354 /* the bssid we have is no longer fixed */
355 mac->associnfo.bssfixed = 0; 355 mac->associnfo.bssfixed = 0;
@@ -366,7 +366,7 @@ ieee80211softmac_wx_set_wap(struct net_device *net_dev,
366 /* tell the other code that this bssid should be used no matter what */ 366 /* tell the other code that this bssid should be used no matter what */
367 mac->associnfo.bssfixed = 1; 367 mac->associnfo.bssfixed = 1;
368 /* queue associate if new bssid or (old one again and not associated) */ 368 /* queue associate if new bssid or (old one again and not associated) */
369 schedule_delayed_work(&mac->associnfo.work, 0); 369 queue_delayed_work(mac->wq, &mac->associnfo.work, 0);
370 } 370 }
371 371
372 out: 372 out: