summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGovind Singh <govinds@codeaurora.org>2016-09-07 20:45:32 +0530
committerqcabuildsw <qcabuildsw@localhost>2016-09-10 19:05:30 -0700
commitd9b6ca8632f389fd6f6d241b210ef94b915fbc39 (patch)
tree424974abb4587cf721c2ceb2379a8aab1f27bc18
parent1004ad9cae2aed4fb62f1065bf3de2f3209ecb6e (diff)
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)
-rw-r--r--core/hdd/src/wlan_hdd_lro.c4
1 files 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 */