wlan: Re-enable wifi on WDI timeout

Optional feature to re-enable wifi on WDI timeout. When it is enabled,
it sends the hang event to supplicant to re-enable wifi.

Change-Id: Ibec2eeca552a59fa73eda516f94ab1234ab53cae
CR-Fixed: 412636
diff --git a/Makefile b/Makefile
index 81f3c43..bb08240 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,9 @@
 #Do we panic on bug?  default is to warn
 PANIC_ON_BUG := 0
 
+#Re-enable wifi on WDI timeout
+RE_ENABLE_WIFI_ON_WDI_TIMEOUT := 0
+
 ifeq ($(CONFIG_CFG80211),y)
 HAVE_CFG80211 := 1
 else
@@ -521,6 +524,10 @@
 CDEFINES += -DPANIC_ON_BUG
 endif
 
+ifeq ($(RE_ENABLE_WIFI_ON_WDI_TIMEOUT),1)
+CDEFINES += -DWDI_RE_ENABLE_WIFI_ON_WDI_TIMEOUT
+endif
+
 ifeq ($(CONFIG_PRIMA_WLAN_BTAMP),y)
 CDEFINES += -DWLAN_BTAMP_FEATURE
 endif