From d9b6ca8632f389fd6f6d241b210ef94b915fbc39 Mon Sep 17 00:00:00 2001 From: Govind Singh Date: Wed, 7 Sep 2016 20:45:32 +0530 Subject: [PATCH] qcacld-3.0: Do not enable LRO for non STA adapter Currently LRO is not enabled for non STA interface. However during p2p adapter creation LRO is getting enabled as p2p adapter is being created with change interface handler with STA interface ID. Check adapter device mode during LRO enable and bypass if LRO enable is called for NON STA interface. Change-Id: Ib0be2cfdf110bad9a76b47b57ad9e0319bad1947 CRs-Fixed: 1064044 (cherry picked from commit edbf9452cd01fdfef0f5b6014e534387530eeb78) --- core/hdd/src/wlan_hdd_lro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_lro.c b/core/hdd/src/wlan_hdd_lro.c index 4bb12ec0618b..df0bf8df129f 100644 --- a/core/hdd/src/wlan_hdd_lro.c +++ b/core/hdd/src/wlan_hdd_lro.c @@ -517,7 +517,7 @@ int hdd_lro_enable(hdd_context_t *hdd_ctx, uint8_t *lro_mem_ptr; if (!hdd_ctx->config->lro_enable || - NL80211_IFTYPE_STATION != adapter->wdev.iftype) { + QDF_STA_MODE != adapter->device_mode) { hdd_info("LRO Disabled"); return 0; } @@ -598,7 +598,7 @@ int hdd_lro_enable(hdd_context_t *hdd_ctx, void hdd_lro_disable(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter) { if (!hdd_ctx->config->lro_enable || - NL80211_IFTYPE_STATION != adapter->wdev.iftype) + QDF_STA_MODE != adapter->device_mode) return; /* Deregister the flush callback */