summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Neal <anna@cozybit.com>2008-12-02 12:04:18 -0800
committerDeepak Saxena <dsaxena@laptop.org>2008-12-03 09:13:48 -0800
commit1748759877ff6c9c58d4938d24193cf83afb6ae7 (patch)
tree6299251251a19ca85356655f61adbef86170989c
parent011dd3f2d6fbd75ae2aacdcf8f99ebeddf814227 (diff)
downloadlwn-1748759877ff6c9c58d4938d24193cf83afb6ae7.tar.gz
lwn-1748759877ff6c9c58d4938d24193cf83afb6ae7.zip
libertas: Update Scanning to not bring down interface.
netif_carrier_off/on was causing packet loss during a scan. This is not needed to stop the transmit queues and is not used in any other drivers. Signed-off-by: Anna Neal <anna@cozybit.com>
-rw-r--r--drivers/net/wireless/libertas/scan.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 3647deccfec3..4dacb2fc356f 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -588,10 +588,8 @@ int lbs_scan_networks(struct lbs_private *priv,
filteredscan);
netif_stop_queue(priv->dev);
- netif_carrier_off(priv->dev);
if (priv->mesh_dev) {
netif_stop_queue(priv->mesh_dev);
- netif_carrier_off(priv->mesh_dev);
}
/* Prepare to continue an interrupted scan */
@@ -658,12 +656,10 @@ out2:
out:
if (priv->connect_status == LBS_CONNECTED) {
- netif_carrier_on(priv->dev);
if (!priv->tx_pending_len)
netif_wake_queue(priv->dev);
}
if (priv->mesh_dev && (priv->mesh_connect_status == LBS_CONNECTED)) {
- netif_carrier_on(priv->mesh_dev);
if (!priv->tx_pending_len)
netif_wake_queue(priv->mesh_dev);
}