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
This commit is contained in:
Rohan Dutta
2017-09-01 16:04:25 +05:30
committed by snandini
parent 0add4c2028
commit 3844c6009c

View File

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