Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
hostap_main.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/proc_fs.h>
#include <linux/if_arp.h>
#include <linux/delay.h>
#include <linux/random.h>
#include <linux/workqueue.h>
#include <linux/kmod.h>
#include <linux/rtnetlink.h>
#include <linux/wireless.h>
#include <linux/etherdevice.h>
#include <net/net_namespace.h>
#include <net/iw_handler.h>
#include <net/lib80211.h>
#include <asm/uaccess.h>
#include "hostap_wlan.h"
#include "hostap_80211.h"
#include "hostap_ap.h"
#include "hostap.h"

Go to the source code of this file.

Macros

#define TX_TIMEOUT   (2 * HZ)
 
#define PRISM2_MAX_FRAME_SIZE   2304
 
#define PRISM2_MIN_MTU   256
 
#define PRISM2_MAX_MTU   (PRISM2_MAX_FRAME_SIZE - (6 /* LLC */ + 8 /* WEP */))
 

Functions

 MODULE_AUTHOR ("Jouni Malinen")
 
 MODULE_DESCRIPTION ("Host AP common routines")
 
 MODULE_LICENSE ("GPL")
 
struct net_devicehostap_add_interface (struct local_info *local, int type, int rtnl_locked, const char *prefix, const char *name)
 
void hostap_remove_interface (struct net_device *dev, int rtnl_locked, int remove_from_list)
 
int prism2_wds_add (local_info_t *local, u8 *remote_addr, int rtnl_locked)
 
int prism2_wds_del (local_info_t *local, u8 *remote_addr, int rtnl_locked, int do_not_remove)
 
u16 hostap_tx_callback_register (local_info_t *local, void(*func)(struct sk_buff *, int ok, void *), void *data)
 
int hostap_tx_callback_unregister (local_info_t *local, u16 idx)
 
int hostap_set_word (struct net_device *dev, int rid, u16 val)
 
int hostap_set_string (struct net_device *dev, int rid, const char *val)
 
u16 hostap_get_porttype (local_info_t *local)
 
int hostap_set_encryption (local_info_t *local)
 
int hostap_set_antsel (local_info_t *local)
 
int hostap_set_roaming (local_info_t *local)
 
int hostap_set_auth_algs (local_info_t *local)
 
void hostap_dump_rx_header (const char *name, const struct hfa384x_rx_frame *rx)
 
void hostap_dump_tx_header (const char *name, const struct hfa384x_tx_frame *tx)
 
int hostap_80211_get_hdrlen (__le16 fc)
 
void hostap_set_multicast_list_queue (struct work_struct *work)
 
 EXPORT_SYMBOL (hostap_80211_ops)
 
void hostap_setup_dev (struct net_device *dev, local_info_t *local, int type)
 
int hostap_set_hostapd (local_info_t *local, int val, int rtnl_locked)
 
int hostap_set_hostapd_sta (local_info_t *local, int val, int rtnl_locked)
 
int prism2_update_comms_qual (struct net_device *dev)
 
int prism2_sta_send_mgmt (local_info_t *local, u8 *dst, u16 stype, u8 *body, size_t bodylen)
 
int prism2_sta_deauth (local_info_t *local, u16 reason)
 
 EXPORT_SYMBOL (hostap_set_word)
 
 EXPORT_SYMBOL (hostap_set_string)
 
 EXPORT_SYMBOL (hostap_get_porttype)
 
 EXPORT_SYMBOL (hostap_set_encryption)
 
 EXPORT_SYMBOL (hostap_set_antsel)
 
 EXPORT_SYMBOL (hostap_set_roaming)
 
 EXPORT_SYMBOL (hostap_set_auth_algs)
 
 EXPORT_SYMBOL (hostap_dump_rx_header)
 
 EXPORT_SYMBOL (hostap_dump_tx_header)
 
 EXPORT_SYMBOL (hostap_80211_get_hdrlen)
 
 EXPORT_SYMBOL (hostap_setup_dev)
 
 EXPORT_SYMBOL (hostap_set_multicast_list_queue)
 
 EXPORT_SYMBOL (hostap_set_hostapd)
 
 EXPORT_SYMBOL (hostap_set_hostapd_sta)
 
 EXPORT_SYMBOL (hostap_add_interface)
 
 EXPORT_SYMBOL (hostap_remove_interface)
 
 EXPORT_SYMBOL (prism2_update_comms_qual)
 
 module_init (hostap_init)
 
 module_exit (hostap_exit)
 

Variables

struct header_ops hostap_80211_ops
 
struct proc_dir_entryhostap_proc
 

Macro Definition Documentation

#define PRISM2_MAX_FRAME_SIZE   2304

Definition at line 43 of file hostap_main.c.

#define PRISM2_MAX_MTU   (PRISM2_MAX_FRAME_SIZE - (6 /* LLC */ + 8 /* WEP */))

Definition at line 46 of file hostap_main.c.

#define PRISM2_MIN_MTU   256

Definition at line 44 of file hostap_main.c.

#define TX_TIMEOUT   (2 * HZ)

Definition at line 41 of file hostap_main.c.

Function Documentation

EXPORT_SYMBOL ( hostap_80211_ops  )
EXPORT_SYMBOL ( hostap_set_word  )
EXPORT_SYMBOL ( hostap_set_string  )
EXPORT_SYMBOL ( hostap_get_porttype  )
EXPORT_SYMBOL ( hostap_set_encryption  )
EXPORT_SYMBOL ( hostap_set_antsel  )
EXPORT_SYMBOL ( hostap_set_roaming  )
EXPORT_SYMBOL ( hostap_set_auth_algs  )
EXPORT_SYMBOL ( hostap_dump_rx_header  )
EXPORT_SYMBOL ( hostap_dump_tx_header  )
EXPORT_SYMBOL ( hostap_80211_get_hdrlen  )
EXPORT_SYMBOL ( hostap_setup_dev  )
EXPORT_SYMBOL ( hostap_set_multicast_list_queue  )
EXPORT_SYMBOL ( hostap_set_hostapd  )
EXPORT_SYMBOL ( hostap_set_hostapd_sta  )
EXPORT_SYMBOL ( hostap_add_interface  )
EXPORT_SYMBOL ( hostap_remove_interface  )
EXPORT_SYMBOL ( prism2_update_comms_qual  )
int hostap_80211_get_hdrlen ( __le16  fc)

Definition at line 591 of file hostap_main.c.

struct net_device* hostap_add_interface ( struct local_info *  local,
int  type,
int  rtnl_locked,
const char prefix,
const char name 
)
read

Definition at line 49 of file hostap_main.c.

void hostap_dump_rx_header ( const char name,
const struct hfa384x_rx_frame rx 
)

Definition at line 524 of file hostap_main.c.

void hostap_dump_tx_header ( const char name,
const struct hfa384x_tx_frame tx 
)

Definition at line 555 of file hostap_main.c.

u16 hostap_get_porttype ( local_info_t local)

Definition at line 316 of file hostap_main.c.

void hostap_remove_interface ( struct net_device dev,
int  rtnl_locked,
int  remove_from_list 
)

Definition at line 102 of file hostap_main.c.

int hostap_set_antsel ( local_info_t local)

Definition at line 424 of file hostap_main.c.

int hostap_set_auth_algs ( local_info_t local)

Definition at line 502 of file hostap_main.c.

int hostap_set_encryption ( local_info_t local)

Definition at line 332 of file hostap_main.c.

int hostap_set_hostapd ( local_info_t local,
int  val,
int  rtnl_locked 
)

Definition at line 955 of file hostap_main.c.

int hostap_set_hostapd_sta ( local_info_t local,
int  val,
int  rtnl_locked 
)

Definition at line 980 of file hostap_main.c.

void hostap_set_multicast_list_queue ( struct work_struct work)

Definition at line 733 of file hostap_main.c.

int hostap_set_roaming ( local_info_t local)

Definition at line 481 of file hostap_main.c.

int hostap_set_string ( struct net_device dev,
int  rid,
const char val 
)

Definition at line 298 of file hostap_main.c.

int hostap_set_word ( struct net_device dev,
int  rid,
u16  val 
)

Definition at line 289 of file hostap_main.c.

void hostap_setup_dev ( struct net_device dev,
local_info_t local,
int  type 
)

Definition at line 850 of file hostap_main.c.

u16 hostap_tx_callback_register ( local_info_t local,
void(*)(struct sk_buff *, int ok, void *)  func,
void data 
)

Definition at line 240 of file hostap_main.c.

int hostap_tx_callback_unregister ( local_info_t local,
u16  idx 
)

Definition at line 264 of file hostap_main.c.

MODULE_AUTHOR ( "Jouni Malinen"  )
MODULE_DESCRIPTION ( "Host AP common routines )
module_exit ( hostap_exit  )
module_init ( hostap_init  )
MODULE_LICENSE ( "GPL"  )
int prism2_sta_deauth ( local_info_t local,
u16  reason 
)

Definition at line 1080 of file hostap_main.c.

int prism2_sta_send_mgmt ( local_info_t local,
u8 dst,
u16  stype,
u8 body,
size_t  bodylen 
)

Definition at line 1044 of file hostap_main.c.

int prism2_update_comms_qual ( struct net_device dev)

Definition at line 1006 of file hostap_main.c.

int prism2_wds_add ( local_info_t local,
u8 remote_addr,
int  rtnl_locked 
)

Definition at line 142 of file hostap_main.c.

int prism2_wds_del ( local_info_t local,
u8 remote_addr,
int  rtnl_locked,
int  do_not_remove 
)

Definition at line 204 of file hostap_main.c.

Variable Documentation

struct header_ops hostap_80211_ops
Initial value:
= {
.create = eth_header,
.rebuild = eth_rebuild_header,
.cache = eth_header_cache,
.cache_update = eth_header_cache_update,
.parse = hostap_80211_header_parse,
}

Definition at line 801 of file hostap_main.c.

struct proc_dir_entry* hostap_proc

Definition at line 1099 of file hostap_main.c.