aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/wext.c
diff options
context:
space:
mode:
authorBrajesh Dave <brajeshd@marvell.com>2007-11-20 17:44:14 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:52 -0500
commit01d77d8d4747d73cfb6daf35cdc906a2db8ded9d (patch)
tree2b6263df131d602fae21365ecb10f0c1a1e88ea0 /drivers/net/wireless/libertas/wext.c
parent798fbfec9ca1dfd656963debb14d049868d24465 (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/wext.c')
-rw-r--r--drivers/net/wireless/libertas/wext.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index 57fe5f67a05a..2231a65a537d 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -154,7 +154,8 @@ static void copy_active_data_rates(lbs_adapter *adapter, u8 *rates)
154{ 154{
155 lbs_deb_enter(LBS_DEB_WEXT); 155 lbs_deb_enter(LBS_DEB_WEXT);
156 156
157 if (adapter->connect_status != LBS_CONNECTED) 157 if ((adapter->connect_status != LBS_CONNECTED) &&
158 (adapter->mesh_connect_status != LBS_CONNECTED))
158 memcpy(rates, lbs_bg_rates, MAX_RATES); 159 memcpy(rates, lbs_bg_rates, MAX_RATES);
159 else 160 else
160 memcpy(rates, adapter->curbssparams.rates, MAX_RATES); 161 memcpy(rates, adapter->curbssparams.rates, MAX_RATES);
@@ -274,7 +275,7 @@ static int mesh_get_nick(struct net_device *dev, struct iw_request_info *info,
274 275
275 /* Use nickname to indicate that mesh is on */ 276 /* Use nickname to indicate that mesh is on */
276 277
277 if (adapter->connect_status == LBS_CONNECTED) { 278 if (adapter->mesh_connect_status == LBS_CONNECTED) {
278 strncpy(extra, "Mesh", 12); 279 strncpy(extra, "Mesh", 12);
279 extra[12] = '\0'; 280 extra[12] = '\0';
280 dwrq->length = strlen(extra); 281 dwrq->length = strlen(extra);
@@ -589,7 +590,8 @@ static int lbs_get_range(struct net_device *dev, struct iw_request_info *info,
589 590
590 range->num_frequency = 0; 591 range->num_frequency = 0;
591 if (priv->adapter->enable11d && 592 if (priv->adapter->enable11d &&
592 adapter->connect_status == LBS_CONNECTED) { 593 (adapter->connect_status == LBS_CONNECTED ||
594 adapter->mesh_connect_status == LBS_CONNECTED)) {
593 u8 chan_no; 595 u8 chan_no;
594 u8 band; 596 u8 band;
595 597
@@ -827,7 +829,8 @@ static struct iw_statistics *lbs_get_wireless_stats(struct net_device *dev)
827 priv->wstats.status = adapter->mode; 829 priv->wstats.status = adapter->mode;
828 830
829 /* If we're not associated, all quality values are meaningless */ 831 /* If we're not associated, all quality values are meaningless */
830 if (adapter->connect_status != LBS_CONNECTED) 832 if ((adapter->connect_status != LBS_CONNECTED) &&
833 (adapter->mesh_connect_status != LBS_CONNECTED))
831 goto out; 834 goto out;
832 835
833 /* Quality by RSSI */ 836 /* Quality by RSSI */