From c9cc32454572302c84ba1223b2e0d17b9fba536b Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 12 Mar 2019 08:31:52 -0700 Subject: [PATCH] qcacld-3.0: Remove fragSize from tDphHashNode The fragSize member of tDphHashNode is initialized but is otherwise never modified or read. Since it is obsolete, remove it. Change-Id: I7cdf9c62b25d14f9d74ac5144def2a6d4e69ca7c CRs-Fixed: 2414654 --- core/mac/src/dph/dph_hash_table.c | 9 --------- core/mac/src/include/dph_global.h | 2 -- 2 files changed, 11 deletions(-) diff --git a/core/mac/src/dph/dph_hash_table.c b/core/mac/src/dph/dph_hash_table.c index 84296cc68d..5f3745f61f 100644 --- a/core/mac/src/dph/dph_hash_table.c +++ b/core/mac/src/dph/dph_hash_table.c @@ -212,8 +212,6 @@ tpDphHashNode dph_init_sta_state(struct mac_context *mac, tSirMacAddr staAddr, uint16_t assocId, uint8_t validStaIdx, struct dph_hash_table *hash_table) { - uint32_t val; - tpDphHashNode sta, pnext; uint16_t staIdx = STA_INVALID_IDX; @@ -240,13 +238,6 @@ tpDphHashNode dph_init_sta_state(struct mac_context *mac, tSirMacAddr staAddr, /* Initialize STA mac address */ qdf_mem_copy(sta->staAddr, staAddr, sizeof(tSirMacAddr)); - /* Initialize fragmentation threshold */ - if (wlan_mlme_get_frag_threshold(mac->psoc, &val) != - QDF_STATUS_SUCCESS) - pe_warn("could not retrieve fragmentation threshold"); - else - sta->fragSize = (uint16_t) val; - sta->added = 1; sta->is_disassoc_deauth_in_progress = 0; sta->last_assoc_received_time = 0; diff --git a/core/mac/src/include/dph_global.h b/core/mac/src/include/dph_global.h index fb693acddb..257563cc53 100644 --- a/core/mac/src/include/dph_global.h +++ b/core/mac/src/include/dph_global.h @@ -109,8 +109,6 @@ typedef struct sDphHashNode { uint8_t wsmEnabled:1; uint8_t fAniCount:1; uint8_t rmfEnabled:1; - /* Fragmentation size */ - uint16_t fragSize; /* LIM state */ tLimMlmStaContext mlmStaContext; /* Number of Successful MPDU's being sent */