Browse Source

qcacmn: Set the TX_Usage in key Flags for EAP-TLS

The TX_usage is set for EAT-TLS with WEP as cipher.

CRs-Fixed: 2095158
Change-Id: I4f2f61c5cbc266a1c27b3b74e59065fc1d9aa4c2
Rohan Dutta 7 years ago
parent
commit
3844c6009c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      umac/cmn_services/crypto/src/wlan_crypto_global_api.c

+ 8 - 0
umac/cmn_services/crypto/src/wlan_crypto_global_api.c

@@ -350,6 +350,14 @@ QDF_STATUS wlan_crypto_setkey(struct wlan_objmgr_vdev *vdev,
 	}
 	wlan_vdev_obj_unlock(vdev);
 
+	if (req_key->type == WLAN_CRYPTO_CIPHER_WEP) {
+		if (wlan_crypto_vdev_has_auth_mode(vdev,
+					(1 << WLAN_CRYPTO_AUTH_8021X))) {
+			req_key->flags |= WLAN_CRYPTO_KEY_DEFAULT;
+			crypto_priv->def_tx_keyid = req_key->keyix;
+		}
+	}
+
 	if (isbcast) {
 		crypto_params = wlan_crypto_vdev_get_comp_params(vdev,
 								&crypto_priv);