net: wireless: bcm4329: Add FW Reload event processing
authorGreg Goldman <ggoldman@broadcom.com>
Tue, 9 Nov 2010 21:28:20 +0000 (13:28 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Tue, 9 Nov 2010 21:28:20 +0000 (13:28 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcm4329/dhd_linux.c
drivers/net/wireless/bcm4329/include/epivers.h
drivers/net/wireless/bcm4329/include/proto/bcmevent.h
drivers/net/wireless/bcm4329/wl_iw.c

index 3426b252c8b87c4f5cca8221895f7587980db2c1..424f6b2d0a4b4c888280ce71478cbfb11e63701c 100644 (file)
@@ -2229,6 +2229,7 @@ dhd_bus_start(dhd_pub_t *dhdp)
        setbit(dhdp->eventmask, WLC_E_TXFAIL);
        setbit(dhdp->eventmask, WLC_E_JOIN_START);
        setbit(dhdp->eventmask, WLC_E_SCAN_COMPLETE);
+       setbit(dhdp->eventmask, WLC_E_RELOAD);
 #ifdef PNO_SUPPORT
        setbit(dhdp->eventmask, WLC_E_PFN_NET_FOUND);
 #endif /* PNO_SUPPORT */
index 9e6942b5ab3e743e7b833e9b2d1ac675fa70d0e6..9b5a2f1f20d7a8b56af16c38ce4a810a59b137c1 100644 (file)
 
 #define        EPI_RC_NUMBER           248
 
-#define        EPI_INCREMENTAL_NUMBER  12
+#define        EPI_INCREMENTAL_NUMBER  13
 
 #define        EPI_BUILD_NUMBER        0
 
-#define        EPI_VERSION             4, 218, 248, 12
+#define        EPI_VERSION             4, 218, 248, 13
 
-#define        EPI_VERSION_NUM         0x04daf80c
+#define        EPI_VERSION_NUM         0x04daf80d
 
 
-#define        EPI_VERSION_STR         "4.218.248.12"
-#define        EPI_ROUTER_VERSION_STR  "4.219.248.12"
+#define        EPI_VERSION_STR         "4.218.248.13"
+#define        EPI_ROUTER_VERSION_STR  "4.219.248.13"
 
 #endif 
index 46c04d379227f3b5044236d8db868ac617ac1043..1f8ecb14d97a05f62ea263595e1530e756c46b09 100644 (file)
@@ -24,7 +24,7 @@
  *
  * Dependencies: proto/bcmeth.h
  *
- * $Id: bcmevent.h,v 9.34.4.1.20.16 2009/09/25 23:52:38 Exp $
+ * $Id: bcmevent.h,v 9.34.4.1.20.16.64.1 2010/11/08 21:57:03 Exp $
  *
  */
 
@@ -131,10 +131,10 @@ typedef BWL_PRE_PACKED_STRUCT struct bcm_event {
 #define WLC_E_ACTION_FRAME      58      
 #define WLC_E_ACTION_FRAME_COMPLETE 59  
 
-#define WLC_E_ESCAN_RESULT 69               
-#define WLC_E_WAKE_EVENT       70      
-#define WLC_E_LAST             71      
-       
+#define WLC_E_ESCAN_RESULT     69
+#define WLC_E_WAKE_EVENT       70
+#define WLC_E_RELOAD           71
+#define WLC_E_LAST             72
 
 
 
@@ -205,6 +205,7 @@ typedef BWL_PRE_PACKED_STRUCT struct bcm_event {
 #define WLC_E_IF_ADD           1       
 #define WLC_E_IF_DEL           2       
 
+#define WLC_E_RELOAD_STATUS1   1
 
 #include <packed_section_end.h>
 
index 70c258c27d37321bac451a799b713fae0c8228b0..c8a5033a304a549e9b6123462a411525e1c2dbd6 100644 (file)
@@ -7514,6 +7514,12 @@ wl_iw_event(struct net_device *dev, wl_event_msg_t *e, void* data)
        WL_TRACE(("%s: dev=%s event=%d \n", __FUNCTION__, dev->name, event_type));
 
        switch (event_type) {
+
+       case WLC_E_RELOAD:
+               WL_ERROR(("%s: Firmware ERROR %d\n", __FUNCTION__, status));
+               net_os_send_hang_message(dev);
+               goto wl_iw_event_end;
+
 #if defined(SOFTAP)
        case WLC_E_PRUNE:
                if (ap_cfg_running) {