Explorar el Código

qcacmn: Correct parameter passed to cipher2cap function

Correct parameter passed to cipher2cap function.

Change-Id: Ib962c7d908eb0591c9e87ad5987938ad5f24ef93
CRs-Fixed: 2302379
Ashok Kumar Ponnaiah hace 6 años
padre
commit
17a6db2aa6
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      umac/cmn_services/crypto/src/wlan_crypto_param_handling.c

+ 2 - 2
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;