summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdhar, Mahesh Kumar <c_medhar@qti.qualcomm.com>2014-11-26 16:50:40 +0530
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2014-12-02 13:16:37 +0530
commit2a0b35492ad0c5746faa7a3703f58d73ea526b07 (patch)
treeedae651cc73d7639e06ebd04d3f55461398d86d6
parentcd947dff119e9ecd8145399f3fd086255da3bd16 (diff)
qcacld: Changes to reduce number of TIDS/PEER and num_peer_keys
Memory optimization by reducing the number of TIDS/PEER and num_peer_keys as we wont be using all the TIDS. Change-Id: I56a9f4952acc921523d120c221a16f34baec2c0e CRs-Fixed: 763247
-rw-r--r--CORE/SERVICES/COMMON/wlan_tgt_def_config.h2
-rw-r--r--CORE/SERVICES/WMA/wma.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/CORE/SERVICES/COMMON/wlan_tgt_def_config.h b/CORE/SERVICES/COMMON/wlan_tgt_def_config.h
index 0438eff2c862..163962572828 100644
--- a/CORE/SERVICES/COMMON/wlan_tgt_def_config.h
+++ b/CORE/SERVICES/COMMON/wlan_tgt_def_config.h
@@ -101,7 +101,7 @@
/*
* keys per peer node
*/
-#define CFG_TGT_NUM_PEER_KEYS 2
+#define CFG_TGT_NUM_PEER_KEYS 1
/*
* total number of data TX and RX TIDs
*/
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index 57d5c816eb49..5d8ac2a43def 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -1144,7 +1144,7 @@ static v_VOID_t wma_set_default_tgt_config(tp_wma_handle wma_handle)
}
no_of_peers_supported = ol_get_number_of_peers_supported(scn);
tgt_cfg.num_peers = no_of_peers_supported + CFG_TGT_NUM_VDEV + 2;
- tgt_cfg.num_tids = (2 * (no_of_peers_supported + CFG_TGT_NUM_VDEV + 2));
+ tgt_cfg.num_tids = no_of_peers_supported + CFG_TGT_NUM_VDEV + 2;
WMITLV_SET_HDR(&tgt_cfg.tlv_header,WMITLV_TAG_STRUC_wmi_resource_config,
WMITLV_GET_STRUCT_TLVLEN(wmi_resource_config));