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/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index cde376d..c405e51 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -644,11 +644,13 @@
                 if (!VOS_IS_STATUS_SUCCESS(vos_status))
                    hddLog(LOGE, FL("Failed to start AP inactivity timer\n"));
             }
+#ifdef WLAN_OPEN_SOURCE
             if (wake_lock_active(&pHddCtx->sap_wake_lock))
             {
                wake_unlock(&pHddCtx->sap_wake_lock);
             }
             wake_lock_timeout(&pHddCtx->sap_wake_lock, HDD_SAP_WAKE_LOCK_DURATION);
+#endif
 #ifdef CONFIG_CFG80211
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38))
             {