Skip to content

Commit

Permalink
[PATCH] Fix softmac scan
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lwfinger authored and linvjw committed Mar 23, 2006
1 parent 1196862 commit fe0b06b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ieee80211/softmac/ieee80211softmac_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe0b06b

Please sign in to comment.