wlan: Initialize correct MaxTxPower in join request message to riva

Issue where management frames sent out just before assocaition used low
tx power due to unintialized MaxTxpower in join request message.

Change-Id: I8188046d6d94c5b072b3ea60404c4bd35217ff6d
CR-Fixed: 416748
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index 4bba11a..ce47b2b 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -7199,7 +7199,10 @@
 
   halJoinReqMsg.joinReqParams.linkState = pwdiJoinParams->wdiReqInfo.linkState;
 
-#ifndef WLAN_FEATURE_VOWIFI
+#ifdef WLAN_FEATURE_VOWIFI
+  halJoinReqMsg.joinReqParams.maxTxPower =
+    pwdiJoinParams->wdiReqInfo.wdiChannelInfo.cMaxTxPower;
+#else
   halJoinReqMsg.joinReqParams.ucLocalPowerConstraint =
     pwdiJoinParams->wdiReqInfo.wdiChannelInfo.ucLocalPowerConstraint;
 #endif