summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Ahuja <sahuja@qti.qualcomm.com>2013-12-30 03:09:05 +0530
committerPrakash Dhavali <pdhavali@codeaurora.org>2014-01-17 21:45:51 -0800
commitc284d63f79a669c843a41b97d0e68b41e888124c (patch)
tree27af00c766c093784a6e1fb8080abb343950fba3
parentea161a63892ccdc7294840586f3654f01a8c4f40 (diff)
cld: 32 clients should work for all Rome version >=1.3
CFG_SAP_MAX_NO_PEERS_DEFAULT is set to 32 as default value. In function ol_get_number_of_peers_supported Rome version is checked. If Rome version is 1.1 then max_no_of_peers is assigned 14(max) and if Rome version is >=1.3 then max_no_of_peers is assigned as 32(max). So with this change there is no need to define the gSoftApMaxPeers parameter in ini for Rome >= 1.3 explicitly. . Change-Id: Ifc521703ff6ed726b389df9b8f40070c5a548b2e CRs-Fixed: 594450
-rw-r--r--CORE/HDD/inc/wlan_hdd_cfg.h2
-rw-r--r--CORE/SERVICES/BMI/ol_fw.c12
-rw-r--r--CORE/VOSS/src/vos_api.c5
3 files changed, 13 insertions, 6 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_cfg.h b/CORE/HDD/inc/wlan_hdd_cfg.h
index c09a3aadd376..16ade1f10903 100644
--- a/CORE/HDD/inc/wlan_hdd_cfg.h
+++ b/CORE/HDD/inc/wlan_hdd_cfg.h
@@ -2113,7 +2113,7 @@ This feature requires the dependent cfg.ini "gRoamPrefer5GHz" set to 1 */
#define CFG_SAP_MAX_NO_PEERS "gSoftApMaxPeers"
#define CFG_SAP_MAX_NO_PEERS_MIN (1)
#define CFG_SAP_MAX_NO_PEERS_MAX (32)
-#define CFG_SAP_MAX_NO_PEERS_DEFAULT (14)
+#define CFG_SAP_MAX_NO_PEERS_DEFAULT (32)
/*---------------------------------------------------------------------------
Type declarations
diff --git a/CORE/SERVICES/BMI/ol_fw.c b/CORE/SERVICES/BMI/ol_fw.c
index a94ae904f9d6..7c3821cce1e4 100644
--- a/CORE/SERVICES/BMI/ol_fw.c
+++ b/CORE/SERVICES/BMI/ol_fw.c
@@ -1020,18 +1020,20 @@ u_int8_t ol_get_number_of_peers_supported(struct ol_softc *scn)
u_int8_t max_no_of_peers = 0;
switch (scn->target_version) {
- case AR6320_REV1_3_VERSION:
- if(scn->max_no_of_peers > MAX_SUPPORTED_PEERS_REV1_3)
- max_no_of_peers = MAX_SUPPORTED_PEERS_REV1_3;
+ case AR6320_REV1_1_VERSION:
+ if(scn->max_no_of_peers > MAX_SUPPORTED_PEERS_REV1_1)
+ max_no_of_peers = MAX_SUPPORTED_PEERS_REV1_1;
else
max_no_of_peers = scn->max_no_of_peers;
break;
+
default:
- if(scn->max_no_of_peers > MAX_SUPPORTED_PEERS_REV1_1)
- max_no_of_peers = MAX_SUPPORTED_PEERS_REV1_1;
+ if(scn->max_no_of_peers > MAX_SUPPORTED_PEERS_REV1_3)
+ max_no_of_peers = MAX_SUPPORTED_PEERS_REV1_3;
else
max_no_of_peers = scn->max_no_of_peers;
break;
+
}
return max_no_of_peers;
}
diff --git a/CORE/VOSS/src/vos_api.c b/CORE/VOSS/src/vos_api.c
index 7fc08fa97881..9d0e324e4f08 100644
--- a/CORE/VOSS/src/vos_api.c
+++ b/CORE/VOSS/src/vos_api.c
@@ -426,6 +426,11 @@ VOS_STATUS vos_open( v_CONTEXT_t *pVosContext, v_SIZE_t hddContextSize )
#if defined (QCA_WIFI_2_0) && \
!defined (QCA_WIFI_ISOC)
+ /* This macOpenParams.maxStation has value incremented by 1 for PeerIdx logic.
+ * So here we are decrementing by 1 to assign in the ini.With this change
+ * there is no ned to define gSoftApMaxPeers ini for Rome >= 1.3
+ */
+ pHddCtx->cfg_ini->maxNumberOfPeers = macOpenParms.maxStation - 1;
if (HTCWaitTarget(vos_get_context(VOS_MODULE_ID_HTC, gpVosContext))) {
VOS_TRACE( VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_FATAL,
"%s: Failed to complete BMI phase", __func__);