From 1fdcbb6a83fd2126b91b3b9a8a217f4540787e1d Mon Sep 17 00:00:00 2001 From: Agrawal Ashish Date: Fri, 10 Mar 2017 17:48:57 +0530 Subject: [PATCH] qcacld-3.0: Update negotiated maxTxPower in Assoc request qcacld-2.0 to qcacld-3.0 propagation On some channel, AP's tranmission power is less than regulatory tx power as per db.txt. While sending Assoc request, driver should populate negotiated power (min power of AP's tx power and regulatory power for operating channel) in Assoc request. This doesn't happen currently, fix it to ensure that driver follow negotiated power. Change-Id: I7755894b72e4f0f7ffc371abbbda5c75b2851b13 CRs-Fixed: 2011396 --- core/mac/src/pe/lim/lim_process_sme_req_messages.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c index b4253308a3f4..9c77728a736f 100644 --- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c @@ -1887,6 +1887,12 @@ __lim_process_sme_join_req(tpAniSirGlobal mac_ctx, uint32_t *msg_buf) pe_debug("Reg max %d local power con %d max tx pwr %d", reg_max, local_power_constraint, session->maxTxPower); + if (sme_join_req->powerCap.maxTxPower > session->maxTxPower) { + sme_join_req->powerCap.maxTxPower = session->maxTxPower; + pe_debug("Update MaxTxPower in join Req to %d", + sme_join_req->powerCap.maxTxPower); + } + if (session->gLimCurrentBssUapsd) { session->gUapsdPerAcBitmask = session->pLimJoinReq->uapsdPerAcBitmask;