]> err.no Git - linux-2.6/commitdiff
[PATCH] Fix softmac scan
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 7 Feb 2006 21:20:52 +0000 (15:20 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Mar 2006 03:17:02 +0000 (22:17 -0500)
Softmac scanning fails because the stop flag is not cleared before
scanning is started. The attached one-line patch fixes this.

Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/ieee80211/softmac/ieee80211softmac_scan.c

index 846c62db3c4ca4a355321b083688de14d5aee0e4..290ddb0951d64b303209b6d7c3a1fac33f037e30 100644 (file)
@@ -178,6 +178,7 @@ int ieee80211softmac_start_scan_implementation(struct net_device *dev)
        dprintk(PFX "Scanning %d channels\n", sm->scaninfo->number_channels);
        sm->scaninfo->current_channel_idx = 0;
        sm->scaninfo->started = 1;
+       sm->scaninfo->stop = 0;
        INIT_COMPLETION(sm->scaninfo->finished);
        schedule_work(&sm->scaninfo->softmac_scan);
        spin_unlock_irqrestore(&sm->lock, flags);