wlan: Scan Failure due to uninitialized variable.

During set key operation , key length is not set properly
when encry type is None. As a result some time Key's length
takes a garbage value . Driver only accepts key length as
as 0 , when encry type is none , hence setKeyConetxt is freed
when Key length is garbage, resulting in all operation being
blocked in Sme_active queue.

Change-Id: Iee3e62ed045c51e3acdee693febbb34bc7ccadec
CRs-Fixed: 678727
diff --git a/CORE/SME/src/csr/csrApiRoam.c b/CORE/SME/src/csr/csrApiRoam.c
index 70fc9bb..3fe6433 100644
--- a/CORE/SME/src/csr/csrApiRoam.c
+++ b/CORE/SME/src/csr/csrApiRoam.c
@@ -8479,6 +8479,7 @@
             status = eHAL_STATUS_RESOURCES;
             break;
         }
+        vos_mem_zero(pCommand, sizeof(tSmeCmd));
         pCommand->command = eSmeCommandSetKey;
         pCommand->sessionId = (tANI_U8)sessionId;
         // validate the key length,  Adjust if too long...
@@ -13722,6 +13723,8 @@
     tANI_U8 *pBuf = NULL;
     tANI_U8 *p = NULL;
     tCsrRoamSession *pSession = CSR_GET_SESSION( pMac, sessionId );
+    smsLog( pMac, LOG1, FL("keylength is %d, Encry type is : %d"),
+                            keyLength, edType);
     do {
         if( ( 1 != numKeys ) && ( 0 != numKeys ) ) break;
         // all of these fields appear in every SET_CONTEXT message.  Below we'll add in the size for each