summaryrefslogtreecommitdiff
path: root/CORE/SVC/src
diff options
context:
space:
mode:
authorChandrasekaran, Manishekar <cmshekar@qti.qualcomm.com>2015-04-01 11:51:28 +0530
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-04-07 17:16:10 +0530
commitdfdb58e86142bca3b5a7f8c63ce8db5fc237e883 (patch)
treeb5bf0fa954caca63357a3317681a4c3dee13932e /CORE/SVC/src
parente762029dac2110cb9cb2a570da88ffebf9e06e64 (diff)
qcacld: Add support for host based wake lock events
This change adds new DIAG (EVENT_WLAN_WAKE_LOCK) event within our existing DIAG framework. This event will be generated whenever wake locks are handled within the driver. Change-Id: Ie19d1f5b50a34247cc58203d87bab8c1933ebbb8 CRs-Fixed: 816401
Diffstat (limited to 'CORE/SVC/src')
-rw-r--r--CORE/SVC/src/nlink/wlan_nlink_srv.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/CORE/SVC/src/nlink/wlan_nlink_srv.c b/CORE/SVC/src/nlink/wlan_nlink_srv.c
index 9559a8cfc710..fa7afcc756e2 100644
--- a/CORE/SVC/src/nlink/wlan_nlink_srv.c
+++ b/CORE/SVC/src/nlink/wlan_nlink_srv.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2015 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -283,3 +283,20 @@ static void nl_srv_rcv_msg (struct sk_buff *skb, struct nlmsghdr *nlh)
"NLINK: No handler for Netlink Msg [0x%X]", type);
}
}
+
+/**
+ * nl_srv_is_initialized() - This function is used check if the netlink
+ * service is initialized
+ *
+ * This function is used check if the netlink service is initialized
+ *
+ * Return: Return -EPERM if the service is not initialized
+ *
+ */
+int nl_srv_is_initialized()
+{
+ if (nl_srv_sock)
+ return 0;
+ else
+ return -EPERM;
+}