diff options
author | Brajesh Dave <brajeshd@marvell.com> | 2007-11-20 17:44:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:52 -0500 |
commit | 01d77d8d4747d73cfb6daf35cdc906a2db8ded9d (patch) | |
tree | 2b6263df131d602fae21365ecb10f0c1a1e88ea0 /drivers/net/wireless/libertas/scan.c | |
parent | 798fbfec9ca1dfd656963debb14d049868d24465 (diff) |
libertas: separate mesh connectivity from that of the main interface
The transmit and receive traffic as soon as the mesh interface is
brought up.
Test case 1: Bring up only the mesh interface and ping. No need for
any iwconfig commands on the main interface.
$ ifconfig msh0 192.168.5.3
$ iwconfig msh0 channel X
$ ping 192.168.5.2
If ping succeeds, PASS
Test case 2: Associate with the main interface, and turn off AP. Mesh
interface should not lose connectivity.
$ iwconfig eth0 mode managed essid "my_ssid"
$ ifconfig msh0 192.168.5.3
$ ping 192.168.5.2
<turn off access point>
If ping continues uninterrupted, PASS
This feature requires firmware version 5.110.19.p0 or newer, available
here: http://dev.laptop.org/pub/firmware/libertas/
Signed-off-by: Ashish Shukla <ashishs@marvell.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Dan Williams <dcbw@redhat.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 | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 30e1a8e8a16a..13a0838aa1e6 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -297,7 +297,8 @@ static void lbs_scan_create_channel_list(lbs_private *priv, | |||
297 | 297 | ||
298 | for (rgnidx = 0; rgnidx < ARRAY_SIZE(adapter->region_channel); rgnidx++) { | 298 | for (rgnidx = 0; rgnidx < ARRAY_SIZE(adapter->region_channel); rgnidx++) { |
299 | if (priv->adapter->enable11d && | 299 | if (priv->adapter->enable11d && |
300 | adapter->connect_status != LBS_CONNECTED) { | 300 | (adapter->connect_status != LBS_CONNECTED) && |
301 | (adapter->mesh_connect_status != LBS_CONNECTED)) { | ||
301 | /* Scan all the supported chan for the first scan */ | 302 | /* Scan all the supported chan for the first scan */ |
302 | if (!adapter->universal_channel[rgnidx].valid) | 303 | if (!adapter->universal_channel[rgnidx].valid) |
303 | continue; | 304 | continue; |
@@ -897,13 +898,14 @@ int lbs_scan_networks(lbs_private *priv, | |||
897 | mutex_unlock(&adapter->lock); | 898 | mutex_unlock(&adapter->lock); |
898 | #endif | 899 | #endif |
899 | 900 | ||
900 | if (priv->adapter->connect_status == LBS_CONNECTED) { | 901 | if (adapter->connect_status == LBS_CONNECTED) { |
901 | netif_carrier_on(priv->dev); | 902 | netif_carrier_on(priv->dev); |
902 | netif_wake_queue(priv->dev); | 903 | netif_wake_queue(priv->dev); |
903 | if (priv->mesh_dev) { | 904 | } |
904 | netif_carrier_on(priv->mesh_dev); | 905 | |
905 | netif_wake_queue(priv->mesh_dev); | 906 | if (priv->mesh_dev && (adapter->mesh_connect_status == LBS_CONNECTED)) { |
906 | } | 907 | netif_carrier_on(priv->mesh_dev); |
908 | netif_wake_queue(priv->mesh_dev); | ||
907 | } | 909 | } |
908 | 910 | ||
909 | out: | 911 | out: |