From 90a73092e60140a7d5389664ff23ed06d52a0962 Mon Sep 17 00:00:00 2001 From: Alok Kumar Date: Fri, 3 Aug 2018 13:55:09 +0530 Subject: [PATCH] qcacld-3.0: Consider INI param LROEnable during advertising LRO Currently in driver we are advertising LRO Support as part of hdd_init_station_mode() with dev->features |= NETIF_F_LRO. This is not tied up with INI param "LROEnable", to advertise LRO to kernel. Add INI check for "LROEnable" before advertising LRO. Change-Id: I6a3940b65e72ae12015d0303c573456d44e1ac9c CRs-Fixed: 2269590 --- core/hdd/src/wlan_hdd_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 1ce257751a..5d24fe7722 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4187,7 +4187,8 @@ QDF_STATUS hdd_init_station_mode(struct hdd_adapter *adapter) * during that time, then as part of SSR init, do not enable * the LRO again. Keep the LRO state same as before SSR. */ - if (!(qdf_atomic_read(&hdd_ctx->vendor_disable_lro_flag))) + if (hdd_ctx->config->lro_enable && + !(qdf_atomic_read(&hdd_ctx->vendor_disable_lro_flag))) adapter->dev->features |= NETIF_F_LRO; /* rcpi info initialization */