wlan: ibss: fix the WPA IE missing in the beacon

When building the bss params, it only assigns the pRSNReqIE to
the bss beacon configuration, but in IBSS case it uses pWPAReqIE
if it is WPA case, so add sanity check and assign accordingly

Change-Id: If277d478b71da2d523cbce8bbab67caae8bd19cf
CRs-Fixed: 675159
diff --git a/CORE/SME/src/csr/csrApiRoam.c b/CORE/SME/src/csr/csrApiRoam.c
index f126a6b..70fc9bb 100644
--- a/CORE/SME/src/csr/csrApiRoam.c
+++ b/CORE/SME/src/csr/csrApiRoam.c
@@ -11793,8 +11793,13 @@
     }
 #endif //FEATURE_WLAN_DIAG_SUPPORT_CSR
     //Put RSN information in for Starting BSS
-    pParam->nRSNIELength = (tANI_U16)pProfile->nRSNReqIELength;
-    pParam->pRSNIE = pProfile->pRSNReqIE;
+    if (pProfile->nRSNReqIELength && pProfile->pRSNReqIE) {
+        pParam->nRSNIELength = (tANI_U16)pProfile->nRSNReqIELength;
+        pParam->pRSNIE = pProfile->pRSNReqIE;
+    } else if (pProfile->nWPAReqIELength && pProfile->pWPAReqIE) {
+        pParam->nRSNIELength = (tANI_U16)pProfile->nWPAReqIELength;
+        pParam->pRSNIE = pProfile->pWPAReqIE;
+    }
 
     pParam->privacy           = pProfile->privacy;
     pParam->fwdWPSPBCProbeReq = pProfile->fwdWPSPBCProbeReq;