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;