Main Page | Data Structures | Directories | File List | Data Fields | Globals

hostap_80211_rx.c File Reference

#include <linux/etherdevice.h>
#include "hostap_80211.h"
#include "hostap.h"

Include dependency graph for hostap_80211_rx.c:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LWNG_SETVAL(f, i, s, l, d)

Functions

void hostap_dump_rx_80211 (const char *name, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats)
int prism2_rx_80211 (struct net_device *dev, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats, int type)
static void monitor_rx (struct net_device *dev, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats)
static struct prism2_frag_entry * prism2_frag_cache_find (local_info_t *local, unsigned int seq, unsigned int frag, u8 *src, u8 *dst)
static struct sk_buff * prism2_frag_cache_get (local_info_t *local, struct hostap_ieee80211_hdr *hdr)
static int prism2_frag_cache_invalidate (local_info_t *local, struct hostap_ieee80211_hdr *hdr)
static int hostap_rx_frame_mgmt (local_info_t *local, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats, u16 type, u16 stype)
static struct net_device * prism2_rx_get_wds (local_info_t *local, u8 *addr)
static int hostap_rx_frame_wds (local_info_t *local, struct hostap_ieee80211_hdr *hdr, u16 fc, struct net_device **wds)
static int hostap_is_eapol_frame (local_info_t *local, struct hostap_ieee80211_hdr *hdr, u8 *buf, int len)
static int hostap_rx_frame_decrypt (local_info_t *local, int iswep, struct sk_buff *skb)
void hostap_80211_rx (struct net_device *dev, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats)
 EXPORT_SYMBOL (hostap_80211_rx)


Define Documentation

#define LWNG_SETVAL f,
i,
s,
l,
 ) 
 

Value:

hdr->f.did = LWNG_CAP_DID_BASE | (i << 12); \
hdr->f.status = s; hdr->f.len = l; hdr->f.data = d

Referenced by prism2_rx_80211().


Function Documentation

EXPORT_SYMBOL hostap_80211_rx  ) 
 

void hostap_80211_rx struct net_device * dev,
struct sk_buff * skb,
struct hostap_80211_rx_statusrx_stats
 

Definition at line 551 of file hostap_80211_rx.c.

References hostap_ieee80211_hdr::addr1, hostap_ieee80211_hdr::addr2, hostap_ieee80211_hdr::addr3, hostap_ieee80211_hdr::addr4, AP_RX_CONTINUE, AP_RX_CONTINUE_NOT_AUTHORIZED, AP_RX_DROP, AP_RX_EXIT, ETH_P_PAE, hostap_ieee80211_hdr::frame_control, hostap_80211_get_hdrlen(), hostap_get_stats(), hostap_handle_sta_rx(), hostap_is_sta_assoc(), hostap_rx_frame_decrypt(), hostap_rx_frame_mgmt(), hostap_rx_frame_wds(), hostap_update_rx_stats(), IEEE80211_DATA_HDR3_LEN, IEEE80211_DATA_HDR4_LEN, IW_MODE_MASTER, IW_MODE_MONITOR, IW_MODE_REPEAT, MAC2STR, MACSTR, monitor_rx(), prism2_frag_cache_get(), prism2_frag_cache_invalidate(), prism2_rx_80211(), PRISM2_RX_MGMT, hostap_ieee80211_hdr::seq_ctrl, WLAN_FC_FROMDS, WLAN_FC_GET_STYPE, WLAN_FC_GET_TYPE, WLAN_FC_ISWEP, WLAN_FC_MOREFRAG, WLAN_FC_STYPE_AUTH, WLAN_FC_STYPE_DATA, WLAN_FC_STYPE_DATA_CFACK, WLAN_FC_STYPE_DATA_CFACKPOLL, WLAN_FC_STYPE_DATA_CFPOLL, WLAN_FC_STYPE_NULLFUNC, WLAN_FC_TODS, WLAN_FC_TYPE_DATA, WLAN_FC_TYPE_MGMT, WLAN_GET_SEQ_FRAG, and WLAN_GET_SEQ_SEQ.

Here is the call graph for this function:

void hostap_dump_rx_80211 const char * name,
struct sk_buff * skb,
struct hostap_80211_rx_statusrx_stats
 

Definition at line 6 of file hostap_80211_rx.c.

References hostap_ieee80211_hdr::addr1, hostap_ieee80211_hdr::addr2, hostap_ieee80211_hdr::addr3, hostap_ieee80211_hdr::addr4, hostap_ieee80211_hdr::duration_id, hostap_ieee80211_hdr::frame_control, IEEE80211_DATA_HDR3_LEN, MAC2STR, MACSTR, hostap_ieee80211_hdr::seq_ctrl, WLAN_FC_FROMDS, WLAN_FC_GET_STYPE, WLAN_FC_GET_TYPE, and WLAN_FC_TODS.

Referenced by hostap_handle_sta_rx().

static int hostap_is_eapol_frame local_info_t * local,
struct hostap_ieee80211_hdrhdr,
u8 * buf,
int len
[static]
 

Definition at line 434 of file hostap_80211_rx.c.

References ETH_P_PAE, WLAN_FC_FROMDS, and WLAN_FC_TODS.

Referenced by hostap_rx_frame_decrypt().

static int hostap_rx_frame_decrypt local_info_t * local,
int iswep,
struct sk_buff * skb
[inline, static]
 

Definition at line 468 of file hostap_80211_rx.c.

References hostap_ieee80211_hdr::addr1, hostap_ieee80211_hdr::addr2, hostap_ieee80211_hdr::frame_control, hostap_80211_get_hdrlen(), hostap_handle_sta_crypto(), hostap_handle_sta_release(), hostap_is_eapol_frame(), MAC2STR, and MACSTR.

Referenced by hostap_80211_rx().

Here is the call graph for this function:

static int hostap_rx_frame_mgmt local_info_t * local,
struct sk_buff * skb,
struct hostap_80211_rx_statusrx_stats,
u16 type,
u16 stype
[inline, static]
 

Definition at line 311 of file hostap_80211_rx.c.

References hostap_rx(), hostap_update_sta_ps(), IW_MODE_MASTER, prism2_rx_80211(), PRISM2_RX_MGMT, WLAN_FC_STYPE_BEACON, WLAN_FC_TYPE_CTRL, and WLAN_FC_TYPE_MGMT.

Referenced by hostap_80211_rx().

Here is the call graph for this function:

static int hostap_rx_frame_wds local_info_t * local,
struct hostap_ieee80211_hdrhdr,
u16 fc,
struct net_device ** wds
[inline, static]
 

Definition at line 380 of file hostap_80211_rx.c.

References hostap_is_sta_assoc(), hostap_wds_link_oper(), IW_MODE_INFRA, IW_MODE_MASTER, MAC2STR, MACSTR, prism2_rx_get_wds(), WDS_ADD, WLAN_FC_FROMDS, and WLAN_FC_TODS.

Referenced by hostap_80211_rx().

Here is the call graph for this function:

static void monitor_rx struct net_device * dev,
struct sk_buff * skb,
struct hostap_80211_rx_statusrx_stats
[static]
 

Definition at line 190 of file hostap_80211_rx.c.

References hostap_get_stats(), prism2_rx_80211(), and PRISM2_RX_MONITOR.

Referenced by hostap_80211_rx().

Here is the call graph for this function:

static struct prism2_frag_entry* prism2_frag_cache_find local_info_t * local,
unsigned int seq,
unsigned int frag,
u8 * src,
u8 * dst
[static]
 

Definition at line 205 of file hostap_80211_rx.c.

Referenced by prism2_frag_cache_get(), and prism2_frag_cache_invalidate().

static struct sk_buff* prism2_frag_cache_get local_info_t * local,
struct hostap_ieee80211_hdrhdr
[static]
 

Definition at line 235 of file hostap_80211_rx.c.

References prism2_frag_cache_find(), WLAN_GET_SEQ_FRAG, and WLAN_GET_SEQ_SEQ.

Referenced by hostap_80211_rx().

Here is the call graph for this function:

static int prism2_frag_cache_invalidate local_info_t * local,
struct hostap_ieee80211_hdrhdr
[static]
 

Definition at line 286 of file hostap_80211_rx.c.

References prism2_frag_cache_find(), and WLAN_GET_SEQ_SEQ.

Referenced by hostap_80211_rx().

Here is the call graph for this function:

int prism2_rx_80211 struct net_device * dev,
struct sk_buff * skb,
struct hostap_80211_rx_statusrx_stats,
int type
 

Definition at line 46 of file hostap_80211_rx.c.

References linux_wlan_ng_cap_hdr::antenna, ARPHRD_IEEE80211_PRISM, linux_wlan_ng_cap_hdr::channel, linux_wlan_ng_cap_hdr::datarate, dev_kfree_skb_any(), linux_wlan_ng_prism_hdr::devname, linux_wlan_ng_cap_hdr::encoding, hostap_ieee80211_hdr::frame_control, hostap_80211_get_hdrlen(), linux_wlan_ng_cap_hdr::hosttime, linux_wlan_ng_cap_hdr::length, LWNG_CAP_DID_BASE, LWNG_CAPHDR_VERSION, LWNG_SETVAL, linux_wlan_ng_cap_hdr::mactime, linux_wlan_ng_prism_hdr::msgcode, linux_wlan_ng_prism_hdr::msglen, linux_wlan_ng_cap_hdr::phytype, linux_wlan_ng_cap_hdr::preamble, linux_wlan_ng_cap_hdr::priority, PRISM2_RX_MGMT, linux_wlan_ng_cap_hdr::ssi_noise, linux_wlan_ng_cap_hdr::ssi_signal, linux_wlan_ng_cap_hdr::ssi_type, linux_wlan_ng_cap_hdr::version, and WLAN_FC_PVER.

Referenced by hostap_80211_rx(), hostap_handle_sta_rx(), hostap_rx_frame_mgmt(), and monitor_rx().

Here is the call graph for this function:

static struct net_device* prism2_rx_get_wds local_info_t * local,
u8 * addr
[inline, static]
 

Definition at line 358 of file hostap_80211_rx.c.

Referenced by hostap_rx_frame_wds().


Generated on Mon Nov 21 15:58:52 2005 for openwifi by  doxygen 1.4.1