#include "config/compiler.h"
#include "core/include/definitions.h"
#include "core/interface/wmp_interface.h"
#include "core/include/wmp_misc.h"
#include "core/include/ml_com.h"
#include <linux/if.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include "module/ath5k_interface.h"
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
Go to the source code of this file.
Defines | |
#define | ATH5K_RATE_CODE_11M 0x18 |
#define | ATH5K_RATE_CODE_12M 0x0A |
#define | ATH5K_RATE_CODE_18M 0x0E |
#define | ATH5K_RATE_CODE_1M 0x1B |
#define | ATH5K_RATE_CODE_24M 0x09 |
#define | ATH5K_RATE_CODE_2M 0x1A |
#define | ATH5K_RATE_CODE_36M 0x0D |
#define | ATH5K_RATE_CODE_48M 0x08 |
#define | ATH5K_RATE_CODE_54M 0x0C |
#define | ATH5K_RATE_CODE_5_5M 0x19 |
#define | ATH5K_RATE_CODE_6M 0x0B |
#define | ATH5K_RATE_CODE_9M 0x0F |
#define | DEFAULT_ANTENNA_MODE AR5K_ANTMODE_DEFAULT |
#define | DEFAULT_FREQ 5200 |
#define | DEFAULT_RATE RATE_6M |
#define | DEFAULT_TXPOWER_DBM 15 |
#define | WMP_PROTO 0x6969 /* TODO: Mover a un sitio apropiado */ |
Functions | |
void | closeLowLevelCom (void) |
int | configure_interface (struct net_device *dev) |
int | initLowLevelCom (void) |
rxInfo | llreceive (char *f, int timeout) |
int | llsend (char *f, int size) |
void | print_packet_hex (char *msg, unsigned char *packet, int len) |
int | readllcfg (void) |
Variables | |
static int | antenna_mode |
static int | ath5k_if_was_up |
static double | ath5k_rate [] |
static unsigned char | ethernet_frame [2500] |
static short | freq |
static struct net_device * | interfaz |
static char | param [256] |
static short | rate |
static unsigned char | txpower_dbm |
static char | val [256] |
#define ATH5K_RATE_CODE_11M 0x18 |
Definition at line 65 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_12M 0x0A |
Definition at line 69 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_18M 0x0E |
Definition at line 70 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_1M 0x1B |
Definition at line 62 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_24M 0x09 |
Definition at line 71 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_2M 0x1A |
Definition at line 63 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_36M 0x0D |
Definition at line 72 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_48M 0x08 |
Definition at line 73 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_54M 0x0C |
Definition at line 74 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_5_5M 0x19 |
Definition at line 64 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_6M 0x0B |
Definition at line 67 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define ATH5K_RATE_CODE_9M 0x0F |
Definition at line 68 of file linux_ks/hwi/ath5k_raw/ll_com.c.
Definition at line 60 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define DEFAULT_FREQ 5200 |
Definition at line 57 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define DEFAULT_RATE RATE_6M |
Definition at line 58 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define DEFAULT_TXPOWER_DBM 15 |
Definition at line 59 of file linux_ks/hwi/ath5k_raw/ll_com.c.
#define WMP_PROTO 0x6969 /* TODO: Mover a un sitio apropiado */ |
Definition at line 54 of file linux_ks/hwi/ath5k_raw/ll_com.c.
void closeLowLevelCom | ( | void | ) |
Definition at line 187 of file linux_ks/hwi/ath5k_raw/ll_com.c.
int configure_interface | ( | struct net_device * | dev | ) |
Definition at line 193 of file linux_ks/hwi/ath5k_raw/ll_com.c.
int initLowLevelCom | ( | void | ) |
Definition at line 242 of file linux_ks/hwi/ath5k_raw/ll_com.c.
Definition at line 327 of file linux_ks/hwi/ath5k_raw/ll_com.c.
int llsend | ( | char * | f, |
int | size | ||
) |
Definition at line 288 of file linux_ks/hwi/ath5k_raw/ll_com.c.
void print_packet_hex | ( | char * | msg, |
unsigned char * | packet, | ||
int | len | ||
) |
Definition at line 93 of file linux_ks/hwi/ath5k_raw/ll_com.c.
int readllcfg | ( | void | ) |
Definition at line 105 of file linux_ks/hwi/ath5k_raw/ll_com.c.
int antenna_mode [static] |
Definition at line 87 of file linux_ks/hwi/ath5k_raw/ll_com.c.
int ath5k_if_was_up [static] |
Definition at line 88 of file linux_ks/hwi/ath5k_raw/ll_com.c.
double ath5k_rate[] [static] |
{ 0, 0, 0, 0, 0, 0, 0, 0, 48, 24, 12, 6, 54, 36, 18, 9, 0, 0, 0, 0, 0, 0, 0, 0, 11, 5.5, 2, 1, 0, 0, 0, 0, 0 }
Definition at line 76 of file linux_ks/hwi/ath5k_raw/ll_com.c.
unsigned char ethernet_frame[2500] [static] |
Definition at line 91 of file linux_ks/hwi/ath5k_raw/ll_com.c.
short freq [static] |
Definition at line 84 of file linux_ks/hwi/ath5k_raw/ll_com.c.
struct net_device* interfaz [static] |
Definition at line 80 of file linux_ks/hwi/ath5k_raw/ll_com.c.
char param[256] [static] |
Definition at line 82 of file linux_ks/hwi/ath5k_raw/ll_com.c.
short rate [static] |
Definition at line 85 of file linux_ks/hwi/ath5k_raw/ll_com.c.
unsigned char txpower_dbm [static] |
Definition at line 86 of file linux_ks/hwi/ath5k_raw/ll_com.c.
char val[256] [static] |
Definition at line 82 of file linux_ks/hwi/ath5k_raw/ll_com.c.