qcacmn: Correct parameter passed to cipher2cap function

Correct parameter passed to cipher2cap function.

Change-Id: Ib962c7d908eb0591c9e87ad5987938ad5f24ef93
CRs-Fixed: 2302379
This commit is contained in:
Ashok Kumar Ponnaiah 2018-08-24 10:00:30 +05:30 • committed by nshrivas
commit 17a6db2aa6

View file

@ -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;