mwifiex: change hscfg gap parameter to avoid potential firmware deadlock
authorBing Zhao <bzhao@marvell.com>
Wed, 28 May 2014 04:39:34 +0000 (21:39 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 May 2014 17:10:36 +0000 (13:10 -0400)
If host sleep parameter gap is set to 0xff, firmware will wait
for an ack from host to confirm the success of host wakeup.
This prevents firmware from uploading data packet before host
actually wakes up.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/fw.h

index 42eaeda1dc823d1007d97111f46bda16a9d45ca8..3175dd04834b9960698c67e750fc3d8928075088 100644 (file)
@@ -405,7 +405,7 @@ enum P2P_MODES {
 #define HS_CFG_CANCEL                  0xffffffff
 #define HS_CFG_COND_DEF                        0x00000000
 #define HS_CFG_GPIO_DEF                        0xff
-#define HS_CFG_GAP_DEF                 0
+#define HS_CFG_GAP_DEF                 0xff
 #define HS_CFG_COND_BROADCAST_DATA     0x00000001
 #define HS_CFG_COND_UNICAST_DATA       0x00000002
 #define HS_CFG_COND_MAC_EVENT          0x00000004