diff options
Diffstat (limited to 'drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c')
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c index b3882ae9d97..694eae3d4fd 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c | |||
@@ -11,12 +11,14 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
15 | |||
14 | //#include <linux/config.h> | 16 | //#include <linux/config.h> |
15 | #include <linux/module.h> | 17 | #include <linux/module.h> |
16 | #include <linux/init.h> | 18 | #include <linux/init.h> |
17 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
18 | #include <asm/string.h> | 20 | #include <linux/string.h> |
19 | #include <asm/errno.h> | 21 | #include <linux/errno.h> |
20 | 22 | ||
21 | #include "ieee80211.h" | 23 | #include "ieee80211.h" |
22 | 24 | ||
@@ -66,8 +68,7 @@ void ieee80211_crypt_deinit_handler(unsigned long data) | |||
66 | spin_lock_irqsave(&ieee->lock, flags); | 68 | spin_lock_irqsave(&ieee->lock, flags); |
67 | ieee80211_crypt_deinit_entries(ieee, 0); | 69 | ieee80211_crypt_deinit_entries(ieee, 0); |
68 | if (!list_empty(&ieee->crypt_deinit_list)) { | 70 | if (!list_empty(&ieee->crypt_deinit_list)) { |
69 | printk(KERN_DEBUG "%s: entries remaining in delayed crypt " | 71 | pr_debug("entries remaining in delayed crypt deletion list\n"); |
70 | "deletion list\n", ieee->dev->name); | ||
71 | ieee->crypt_deinit_timer.expires = jiffies + HZ; | 72 | ieee->crypt_deinit_timer.expires = jiffies + HZ; |
72 | add_timer(&ieee->crypt_deinit_timer); | 73 | add_timer(&ieee->crypt_deinit_timer); |
73 | } | 74 | } |
@@ -118,8 +119,7 @@ int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops) | |||
118 | list_add(&alg->list, &hcrypt->algs); | 119 | list_add(&alg->list, &hcrypt->algs); |
119 | spin_unlock_irqrestore(&hcrypt->lock, flags); | 120 | spin_unlock_irqrestore(&hcrypt->lock, flags); |
120 | 121 | ||
121 | printk(KERN_DEBUG "ieee80211_crypt: registered algorithm '%s'\n", | 122 | pr_debug("registered algorithm '%s'\n", ops->name); |
122 | ops->name); | ||
123 | 123 | ||
124 | return 0; | 124 | return 0; |
125 | } | 125 | } |
@@ -146,8 +146,7 @@ int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops) | |||
146 | spin_unlock_irqrestore(&hcrypt->lock, flags); | 146 | spin_unlock_irqrestore(&hcrypt->lock, flags); |
147 | 147 | ||
148 | if (del_alg) { | 148 | if (del_alg) { |
149 | printk(KERN_DEBUG "ieee80211_crypt: unregistered algorithm " | 149 | pr_debug("unregistered algorithm '%s'\n", ops->name); |
150 | "'%s'\n", ops->name); | ||
151 | kfree(del_alg); | 150 | kfree(del_alg); |
152 | } | 151 | } |
153 | 152 | ||
@@ -155,7 +154,7 @@ int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops) | |||
155 | } | 154 | } |
156 | 155 | ||
157 | 156 | ||
158 | struct ieee80211_crypto_ops * ieee80211_get_crypto_ops(const char *name) | 157 | struct ieee80211_crypto_ops *ieee80211_get_crypto_ops(const char *name) |
159 | { | 158 | { |
160 | unsigned long flags; | 159 | unsigned long flags; |
161 | struct list_head *ptr; | 160 | struct list_head *ptr; |
@@ -182,7 +181,7 @@ struct ieee80211_crypto_ops * ieee80211_get_crypto_ops(const char *name) | |||
182 | } | 181 | } |
183 | 182 | ||
184 | 183 | ||
185 | static void * ieee80211_crypt_null_init(int keyidx) { return (void *) 1; } | 184 | static void *ieee80211_crypt_null_init(int keyidx) { return (void *) 1; } |
186 | static void ieee80211_crypt_null_deinit(void *priv) {} | 185 | static void ieee80211_crypt_null_deinit(void *priv) {} |
187 | 186 | ||
188 | static struct ieee80211_crypto_ops ieee80211_crypt_null = { | 187 | static struct ieee80211_crypto_ops ieee80211_crypt_null = { |
@@ -234,9 +233,8 @@ void ieee80211_crypto_deinit(void) | |||
234 | alg = list_entry(ptr, struct ieee80211_crypto_alg, list); | 233 | alg = list_entry(ptr, struct ieee80211_crypto_alg, list); |
235 | if (alg) { | 234 | if (alg) { |
236 | list_del(ptr); | 235 | list_del(ptr); |
237 | printk(KERN_DEBUG | 236 | pr_debug("unregistered algorithm '%s' (deinit)\n", |
238 | "ieee80211_crypt: unregistered algorithm '%s' (deinit)\n", | 237 | alg->ops->name); |
239 | alg->ops->name); | ||
240 | kfree(alg); | 238 | kfree(alg); |
241 | } | 239 | } |
242 | } | 240 | } |