diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-01-03 15:16:34 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-03 15:16:34 -0500 |
commit | 57adc1fcbae2c13104ce291b40f23e40a414fa87 (patch) | |
tree | a22d95cd3a96cbd515cd24fb0833739576c5e92f /drivers/net/wireless/libertas | |
parent | faa85aa24286a9e14ae7cc797352350c3ac39986 (diff) | |
parent | dc0d633e35643662f27a0b1c531da3cd6b204b9c (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Conflicts:
drivers/net/wireless/b43/dma.c
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r-- | drivers/net/wireless/libertas/cfg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index d1d84e0e30f..a7cd311cb1b 100644 --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c | |||
@@ -731,9 +731,11 @@ static void lbs_scan_worker(struct work_struct *work) | |||
731 | le16_to_cpu(scan_cmd->hdr.size), | 731 | le16_to_cpu(scan_cmd->hdr.size), |
732 | lbs_ret_scan, 0); | 732 | lbs_ret_scan, 0); |
733 | 733 | ||
734 | if (priv->scan_channel >= priv->scan_req->n_channels) | 734 | if (priv->scan_channel >= priv->scan_req->n_channels) { |
735 | /* Mark scan done */ | 735 | /* Mark scan done */ |
736 | cancel_delayed_work(&priv->scan_work); | ||
736 | lbs_scan_done(priv); | 737 | lbs_scan_done(priv); |
738 | } | ||
737 | 739 | ||
738 | /* Restart network */ | 740 | /* Restart network */ |
739 | if (carrier) | 741 | if (carrier) |
@@ -762,12 +764,12 @@ static void _internal_start_scan(struct lbs_private *priv, bool internal, | |||
762 | request->n_ssids, request->n_channels, request->ie_len); | 764 | request->n_ssids, request->n_channels, request->ie_len); |
763 | 765 | ||
764 | priv->scan_channel = 0; | 766 | priv->scan_channel = 0; |
765 | queue_delayed_work(priv->work_thread, &priv->scan_work, | ||
766 | msecs_to_jiffies(50)); | ||
767 | |||
768 | priv->scan_req = request; | 767 | priv->scan_req = request; |
769 | priv->internal_scan = internal; | 768 | priv->internal_scan = internal; |
770 | 769 | ||
770 | queue_delayed_work(priv->work_thread, &priv->scan_work, | ||
771 | msecs_to_jiffies(50)); | ||
772 | |||
771 | lbs_deb_leave(LBS_DEB_CFG80211); | 773 | lbs_deb_leave(LBS_DEB_CFG80211); |
772 | } | 774 | } |
773 | 775 | ||