hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/intersil/orinoco/mic.c
....@@ -16,20 +16,18 @@
1616 /********************************************************************/
1717 int orinoco_mic_init(struct orinoco_private *priv)
1818 {
19
- priv->tx_tfm_mic = crypto_alloc_shash("michael_mic", 0,
20
- CRYPTO_ALG_ASYNC);
19
+ priv->tx_tfm_mic = crypto_alloc_shash("michael_mic", 0, 0);
2120 if (IS_ERR(priv->tx_tfm_mic)) {
22
- printk(KERN_DEBUG "orinoco_mic_init: could not allocate "
23
- "crypto API michael_mic\n");
21
+ printk(KERN_DEBUG "%s: could not allocate "
22
+ "crypto API michael_mic\n", __func__);
2423 priv->tx_tfm_mic = NULL;
2524 return -ENOMEM;
2625 }
2726
28
- priv->rx_tfm_mic = crypto_alloc_shash("michael_mic", 0,
29
- CRYPTO_ALG_ASYNC);
27
+ priv->rx_tfm_mic = crypto_alloc_shash("michael_mic", 0, 0);
3028 if (IS_ERR(priv->rx_tfm_mic)) {
31
- printk(KERN_DEBUG "orinoco_mic_init: could not allocate "
32
- "crypto API michael_mic\n");
29
+ printk(KERN_DEBUG "%s: could not allocate "
30
+ "crypto API michael_mic\n", __func__);
3331 priv->rx_tfm_mic = NULL;
3432 return -ENOMEM;
3533 }
....@@ -54,7 +52,7 @@
5452 int err;
5553
5654 if (tfm_michael == NULL) {
57
- printk(KERN_WARNING "orinoco_mic: tfm_michael == NULL\n");
55
+ printk(KERN_WARNING "%s: tfm_michael == NULL\n", __func__);
5856 return -1;
5957 }
6058
....@@ -67,7 +65,6 @@
6765 hdr[ETH_ALEN * 2 + 3] = 0;
6866
6967 desc->tfm = tfm_michael;
70
- desc->flags = 0;
7168
7269 err = crypto_shash_setkey(tfm_michael, key, MIC_KEYLEN);
7370 if (err)