qcacld-2.0: Initialize curr_con_mode for epping

curr_con_mode is not initialized once epping is enabled
and MODULE is not defined.
Set curr_con_mode in the beginning.

Change-Id: Id25b136fd15912d46ea0682cad3745c51d902bc3
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index d2263ad..e9d465e 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -17060,6 +17060,9 @@
    do {
 
 #ifndef MODULE
+      /* For statically linked driver, call hdd_set_conparam to update curr_con_mode
+       */
+      hdd_set_conparam((v_UINT_t)con_mode);
       if (WLAN_IS_EPPING_ENABLED(con_mode)) {
          ret_status =  epping_driver_init(con_mode, &wlan_wake_lock,
                           WLAN_MODULE_NAME);
@@ -17099,12 +17102,6 @@
 #endif
    hdd_register_debug_callback();
 
-#ifndef MODULE
-      /* For statically linked driver, call hdd_set_conparam to update curr_con_mode
-       */
-      hdd_set_conparam((v_UINT_t)con_mode);
-#endif
-
    ret_status = hdd_hif_register_driver();
    vos_remove_pm_qos();