Ver Fonte

qcacld-3.0: Add feature flag to skip msi int mask set

Add feature flag to skip MSI interrupt mask set of
mon rx ring if device mode is not monitor mode to
fix double free issue resulting from call
to api from two different contexts.

Change-Id: Ie065c1034ef8b9f2cf4eb762c4a9be23d9799efd
CRs-Fixed: 3277477
Amit Mehta há 2 anos atrás
pai
commit
be7a5a4e10
2 ficheiros alterados com 4 adições e 0 exclusões
  1. 1 0
      Kbuild
  2. 3 0
      configs/default_defconfig

+ 1 - 0
Kbuild

@@ -3316,6 +3316,7 @@ ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
 cppflags-y += -DFEATURE_MONITOR_MODE_SUPPORT
 cppflags-$(CONFIG_DP_CON_MON_MSI_ENABLED) += -DDP_CON_MON_MSI_ENABLED
 cppflags-$(CONFIG_WLAN_RX_MON_PARSE_CMN_USER_INFO) += -DWLAN_RX_MON_PARSE_CMN_USER_INFO
+cppflags-$(CONFIG_DP_CON_MON_MSI_SKIP_SET) += -DDP_CON_MON_MSI_SKIP_SET
 else
 cppflags-y += -DDISABLE_MON_CONFIG
 endif

+ 3 - 0
configs/default_defconfig

@@ -137,6 +137,9 @@ ifeq (y,$(findstring y,$(CONFIG_CNSS_KIWI) $(CONFIG_CNSS_KIWI_V2)))
 	CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
 	CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
 	CONFIG_NO_RX_PKT_HDR_TLV := y
+ifeq ($(CONFIG_DP_CON_MON_MSI_ENABLED), y)
+	CONFIG_DP_CON_MON_MSI_SKIP_SET := y
+endif
 endif
 
 ifeq (y,$(findstring y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))