From 91e834de48a540e8373911fc065cdf265c6143b5 Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Thu, 12 Jul 2018 11:07:42 +0800 Subject: [PATCH] qcacld-3.0: Enable locks to serialization component Serialization component's APIs may get called by various component owners through different thread contexts. This makes lock a mandatory requirement in order to prevent any shared data corruption. Change-Id: I01e7727f1717c245a81a2dc760011488f4c4ba95 CRs-Fixed: 2272624 --- Kbuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Kbuild b/Kbuild index ffb3aa360056..e955704c959a 100644 --- a/Kbuild +++ b/Kbuild @@ -1995,6 +1995,9 @@ cppflags-y += -DATH_SUPPORT_WRAP=0 cppflags-y += -DQCA_HOST2FW_RXBUF_RING #endof dummy flags +# Enable lock of serialization component to avoid race condition issues +cppflags-y += -DWLAN_CMD_SERIALIZATION_LOCKING + ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os # DFS component