Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6754
b: refs/heads/master
c: 62fe7e3
h: refs/heads/master
v: v3
  • Loading branch information
Jouni Malinen authored and Jeff Garzik committed Jul 31, 2005
1 parent 5afe93a commit c29e23b
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 1,796 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebed67d2847a9d299b47eeb5d82744671ab2b198
refs/heads/master: 62fe7e378109537ff80971c5208e12d40bf88bee
33 changes: 0 additions & 33 deletions trunk/drivers/net/wireless/hostap/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ config HOSTAP
Host AP mode that allows the card to act as an IEEE 802.11
access point.

In addition, this includes generic IEEE 802.11 code, e.g., for
WEP/TKIP/CCMP encryption that can be shared with other drivers.

See <http://hostap.epitest.fi/> for more information about the
Host AP driver configuration and tools. This site includes
information and tools (hostapd and wpa_supplicant) for WPA/WPA2
Expand All @@ -22,36 +19,6 @@ config HOSTAP
The driver can be compiled as a module and it will be called
"hostap.ko".

config HOSTAP_WEP
tristate "IEEE 802.11 WEP encryption"
depends on HOSTAP
select CRYPTO
---help---
Software implementation of IEEE 802.11 WEP encryption.

This can be compiled as a modules and it will be called
"hostap_crypt_wep.ko".

config HOSTAP_TKIP
tristate "IEEE 802.11 TKIP encryption"
depends on HOSTAP
select CRYPTO
---help---
Software implementation of IEEE 802.11 TKIP encryption.

This can be compiled as a modules and it will be called
"hostap_crypt_tkip.ko".

config HOSTAP_CCMP
tristate "IEEE 802.11 CCMP encryption"
depends on HOSTAP
select CRYPTO
---help---
Software implementation of IEEE 802.11 CCMP encryption.

This can be compiled as a modules and it will be called
"hostap_crypt_ccmp.ko".

config HOSTAP_FIRMWARE
bool "Support downloading firmware images with Host AP driver"
depends on HOSTAP
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/net/wireless/hostap/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
obj-$(CONFIG_HOSTAP) += hostap.o
obj-$(CONFIG_HOSTAP_WEP) += hostap_crypt_wep.o
obj-$(CONFIG_HOSTAP_TKIP) += hostap_crypt_tkip.o
obj-$(CONFIG_HOSTAP_CCMP) += hostap_crypt_ccmp.o

obj-$(CONFIG_HOSTAP_CS) += hostap_cs.o
obj-$(CONFIG_HOSTAP_PLX) += hostap_plx.o
Expand Down
12 changes: 2 additions & 10 deletions trunk/drivers/net/wireless/hostap/hostap.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen
* <jkmaline@cc.hut.fi>
* Copyright (c) 2002-2004, Jouni Malinen <jkmaline@cc.hut.fi>
* Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -34,16 +34,12 @@
#include "hostap_80211.h"
#include "hostap_ap.h"
#include "hostap.h"
#include "hostap_crypt.h"

MODULE_AUTHOR("Jouni Malinen");
MODULE_DESCRIPTION("Host AP common routines");
MODULE_LICENSE("GPL");
MODULE_VERSION(PRISM2_VERSION);

/* Old hostap_crypt module is now part of hostap module. */
#include "hostap_crypt.c"

#define TX_TIMEOUT (2 * HZ)

#define PRISM2_MAX_FRAME_SIZE 2304
Expand All @@ -66,7 +62,7 @@ static int prism2_ap_translate_scan(struct net_device *dev, char *buffer);
static int prism2_hostapd(struct ap_data *ap,
struct prism2_hostapd_param *param);
static void * ap_crypt_get_ptrs(struct ap_data *ap, u8 *addr, int permanent,
struct prism2_crypt_data ***crypt);
struct ieee80211_crypt_data ***crypt);
static void ap_control_kickall(struct ap_data *ap);
#ifndef PRISM2_NO_KERNEL_IEEE80211_MGMT
static int ap_control_add_mac(struct mac_restrictions *mac_restrictions,
Expand Down Expand Up @@ -1156,8 +1152,6 @@ struct proc_dir_entry *hostap_proc;

static int __init hostap_init(void)
{
hostap_crypto_init();

if (proc_net != NULL) {
hostap_proc = proc_mkdir("hostap", proc_net);
if (!hostap_proc)
Expand All @@ -1176,8 +1170,6 @@ static void __exit hostap_exit(void)
hostap_proc = NULL;
remove_proc_entry("hostap", proc_net);
}

hostap_crypto_deinit();
}


Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/hostap/hostap_80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void hostap_dump_tx_80211(const char *name, struct sk_buff *skb);
int hostap_data_start_xmit(struct sk_buff *skb, struct net_device *dev);
int hostap_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev);
struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb,
struct prism2_crypt_data *crypt);
struct ieee80211_crypt_data *crypt);
int hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev);

#endif /* HOSTAP_80211_H */
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/hostap/hostap_80211_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ static int hostap_is_eapol_frame(local_info_t *local, struct sk_buff *skb)
/* Called only as a tasklet (software IRQ) */
static inline int
hostap_rx_frame_decrypt(local_info_t *local, struct sk_buff *skb,
struct prism2_crypt_data *crypt)
struct ieee80211_crypt_data *crypt)
{
struct hostap_ieee80211_hdr *hdr;
int res, hdrlen;
Expand Down Expand Up @@ -652,7 +652,7 @@ hostap_rx_frame_decrypt(local_info_t *local, struct sk_buff *skb,
/* Called only as a tasklet (software IRQ) */
static inline int
hostap_rx_frame_decrypt_msdu(local_info_t *local, struct sk_buff *skb,
int keyidx, struct prism2_crypt_data *crypt)
int keyidx, struct ieee80211_crypt_data *crypt)
{
struct hostap_ieee80211_hdr *hdr;
int res, hdrlen;
Expand Down Expand Up @@ -698,7 +698,7 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
int from_assoc_ap = 0;
u8 dst[ETH_ALEN];
u8 src[ETH_ALEN];
struct prism2_crypt_data *crypt = NULL;
struct ieee80211_crypt_data *crypt = NULL;
void *sta = NULL;
int keyidx = 0;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/hostap/hostap_80211_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ int hostap_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev)

/* Called only from software IRQ */
struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb,
struct prism2_crypt_data *crypt)
struct ieee80211_crypt_data *crypt)
{
struct hostap_interface *iface;
local_info_t *local;
Expand Down
13 changes: 7 additions & 6 deletions trunk/drivers/net/wireless/hostap/hostap_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Intersil Prism2 driver with Host AP (software access point) support
* Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen
* <jkmaline@cc.hut.fi>
* Copyright (c) 2002-2003, Jouni Malinen <jkmaline@cc.hut.fi>
* Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi>
*
* This file is to be included into hostap.c when S/W AP functionality is
* compiled.
Expand Down Expand Up @@ -1206,7 +1206,7 @@ static void prism2_check_tx_rates(struct sta_info *sta)

static void ap_crypt_init(struct ap_data *ap)
{
ap->crypt = hostap_get_crypto_ops("WEP");
ap->crypt = ieee80211_get_crypto_ops("WEP");

if (ap->crypt) {
if (ap->crypt->init) {
Expand All @@ -1224,7 +1224,7 @@ static void ap_crypt_init(struct ap_data *ap)

if (ap->crypt == NULL) {
printk(KERN_WARNING "AP could not initialize WEP: load module "
"hostap_crypt_wep.o\n");
"ieee80211_crypt_wep.ko\n");
}
}

Expand Down Expand Up @@ -1293,7 +1293,7 @@ static void handle_authen(local_info_t *local, struct sk_buff *skb,
u16 auth_alg, auth_transaction, status_code, *pos;
u16 resp = WLAN_STATUS_SUCCESS, fc;
struct sta_info *sta = NULL;
struct prism2_crypt_data *crypt;
struct ieee80211_crypt_data *crypt;
char *txt = "";

len = skb->len - IEEE80211_MGMT_HDR_LEN;
Expand Down Expand Up @@ -3058,7 +3058,8 @@ ap_rx_ret hostap_handle_sta_rx(local_info_t *local, struct net_device *dev,
/* Called only as a tasklet (software IRQ) */
int hostap_handle_sta_crypto(local_info_t *local,
struct hostap_ieee80211_hdr *hdr,
struct prism2_crypt_data **crypt, void **sta_ptr)
struct ieee80211_crypt_data **crypt,
void **sta_ptr)
{
struct sta_info *sta;

Expand Down Expand Up @@ -3206,7 +3207,7 @@ void hostap_update_rates(local_info_t *local)


static void * ap_crypt_get_ptrs(struct ap_data *ap, u8 *addr, int permanent,
struct prism2_crypt_data ***crypt)
struct ieee80211_crypt_data ***crypt)
{
struct sta_info *sta;

Expand Down
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/hostap/hostap_ap.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct sta_info {
u32 tx_since_last_failure;
u32 tx_consecutive_exc;

struct prism2_crypt_data *crypt;
struct ieee80211_crypt_data *crypt;

int ap; /* whether this station is an AP */

Expand Down Expand Up @@ -216,7 +216,7 @@ struct ap_data {

/* WEP operations for generating challenges to be used with shared key
* authentication */
struct hostap_crypto_ops *crypt;
struct ieee80211_crypto_ops *crypt;
void *crypt_priv;
#endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */
};
Expand All @@ -236,7 +236,7 @@ typedef enum {
struct hostap_tx_data {
struct sk_buff *skb;
int host_encrypt;
struct prism2_crypt_data *crypt;
struct ieee80211_crypt_data *crypt;
void *sta_ptr;
};
ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct hostap_tx_data *tx);
Expand All @@ -253,7 +253,8 @@ ap_rx_ret hostap_handle_sta_rx(local_info_t *local, struct net_device *dev,
int wds);
int hostap_handle_sta_crypto(local_info_t *local,
struct hostap_ieee80211_hdr *hdr,
struct prism2_crypt_data **crypt, void **sta_ptr);
struct ieee80211_crypt_data **crypt,
void **sta_ptr);
int hostap_is_sta_assoc(struct ap_data *ap, u8 *sta_addr);
int hostap_is_sta_authorized(struct ap_data *ap, u8 *sta_addr);
int hostap_add_sta(struct ap_data *ap, u8 *sta_addr);
Expand Down
Loading

0 comments on commit c29e23b

Please sign in to comment.