mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Kbuild: Cleanly featurize legacy TX flow control
Define a separate configuration option for legacy TX flow control and use that option to set the associated ccflags macro. Change-Id: Id14ac79280d3bf809c1e85bde4d5c7037a3ea766 CRs-Fixed: 2224629
This commit is contained in:
parent
82914ad371
commit
2095d16daa
1 changed files with 11 additions and 10 deletions
21
Kbuild
21
Kbuild
|
|
@ -224,6 +224,14 @@ ifeq ($(CONFIG_SLUB_DEBUG), y)
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_HIF_PCI), y)
|
||||
ifneq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
|
||||
ifneq ($(CONFIG_LITHIUM), y)
|
||||
CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY := y
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# As per target team, build is done as follows:
|
||||
# Defconfig : build with default flags
|
||||
# Slub : defconfig + CONFIG_SLUB_DEBUG=y +
|
||||
|
|
@ -1991,16 +1999,9 @@ endif
|
|||
|
||||
ccflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
|
||||
|
||||
ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
|
||||
ccflags-y += -DQCA_LL_TX_FLOW_CONTROL_V2
|
||||
ccflags-y += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
|
||||
else
|
||||
ifeq ($(CONFIG_HIF_PCI), y)
|
||||
ifneq ($(CONFIG_LITHIUM), y)
|
||||
ccflags-y += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ccflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2
|
||||
ccflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
|
||||
ccflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY) += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
|
||||
|
||||
ifeq ($(BUILD_DEBUG_VERSION), y)
|
||||
ccflags-y += -DWLAN_DEBUG \
|
||||
|
|
|
|||
Loading…
Reference in a new issue