Selaa lähdekoodia

qcacmn: Remove static from the gwlan_logging struct

The gwlan_logging struct is used by offline tools, so it needs to be
made non-static. Remove the static keyword from gwlan_logging.

Change-Id: I05f47328914c40a2c957ca404b6681ba8507d367
CRs-Fixed: 2663164
Alan Chen 5 vuotta sitten
vanhempi
sitoutus
87df3e8c2d
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      utils/logging/src/wlan_logging_sock_svc.c

+ 4 - 1
utils/logging/src/wlan_logging_sock_svc.c

@@ -182,7 +182,10 @@ struct wlan_logging {
 	qdf_spinlock_t flush_timer_lock;
 };
 
-static struct wlan_logging gwlan_logging;
+/* This global variable is intentionally not marked static because it
+ * is used by offline tools. Please do not use it outside this file.
+ */
+struct wlan_logging gwlan_logging;
 static struct pkt_stats_msg *gpkt_stats_buffers;
 
 #ifdef WLAN_LOGGING_BUFFERS_DYNAMICALLY