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
此提交包含在:
Alok Kumar
2018-08-03 13:55:09 +05:30
提交者 nshrivas
父節點 6d00fad947
當前提交 90a73092e6

查看文件

@@ -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 */