diff options
author | Javier Cardona <javier@cozybit.com> | 2007-05-25 12:06:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:38 -0400 |
commit | 51d84f501684db22f5fcc30821cbbde2a0a2f264 (patch) | |
tree | e8cc735e7a285fc753dbee4f6d2cfe7d08d69023 /drivers/net/wireless/libertas/scan.c | |
parent | 32a74b7c8f7b883b532e0e4333b7c3014d3d8fe8 (diff) |
[PATCH] libertas: fixed transmission flow control on the mesh interface
This patch implements proper transmission flow control on mshX.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index c2f5c946d24c..80284e609ce5 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -807,6 +807,8 @@ int wlan_scan_networks(wlan_private * priv, | |||
807 | if (!scancurrentchanonly) { | 807 | if (!scancurrentchanonly) { |
808 | netif_stop_queue(priv->wlan_dev.netdev); | 808 | netif_stop_queue(priv->wlan_dev.netdev); |
809 | netif_carrier_off(priv->wlan_dev.netdev); | 809 | netif_carrier_off(priv->wlan_dev.netdev); |
810 | netif_stop_queue(priv->mesh_dev); | ||
811 | netif_carrier_off(priv->mesh_dev); | ||
810 | } | 812 | } |
811 | 813 | ||
812 | ret = wlan_scan_channel_list(priv, | 814 | ret = wlan_scan_channel_list(priv, |
@@ -825,8 +827,8 @@ int wlan_scan_networks(wlan_private * priv, | |||
825 | wlan_scan_process_results(priv); | 827 | wlan_scan_process_results(priv); |
826 | 828 | ||
827 | if (priv->adapter->connect_status == libertas_connected) { | 829 | if (priv->adapter->connect_status == libertas_connected) { |
828 | netif_carrier_on(priv->wlan_dev.netdev); | 830 | netif_carrier_on(priv->mesh_dev); |
829 | netif_wake_queue(priv->wlan_dev.netdev); | 831 | netif_wake_queue(priv->mesh_dev); |
830 | } | 832 | } |
831 | 833 | ||
832 | out: | 834 | out: |