wlan: Handle WAPI in the check to detect change in AP security.

As WAPI is not handled in AP security changed, upon connection,
when host receive a beacon the device will disconnect
asuming that the security changed.

Added check to handle the WAPI security as well in the check for
security change.

Change-Id: I033ce1c5c3c70f8ddc8e652b159b2b9adc24e56c
CRs-fixed: 770318
diff --git a/CORE/MAC/src/pe/lim/limApi.c b/CORE/MAC/src/pe/lim/limApi.c
index 058146e..e863950 100644
--- a/CORE/MAC/src/pe/lim/limApi.c
+++ b/CORE/MAC/src/pe/lim/limApi.c
@@ -1764,8 +1764,12 @@
     /* WEP */
     if ( (pBeacon->capabilityInfo.privacy == 1) && (pBeacon->wpaPresent == 0) &&
             (pBeacon->rsnPresent == 0) &&
-            ( (pSession->encryptType == eSIR_ED_WEP40) ||
-                     (pSession->encryptType == eSIR_ED_WEP104)))
+            ( ( pSession->encryptType == eSIR_ED_WEP40 ) ||
+              ( pSession->encryptType == eSIR_ED_WEP104 )
+#ifdef FEATURE_WLAN_WAPI
+              || ( pSession->encryptType == eSIR_ED_WPI )
+#endif
+             ))
         return eSIR_TRUE;
 
     /* WPA OR RSN*/