#include "config/compiler.h"
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include "core/include/definitions.h"
#include "core/include/frames.h"
#include "core/include/wmp_misc.h"
#include "core/include/wmp_utils.h"
#include "core/include/ml_com.h"
#include <drivers/if_ether.h>
#include <drivers/osdep.h>
#include "module/ath5k_interface.h"
#include <math.h>
Go to the source code of this file.
Defines | |
#define | ANT_MODE AR5K_ANTMODE_FIXED_A |
#define | FREQ 5200 |
#define | RATE RATE_6M |
#define | TXPOWER_DBM 1 |
#define | WMP_PROTOCOL 0x6969 |
Functions | |
void | closeLowLevelCom () |
int | initLowLevelCom () |
rxInfo | llreceive (char *f, int timeout) |
int | llsend (char *f, int size) |
int | llsetConfig (unsigned short freq, enum rates rate, unsigned char tx_power_dbm) |
int | llsetPower (int dbm) |
static void | msg (char *s) |
static void | pause () |
void | print_packet_hex (char *msg, unsigned char *packet, int len) |
int | readllcfg () |
*** MARTE OS ********///// | |
Variables | |
static double | ath5k_rate [] |
static unsigned char | ethernet_frame [2500] |
int | foreign_frames = 0 |
static struct ath5k_softc * | tarjeta1 |
#define ANT_MODE AR5K_ANTMODE_FIXED_A |
Definition at line 72 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
#define FREQ 5200 |
Definition at line 54 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
Definition at line 55 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
#define TXPOWER_DBM 1 |
Definition at line 63 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
#define WMP_PROTOCOL 0x6969 |
Definition at line 75 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
void closeLowLevelCom | ( | void | ) |
Definition at line 118 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
int initLowLevelCom | ( | void | ) |
Definition at line 121 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
Definition at line 185 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
int llsend | ( | char * | f, |
int | size | ||
) |
Definition at line 168 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
int llsetConfig | ( | unsigned short | freq, |
enum rates | rate, | ||
unsigned char | tx_power_dbm | ||
) |
Definition at line 229 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
int llsetPower | ( | int | dbm | ) |
Definition at line 224 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
static void msg | ( | char * | s | ) | [static] |
Definition at line 95 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
static void pause | ( | ) | [static] |
Definition at line 89 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
void print_packet_hex | ( | char * | msg, |
unsigned char * | packet, | ||
int | len | ||
) |
Definition at line 100 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
int readllcfg | ( | void | ) |
*** MARTE OS ********/////
Definition at line 114 of file MaRTE_OS/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 86 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
unsigned char ethernet_frame[2500] [static] |
Definition at line 81 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
int foreign_frames = 0 |
Definition at line 84 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.
struct ath5k_softc* tarjeta1 [static] |
Definition at line 78 of file MaRTE_OS/hwi/ath5k_raw/ll_com.c.