summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTang Yingying <yintang@codeaurora.org>2017-01-19 17:10:39 +0800
committerqcabuildsw <qcabuildsw@localhost>2017-02-10 08:09:50 -0800
commit02f5de332014d32404932d8865325e1ce6708be9 (patch)
treebe342d06a322f56ea4db1a260db957a54d065a34
parent66bd740b6cc4fe126e5571266c013f885af207f2 (diff)
qcacld-3.0: Disable LRO feature when linux kernel version < 4.4
Currently kernel LRO API is only provided in version 4.4. There will be compilation error if kernel version < 4.4. Add fix to disable LRO feature when linux kernel version < 4.4. Change-Id: I69198e55bb3c4ee7c5844e2b7b55e12cb8075d7c CRs-Fixed: 1112463
-rw-r--r--Kbuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/Kbuild b/Kbuild
index 5b3dd5ac35ea..a53fcff09e15 100644
--- a/Kbuild
+++ b/Kbuild
@@ -197,9 +197,11 @@ ifneq ($(CONFIG_ROME_IF),sdio)
# Flag to enable LRO (Large Receive Offload)
ifeq ($(CONFIG_INET_LRO), y)
- CONFIG_WLAN_LRO := y
- else
- CONFIG_WLAN_LRO := n
+ ifeq ($(VERSION), 4)
+ CONFIG_WLAN_LRO := y
+ else
+ CONFIG_WLAN_LRO := n
+ endif
endif
endif