Procházet zdrojové kódy

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
Jeff Johnson před 6 roky
rodič
revize
c9cc324545

+ 0 - 9
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;

+ 0 - 2
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 */