Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hostap_ap.c File Reference
#include <linux/proc_fs.h>
#include <linux/delay.h>
#include <linux/random.h>
#include <linux/if_arp.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/moduleparam.h>
#include "hostap_wlan.h"
#include "hostap.h"
#include "hostap_ap.h"

Go to the source code of this file.

Macros

#define PROC_LIMIT   (PAGE_SIZE - 80)
 

Functions

 module_param_array (other_ap_policy, int, NULL, 0444)
 
 MODULE_PARM_DESC (other_ap_policy,"Other AP beacon monitoring policy (0-3)")
 
 module_param_array (ap_max_inactivity, int, NULL, 0444)
 
 MODULE_PARM_DESC (ap_max_inactivity,"AP timeout (in seconds) for station ""inactivity")
 
 module_param_array (ap_bridge_packets, int, NULL, 0444)
 
 MODULE_PARM_DESC (ap_bridge_packets,"Bridge packets directly between ""stations")
 
 module_param_array (autom_ap_wds, int, NULL, 0444)
 
 MODULE_PARM_DESC (autom_ap_wds,"Add WDS connections to other APs ""automatically")
 
void hostap_deauth_all_stas (struct net_device *dev, struct ap_data *ap, int resend)
 
int ap_control_add_mac (struct mac_restrictions *mac_restrictions, u8 *mac)
 
int ap_control_del_mac (struct mac_restrictions *mac_restrictions, u8 *mac)
 
void ap_control_flush_macs (struct mac_restrictions *mac_restrictions)
 
int ap_control_kick_mac (struct ap_data *ap, struct net_device *dev, u8 *mac)
 
void ap_control_kickall (struct ap_data *ap)
 
void hostap_check_sta_fw_version (struct ap_data *ap, int sta_fw_ver)
 
void hostap_init_data (local_info_t *local)
 
void hostap_init_ap_proc (local_info_t *local)
 
void hostap_free_data (struct ap_data *ap)
 
void hostap_rx (struct net_device *dev, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats)
 
int prism2_ap_get_sta_qual (local_info_t *local, struct sockaddr addr[], struct iw_quality qual[], int buf_size, int aplist)
 
int prism2_ap_translate_scan (struct net_device *dev, struct iw_request_info *info, char *buffer)
 
int prism2_hostapd (struct ap_data *ap, struct prism2_hostapd_param *param)
 
ap_tx_ret hostap_handle_sta_tx (local_info_t *local, struct hostap_tx_data *tx)
 
void hostap_handle_sta_release (void *ptr)
 
void hostap_handle_sta_tx_exc (local_info_t *local, struct sk_buff *skb)
 
int hostap_update_sta_ps (local_info_t *local, struct ieee80211_hdr *hdr)
 
ap_rx_ret hostap_handle_sta_rx (local_info_t *local, struct net_device *dev, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats, int wds)
 
int hostap_handle_sta_crypto (local_info_t *local, struct ieee80211_hdr *hdr, struct lib80211_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)
 
int hostap_update_rx_stats (struct ap_data *ap, struct ieee80211_hdr *hdr, struct hostap_80211_rx_status *rx_stats)
 
void hostap_update_rates (local_info_t *local)
 
voidap_crypt_get_ptrs (struct ap_data *ap, u8 *addr, int permanent, struct lib80211_crypt_data ***crypt)
 
void hostap_add_wds_links (local_info_t *local)
 
void hostap_wds_link_oper (local_info_t *local, u8 *addr, wds_oper_type type)
 
 EXPORT_SYMBOL (hostap_init_data)
 
 EXPORT_SYMBOL (hostap_init_ap_proc)
 
 EXPORT_SYMBOL (hostap_free_data)
 
 EXPORT_SYMBOL (hostap_check_sta_fw_version)
 
 EXPORT_SYMBOL (hostap_handle_sta_tx_exc)
 

Macro Definition Documentation

#define PROC_LIMIT   (PAGE_SIZE - 80)

Definition at line 513 of file hostap_ap.c.

Function Documentation

int ap_control_add_mac ( struct mac_restrictions mac_restrictions,
u8 mac 
)

Definition at line 373 of file hostap_ap.c.

int ap_control_del_mac ( struct mac_restrictions mac_restrictions,
u8 mac 
)

Definition at line 392 of file hostap_ap.c.

void ap_control_flush_macs ( struct mac_restrictions mac_restrictions)

Definition at line 440 of file hostap_ap.c.

int ap_control_kick_mac ( struct ap_data ap,
struct net_device dev,
u8 mac 
)

Definition at line 461 of file hostap_ap.c.

void ap_control_kickall ( struct ap_data ap)

Definition at line 492 of file hostap_ap.c.

void* ap_crypt_get_ptrs ( struct ap_data ap,
u8 addr,
int  permanent,
struct lib80211_crypt_data ***  crypt 
)

Definition at line 3210 of file hostap_ap.c.

EXPORT_SYMBOL ( hostap_init_data  )
EXPORT_SYMBOL ( hostap_init_ap_proc  )
EXPORT_SYMBOL ( hostap_free_data  )
EXPORT_SYMBOL ( hostap_check_sta_fw_version  )
EXPORT_SYMBOL ( hostap_handle_sta_tx_exc  )
int hostap_add_sta ( struct ap_data ap,
u8 sta_addr 
)

Definition at line 3124 of file hostap_ap.c.

void hostap_add_wds_links ( local_info_t local)

Definition at line 3236 of file hostap_ap.c.

void hostap_check_sta_fw_version ( struct ap_data ap,
int  sta_fw_ver 
)

Definition at line 571 of file hostap_ap.c.

void hostap_deauth_all_stas ( struct net_device dev,
struct ap_data ap,
int  resend 
)

Definition at line 299 of file hostap_ap.c.

void hostap_free_data ( struct ap_data ap)

Definition at line 853 of file hostap_ap.c.

int hostap_handle_sta_crypto ( local_info_t local,
struct ieee80211_hdr hdr,
struct lib80211_crypt_data **  crypt,
void **  sta_ptr 
)

Definition at line 3061 of file hostap_ap.c.

void hostap_handle_sta_release ( void ptr)

Definition at line 2814 of file hostap_ap.c.

ap_rx_ret hostap_handle_sta_rx ( local_info_t local,
struct net_device dev,
struct sk_buff skb,
struct hostap_80211_rx_status rx_stats,
int  wds 
)

Definition at line 2922 of file hostap_ap.c.

ap_tx_ret hostap_handle_sta_tx ( local_info_t local,
struct hostap_tx_data tx 
)

Definition at line 2681 of file hostap_ap.c.

void hostap_handle_sta_tx_exc ( local_info_t local,
struct sk_buff skb 
)

Definition at line 2822 of file hostap_ap.c.

void hostap_init_ap_proc ( local_info_t local)

Definition at line 830 of file hostap_ap.c.

void hostap_init_data ( local_info_t local)

Definition at line 780 of file hostap_ap.c.

int hostap_is_sta_assoc ( struct ap_data ap,
u8 sta_addr 
)

Definition at line 3090 of file hostap_ap.c.

int hostap_is_sta_authorized ( struct ap_data ap,
u8 sta_addr 
)

Definition at line 3106 of file hostap_ap.c.

void hostap_rx ( struct net_device dev,
struct sk_buff skb,
struct hostap_80211_rx_status rx_stats 
)

Definition at line 2257 of file hostap_ap.c.

void hostap_update_rates ( local_info_t local)

Definition at line 3194 of file hostap_ap.c.

int hostap_update_rx_stats ( struct ap_data ap,
struct ieee80211_hdr hdr,
struct hostap_80211_rx_status rx_stats 
)

Definition at line 3163 of file hostap_ap.c.

int hostap_update_sta_ps ( local_info_t local,
struct ieee80211_hdr hdr 
)

Definition at line 2896 of file hostap_ap.c.

void hostap_wds_link_oper ( local_info_t local,
u8 addr,
wds_oper_type  type 
)

Definition at line 3252 of file hostap_ap.c.

module_param_array ( other_ap_policy  ,
int  ,
NULL  ,
0444   
)
module_param_array ( ap_max_inactivity  ,
int  ,
NULL  ,
0444   
)
module_param_array ( ap_bridge_packets  ,
int  ,
NULL  ,
0444   
)
module_param_array ( autom_ap_wds  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( other_ap_policy  ,
"Other AP beacon monitoring policy (0-3)"   
)
MODULE_PARM_DESC ( ap_max_inactivity  ,
"AP timeout (in seconds) for station ""inactivity  
)
MODULE_PARM_DESC ( ap_bridge_packets  ,
"Bridge packets directly between ""stations"   
)
MODULE_PARM_DESC ( autom_ap_wds  ,
"Add WDS connections to other APs ""automatically"   
)
int prism2_ap_get_sta_qual ( local_info_t local,
struct sockaddr  addr[],
struct iw_quality  qual[],
int  buf_size,
int  aplist 
)

Definition at line 2324 of file hostap_ap.c.

int prism2_ap_translate_scan ( struct net_device dev,
struct iw_request_info info,
char buffer 
)

Definition at line 2366 of file hostap_ap.c.

int prism2_hostapd ( struct ap_data ap,
struct prism2_hostapd_param param 
)

Definition at line 2611 of file hostap_ap.c.