From 17a6db2aa607e7fc7380d1d3a43e7fc35e1eece7 Mon Sep 17 00:00:00 2001 From: Ashok Kumar Ponnaiah Date: Fri, 24 Aug 2018 10:00:30 +0530 Subject: [PATCH] qcacmn: Correct parameter passed to cipher2cap function Correct parameter passed to cipher2cap function. Change-Id: Ib962c7d908eb0591c9e87ad5987938ad5f24ef93 CRs-Fixed: 2302379 --- umac/cmn_services/crypto/src/wlan_crypto_param_handling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umac/cmn_services/crypto/src/wlan_crypto_param_handling.c b/umac/cmn_services/crypto/src/wlan_crypto_param_handling.c index 5ee66a3332d6..435a7a9852ac 100644 --- a/umac/cmn_services/crypto/src/wlan_crypto_param_handling.c +++ b/umac/cmn_services/crypto/src/wlan_crypto_param_handling.c @@ -103,7 +103,7 @@ QDF_STATUS wlan_crypto_set_mcastcipher(struct wlan_crypto_params *crypto_params, for (i = 0; i < WLAN_CRYPTO_CIPHER_MAX; i++) { if (HAS_PARAM(cipher, i)) { - cap = cipher2cap(cipher & i); + cap = cipher2cap(i); if (cap && HAS_CIPHER_CAP(crypto_params, cap)) { SET_MCAST_CIPHER(crypto_params, i); status = QDF_STATUS_SUCCESS; @@ -148,7 +148,7 @@ QDF_STATUS wlan_crypto_set_ucastciphers( for (i = 0; i < WLAN_CRYPTO_CIPHER_MAX ; i++) { if (HAS_PARAM(cipher, i)) { - cap = cipher2cap(cipher & i); + cap = cipher2cap(i); if (cap && HAS_CIPHER_CAP(crypto_params, cap)) { SET_UCAST_CIPHER(crypto_params, i); status = QDF_STATUS_SUCCESS;