]> err.no Git - linux-2.6/commitdiff
[PATCH] libertas: support for mesh autostart on firmware 5.220.11
authorLuis Carlos Cobo Rus <luisca@cozybit.com>
Sat, 26 May 2007 03:12:19 +0000 (23:12 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jun 2007 18:28:45 +0000 (14:28 -0400)
Signed-off-by: Luis Carlos Cobo Rus <luisca@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmdresp.c
drivers/net/wireless/libertas/host.h
drivers/net/wireless/libertas/main.c

index c0c04711196fd2aa2406326640339a1151cc5021..3b069341f35ff22205ad34827f6afe9eb08474fb 100644 (file)
@@ -1009,6 +1009,16 @@ int libertas_process_event(wlan_private * priv)
                lbs_pr_alert( "EVENT: SNR_HIGH\n");
                break;
 
+       case MACREG_INT_CODE_MESH_AUTO_STARTED:
+               lbs_pr_alert( "EVENT: MESH_AUTO_STARTED\n");
+               adapter->connect_status = libertas_connected ;
+               if (priv->mesh_open == 1) {
+                       netif_wake_queue(priv->mesh_dev) ;
+                       netif_carrier_on(priv->mesh_dev) ;
+               }
+               adapter->mode = IW_MODE_ADHOC ;
+               break;
+
        default:
                lbs_pr_alert( "EVENT: unknown event id: %#x\n",
                       eventcause >> SBI_EVENT_CAUSE_SHIFT);
index e12dbc65acccaf83777d72dd6bd817a98fe5d673..cedf1dbab050626c948dd57cc06d7e5a89d3ad1f 100644 (file)
@@ -336,5 +336,6 @@ enum cmd_mesh_access_opts {
 #define MACREG_INT_CODE_MAX_FAIL               0x0000001b
 #define MACREG_INT_CODE_RSSI_HIGH              0x0000001c
 #define MACREG_INT_CODE_SNR_HIGH               0x0000001d
+#define MACREG_INT_CODE_MESH_AUTO_STARTED      0x00000023
 
 #endif                         /* _HOST_H_ */
index 61cf95b734302d2a011e082c65b2303875c329b4..072eeebfdcd15efab49e4614afe4c3bfb36e2884 100644 (file)
@@ -21,7 +21,7 @@
 #include "debugfs.h"
 #include "assoc.h"
 
-#define DRIVER_RELEASE_VERSION "321.p0"
+#define DRIVER_RELEASE_VERSION "322.p0"
 const char libertas_driver_version[] = "COMM-USB8388-" DRIVER_RELEASE_VERSION
 #ifdef  DEBUG
     "-dbg"