|
@@ -271,8 +271,11 @@ ieee80211softmac_assoc_work(struct work_struct *work)
|
|
|
*/
|
|
|
dprintk(KERN_INFO PFX "Associate: Scanning for networks first.\n");
|
|
|
ieee80211softmac_notify(mac->dev, IEEE80211SOFTMAC_EVENT_SCAN_FINISHED, ieee80211softmac_assoc_notify_scan, NULL);
|
|
|
- if (ieee80211softmac_start_scan(mac))
|
|
|
+ if (ieee80211softmac_start_scan(mac)) {
|
|
|
dprintk(KERN_INFO PFX "Associate: failed to initiate scan. Is device up?\n");
|
|
|
+ mac->associnfo.associating = 0;
|
|
|
+ mac->associnfo.associated = 0;
|
|
|
+ }
|
|
|
goto out;
|
|
|
} else {
|
|
|
mac->associnfo.associating = 0;
|