wlan: Use max tx power allowed to compute link report power

Driver uses max tx power allowed for a particular channel to
calculate link report power and updates max tx power allowed
with calculated link report power. This can result in usage
of MIN_TX_PWR_CAP as max tx power if AP requests power below
MIN_TX_PWR_CAP in link request. Once max tx power reaches
MIN_TX_PWR_CAP, the driver will always use MIN_TX_PWR_CAP in
the link report which could be much less than power allowed
for a particular channel.

Use max tx power allowed for a particular channel always to
compute link report power to fix this issue.

Change-Id: I0060500f23e6131481baa00cd76f41419281e41a
CRs-Fixed: 2238098
diff --git a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
index 59934c6..65ec3c3 100644
--- a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
+++ b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
@@ -2094,7 +2094,7 @@
                                      TX_POWER_DEFAULT);
             psessionEntry->maxTxPower = TX_POWER_DEFAULT;
         }
-
+        psessionEntry->def_max_tx_pwr = psessionEntry->maxTxPower;
         VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_INFO,
                         "Regulatory max = %d, local power constraint = %d,"
                         " max tx = %d", regMax, localPowerConstraint,