From e2938362856a6524ba99c4a50cc0f9268ea394fc Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Wed, 13 May 2020 20:14:28 +0530 Subject: [PATCH] qcacmn: Fix the condition for filling WAPI params Fix the condition for filling WAPI params in wlan_crypto_set_wapi_key Change-Id: I3b74e2a36cdc83f06e40d746e2d7aa0740aec65a CRs-Fixed: 2685797 --- target_if/crypto/src/target_if_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target_if/crypto/src/target_if_crypto.c b/target_if/crypto/src/target_if_crypto.c index abeb87fd10f1..c1c8218bcf12 100644 --- a/target_if/crypto/src/target_if_crypto.c +++ b/target_if/crypto/src/target_if_crypto.c @@ -53,7 +53,7 @@ static void wlan_crypto_set_wapi_key(struct wlan_objmgr_vdev *vdev, 0x5c, 0x36, 0x5c, 0x36, 0x5c, 0x37}; - if (cipher_type != WLAN_CRYPTO_CIPHER_WAPI_SMS4 || + if (cipher_type != WLAN_CRYPTO_CIPHER_WAPI_SMS4 && cipher_type != WLAN_CRYPTO_CIPHER_WAPI_GCM4) return;