Commit fe0b06b1 authored by Larry Finger's avatar Larry Finger Committed by John W. Linville

[PATCH] Fix softmac scan

Softmac scanning fails because the stop flag is not cleared before
scanning is started. The attached one-line patch fixes this.
Signed-Off-By: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1196862b
...@@ -178,6 +178,7 @@ int ieee80211softmac_start_scan_implementation(struct net_device *dev) ...@@ -178,6 +178,7 @@ int ieee80211softmac_start_scan_implementation(struct net_device *dev)
dprintk(PFX "Scanning %d channels\n", sm->scaninfo->number_channels); dprintk(PFX "Scanning %d channels\n", sm->scaninfo->number_channels);
sm->scaninfo->current_channel_idx = 0; sm->scaninfo->current_channel_idx = 0;
sm->scaninfo->started = 1; sm->scaninfo->started = 1;
sm->scaninfo->stop = 0;
INIT_COMPLETION(sm->scaninfo->finished); INIT_COMPLETION(sm->scaninfo->finished);
schedule_work(&sm->scaninfo->softmac_scan); schedule_work(&sm->scaninfo->softmac_scan);
spin_unlock_irqrestore(&sm->lock, flags); spin_unlock_irqrestore(&sm->lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment