wlan: Fix for issues reported by Static analysis

    Fix the issues reported by Static analysis tool

    CRs-fixed: 650812

Change-Id: I90620b6c33dbc8d17ac6fbdc6fd0aeb5e50c7870
diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c
index b136cf5..d7993e5 100644
--- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c
+++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c
@@ -1506,24 +1506,27 @@
         }
 #endif
 
-    } // End if on non-NULL 'pSta'.
 
 #ifdef WLAN_FEATURE_11W
-    if( eSIR_MAC_TRY_AGAIN_LATER == statusCode )
-    {
-        if ( wlan_cfgGetInt(pMac, WNI_CFG_PMF_SA_QUERY_MAX_RETRIES,
-                           &maxRetries ) != eSIR_SUCCESS )
-            limLog( pMac, LOGE, FL("Could not retrieve PMF SA Query maximum retries value") );
-        else
-            if ( wlan_cfgGetInt(pMac, WNI_CFG_PMF_SA_QUERY_RETRY_INTERVAL,
-                               &retryInterval ) != eSIR_SUCCESS)
-                limLog( pMac, LOGE, FL("Could not retrieve PMF SA Query timer interval value") );
-            else
-                PopulateDot11fTimeoutInterval(
-                   pMac, &frm.TimeoutInterval, SIR_MAC_TI_TYPE_ASSOC_COMEBACK,
-                   (maxRetries - pSta->pmfSaQueryRetryCount) * retryInterval );
-    }
+        if( eSIR_MAC_TRY_AGAIN_LATER == statusCode )
+        {
+                if ( wlan_cfgGetInt(pMac, WNI_CFG_PMF_SA_QUERY_MAX_RETRIES,
+                                        &maxRetries ) != eSIR_SUCCESS )
+                        limLog( pMac, LOGE, FL("Could not retrieve PMF SA "
+                                                "Query maximum retries value") );
+                else
+                        if ( wlan_cfgGetInt(pMac, WNI_CFG_PMF_SA_QUERY_RETRY_INTERVAL,
+                                                &retryInterval ) != eSIR_SUCCESS)
+                                limLog( pMac, LOGE, FL("Could not retrieve PMF SA "
+                                                        "Query timer interval value") );
+                        else
+                                PopulateDot11fTimeoutInterval(
+                                                pMac, &frm.TimeoutInterval,
+                                                SIR_MAC_TI_TYPE_ASSOC_COMEBACK,
+                            (maxRetries - pSta->pmfSaQueryRetryCount) * retryInterval );
+        }
 #endif
+    } // End if on non-NULL 'pSta'.
 
     vos_mem_set(( tANI_U8* )&beaconParams, sizeof( tUpdateBeaconParams), 0);