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

atheros.c File Reference

#include <include.h>
#include <src/atheros.h>
#include <src/wlan-ng.h>
#include <src/crt_io.h>

Include dependency graph for atheros.c:

Go to the source code of this file.

Defines

#define STR_MAX   80
#define STR_MAX   80

Functions

int selectChannelATHEROS (char *devname, int channel)
int shutCardATHEROS (char *devname)
int openCardATHEROS (char *devname)
int getPacketATHEROS (unsigned char *buf, int maxlen)
int openPacketATHEROS (char *devname)
void closePacketATHEROS (void)

Variables

static char * ID = "$Id: atheros.c,v 1.2 2005/02/23 11:36:53 poggij Exp $"
ConfigStruct config
p80211_caphdr_t wlan_header
static CaptureArg ca
static char errbuf [PCAP_ERRBUF_SIZE]


Define Documentation

#define STR_MAX   80
 

Referenced by openCardATHEROS(), openCardCISCO(), openCardPRISM54g(), selectChannelATHEROS(), selectChannelPRISM54g(), shutCardATHEROS(), shutCardCISCO(), and shutCardPRISM54g().

#define STR_MAX   80
 


Function Documentation

int selectChannelATHEROS char *  devname,
int  channel
 

Definition at line 50 of file atheros.c.

References debug, and STR_MAX.

Referenced by selectChannel().

int shutCardATHEROS char *  devname  ) 
 

Definition at line 73 of file atheros.c.

References debug, and STR_MAX.

Referenced by shutCard().

int openCardATHEROS char *  devname  ) 
 

Definition at line 91 of file atheros.c.

References debug, and STR_MAX.

Referenced by openCard().

int getPacketATHEROS unsigned char *  buf,
int  maxlen
 

Definition at line 109 of file atheros.c.

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

Referenced by getPacket().

int openPacketATHEROS char *  devname  ) 
 

Definition at line 164 of file atheros.c.

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

Referenced by openPacket().

void closePacketATHEROS void   ) 
 

Definition at line 197 of file atheros.c.

References ca, and CaptureArg_t::pcap.

Referenced by closePacket().


Variable Documentation

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

Definition at line 37 of file atheros.c.

ConfigStruct config
 

Definition at line 57 of file scanner.c.

p80211_caphdr_t wlan_header
 

Definition at line 52 of file driver.c.

Referenced by getPacketATHEROS(), getPacketCISCO(), getPacketHERMES(), getPacketHOSTAP(), getPacketPRISM54g(), getPacketWLAN(), and processPacket().

CaptureArg ca [static]
 

Definition at line 46 of file atheros.c.

Referenced by closePacketATHEROS(), getPacketATHEROS(), and openPacketATHEROS().

char errbuf[PCAP_ERRBUF_SIZE] [static]
 

Definition at line 47 of file atheros.c.

Referenced by openPacketATHEROS().


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