wlan: Remove access to GPL only APIs

Add open source only access to the Kernel APIs that cannot be accessed
from proprietary WLAN driver once the early suspend changes are pushed
to Kernel.

Change-Id: Id2b477328ef6a2c6c45f4eae9564a3132f6c01cc
CRs-Fixed: 454220
diff --git a/CORE/HDD/inc/wlan_hdd_main.h b/CORE/HDD/inc/wlan_hdd_main.h
index e3d7cc0..21ecdd2 100644
--- a/CORE/HDD/inc/wlan_hdd_main.h
+++ b/CORE/HDD/inc/wlan_hdd_main.h
@@ -70,7 +70,9 @@
 #include <wlan_hdd_wmm.h>
 #include <wlan_hdd_cfg.h>
 #include <linux/spinlock.h>
+#ifdef WLAN_OPEN_SOURCE
 #include <linux/wakelock.h>
+#endif
 #ifdef ANI_MANF_DIAG
 #include <wlan_hdd_ftm.h>
 #endif
@@ -928,9 +930,11 @@
    t_multicast_add_list mc_addr_list;
 #endif
 
+#ifdef WLAN_OPEN_SOURCE
 #ifdef WLAN_FEATURE_HOLD_RX_WAKELOCK
    struct wake_lock rx_wake_lock;
 #endif
+#endif
 
    /* 
     * Framework initiated driver restarting 
@@ -949,7 +953,9 @@
         is invoked*/
    v_BOOL_t is_dynamic_channel_range_set;
 
+#ifdef WLAN_OPEN_SOURCE
    struct wake_lock sap_wake_lock;
+#endif
 };