wlan: Pass correct parameter in vos_open during reinit.
We pass 0 as parameter in vos_open in hdd_wlan_re_init()
while vos_open is expecting pointer to the OS specific
device. This fix will pass correct dev parameter now.
Change-Id: I2d3bfcc496b4c8ea644c86cfc5b6f2786c9cb344
CRs-Fixed: 675175
diff --git a/CORE/HDD/src/wlan_hdd_early_suspend.c b/CORE/HDD/src/wlan_hdd_early_suspend.c
index 01b9a4c..db94444 100644
--- a/CORE/HDD/src/wlan_hdd_early_suspend.c
+++ b/CORE/HDD/src/wlan_hdd_early_suspend.c
@@ -2083,6 +2083,7 @@
WLANBAP_ConfigType btAmpConfig;
#endif
+ struct device *dev = NULL;
hdd_ssr_timer_del();
hdd_prevent_suspend();
@@ -2102,8 +2103,15 @@
/* The driver should always be initialized in STA mode after SSR */
hdd_set_conparam(0);
+ dev = wcnss_wlan_get_device();
+ if (NULL == dev)
+ {
+ hddLog(VOS_TRACE_LEVEL_FATAL,"%s: wcnss dev is NULL",__func__);
+ goto err_re_init;
+ }
+
/* Re-open VOSS, it is a re-open b'se control transport was never closed. */
- vosStatus = vos_open(&pVosContext, 0);
+ vosStatus = vos_open(&pVosContext, dev);
if (!VOS_IS_STATUS_SUCCESS(vosStatus))
{
hddLog(VOS_TRACE_LEVEL_FATAL,"%s: vos_open failed",__func__);