diff options
author | Jouni Malinen <jkmaline@cc.hut.fi> | 2005-07-30 23:43:20 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-07-31 00:28:02 -0400 |
commit | 62fe7e378109537ff80971c5208e12d40bf88bee (patch) | |
tree | 6facd4654afbef6590e21c4fde0c71fb7ed79f2e /drivers/net/wireless/hostap/hostap_hw.c | |
parent | ebed67d2847a9d299b47eeb5d82744671ab2b198 (diff) |
[PATCH] hostap: Replace crypto code with net/ieee80211 version
Replace Host AP version of WEP, TKIP, CCMP implementation with
net/ieee80211 that has more or less identical implementation (since
it is based on the Host AP implementation). Remove Host AP specific
implementation and modules from drivers/net/wireless/hostap.
Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_hw.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_hw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c index 72a8a19ad8c0..dc31f5351b36 100644 --- a/drivers/net/wireless/hostap/hostap_hw.c +++ b/drivers/net/wireless/hostap/hostap_hw.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen | 5 | * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen |
6 | * <jkmaline@cc.hut.fi> | 6 | * <jkmaline@cc.hut.fi> |
7 | * Copyright (c) 2002-2004, Jouni Malinen <jkmaline@cc.hut.fi> | 7 | * Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi> |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License version 2 as | 10 | * it under the terms of the GNU General Public License version 2 as |
@@ -2967,11 +2967,11 @@ static void prism2_check_sta_fw_version(local_info_t *local) | |||
2967 | static void prism2_crypt_deinit_entries(local_info_t *local, int force) | 2967 | static void prism2_crypt_deinit_entries(local_info_t *local, int force) |
2968 | { | 2968 | { |
2969 | struct list_head *ptr, *n; | 2969 | struct list_head *ptr, *n; |
2970 | struct prism2_crypt_data *entry; | 2970 | struct ieee80211_crypt_data *entry; |
2971 | 2971 | ||
2972 | for (ptr = local->crypt_deinit_list.next, n = ptr->next; | 2972 | for (ptr = local->crypt_deinit_list.next, n = ptr->next; |
2973 | ptr != &local->crypt_deinit_list; ptr = n, n = ptr->next) { | 2973 | ptr != &local->crypt_deinit_list; ptr = n, n = ptr->next) { |
2974 | entry = list_entry(ptr, struct prism2_crypt_data, list); | 2974 | entry = list_entry(ptr, struct ieee80211_crypt_data, list); |
2975 | 2975 | ||
2976 | if (atomic_read(&entry->refcnt) != 0 && !force) | 2976 | if (atomic_read(&entry->refcnt) != 0 && !force) |
2977 | continue; | 2977 | continue; |
@@ -3531,7 +3531,7 @@ static void prism2_free_local_data(struct net_device *dev) | |||
3531 | prism2_callback(local, PRISM2_CALLBACK_DISABLE); | 3531 | prism2_callback(local, PRISM2_CALLBACK_DISABLE); |
3532 | 3532 | ||
3533 | for (i = 0; i < WEP_KEYS; i++) { | 3533 | for (i = 0; i < WEP_KEYS; i++) { |
3534 | struct prism2_crypt_data *crypt = local->crypt[i]; | 3534 | struct ieee80211_crypt_data *crypt = local->crypt[i]; |
3535 | if (crypt) { | 3535 | if (crypt) { |
3536 | if (crypt->ops) | 3536 | if (crypt->ops) |
3537 | crypt->ops->deinit(crypt->priv); | 3537 | crypt->ops->deinit(crypt->priv); |