Bläddra i källkod

qcacmn: Decouple netlink service and wlan logging service

Netlink service init and exit is invoked as part of wlan logging
init and exit during qdf module init and exit. This brings in a
hard dependency to enable and compile wlan logging service
even if not used.

Decouple netlink service and wlan logging service to remove
inter-dependency. WIN qdf module currently does not require wlan
logging to be enabled. This separation leads to bss savings in qdf
module.

Change-Id: Ib0afafd196106eba78ad9783eb1a6cece77c00fa
CRs-Fixed: 2258640
Sathish Kumar 7 år sedan
förälder
incheckning
18617b8638
2 ändrade filer med 4 tillägg och 2 borttagningar
  1. 2 2
      qdf/Kbuild
  2. 2 0
      qdf/linux/src/qdf_trace.c

+ 2 - 2
qdf/Kbuild

@@ -48,7 +48,8 @@ linux/src/qdf_file.o \
 src/qdf_flex_mem.o \
 src/qdf_flex_mem.o \
 src/qdf_parse.o \
 src/qdf_parse.o \
 src/qdf_str.o \
 src/qdf_str.o \
-src/qdf_types.o
+src/qdf_types.o \
+$(HOST_CMN_CONVG_NLINK)/src/wlan_nlink_srv.o
 #linux/src/qdf_net.o \
 #linux/src/qdf_net.o \
 #linux/src/qdf_net_event.o \
 #linux/src/qdf_net_event.o \
 #linux/src/qdf_net_ioctl.o
 #linux/src/qdf_net_ioctl.o
@@ -60,7 +61,6 @@ endif
 
 
 ifeq ($(LOGGING_UTILS_SUPPORT),1)
 ifeq ($(LOGGING_UTILS_SUPPORT),1)
 qdf-objs += \
 qdf-objs += \
-$(HOST_CMN_CONVG_NLINK)/src/wlan_nlink_srv.o \
 $(HOST_CMN_CONVG_LOGGING)/src/wlan_logging_sock_svc.o
 $(HOST_CMN_CONVG_LOGGING)/src/wlan_logging_sock_svc.o
 endif
 endif
 
 

+ 2 - 0
qdf/linux/src/qdf_trace.c

@@ -3368,10 +3368,12 @@ void qdf_logging_exit(void)
 #else
 #else
 void qdf_logging_init(void)
 void qdf_logging_init(void)
 {
 {
+	nl_srv_init(NULL);
 }
 }
 
 
 void qdf_logging_exit(void)
 void qdf_logging_exit(void)
 {
 {
+	nl_srv_exit();
 }
 }
 #endif
 #endif