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

hostap.c File Reference

#include <include.h>
#include <src/hostap.h>
#include <src/crt_io.h>

Include dependency graph for hostap.c:

Go to the source code of this file.

Functions

int selectChannelHOSTAP (char *devname, int channel)
int shutCardHOSTAP (char *devname)
int openCardHOSTAP (char *devname)
int getPacketHOSTAP (unsigned char *buf, int maxlen)
int openPacketHOSTAP (char *devname)
void closePacketHOSTAP (void)

Variables

static char * ID = "$Id: hostap.c,v 1.9 2005/02/23 11:36:53 poggij Exp $"
UINT8 SingleChannel
UINT8 TypeOfCard
p80211_caphdr_t wlan_header
static CaptureArg ca
static char errbuf [PCAP_ERRBUF_SIZE]
static UINT8 wlan_payload [4096]


Function Documentation

int selectChannelHOSTAP char *  devname,
int  channel
 

Definition at line 47 of file hostap.c.

References debug.

Referenced by selectChannel().

int shutCardHOSTAP char *  devname  ) 
 

Definition at line 62 of file hostap.c.

References debug.

Referenced by shutCard().

int openCardHOSTAP char *  devname  ) 
 

Definition at line 83 of file hostap.c.

References debug.

Referenced by openCard().

int getPacketHOSTAP unsigned char *  buf,
int  maxlen
 

Definition at line 110 of file hostap.c.

References ca, memcpy_buff(), CaptureArg_t::pcap, phytype_dsss_dot11_b, wlan_header, and wlan_payload.

Referenced by getPacket().

int openPacketHOSTAP char *  devname  ) 
 

Definition at line 163 of file hostap.c.

References ca, debug, DLT_PRISM_HEADER, errbuf, CaptureArg_t::offset, and CaptureArg_t::pcap.

Referenced by openPacket().

void closePacketHOSTAP void   ) 
 

Definition at line 196 of file hostap.c.

References ca, and CaptureArg_t::pcap.

Referenced by closePacket().


Variable Documentation

char* ID = "$Id: hostap.c,v 1.9 2005/02/23 11:36:53 poggij Exp $" [static]
 

Definition at line 35 of file hostap.c.

UINT8 SingleChannel
 

UINT8 TypeOfCard
 

p80211_caphdr_t wlan_header
 

Definition at line 52 of file driver.c.

CaptureArg ca [static]
 

Definition at line 42 of file hostap.c.

Referenced by closePacketHOSTAP(), getPacketHOSTAP(), and openPacketHOSTAP().

char errbuf[PCAP_ERRBUF_SIZE] [static]
 

Definition at line 43 of file hostap.c.

Referenced by openPacketHOSTAP().

UINT8 wlan_payload[4096] [static]
 

Definition at line 44 of file hostap.c.

Referenced by getPacketHOSTAP().


Generated on Fri Feb 25 12:02:51 2005 for WifiScanner by  doxygen 1.4.1