Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
rxtx.c File Reference
#include "device.h"
#include "rxtx.h"
#include "tether.h"
#include "card.h"
#include "bssdb.h"
#include "mac.h"
#include "baseband.h"
#include "michael.h"
#include "tkip.h"
#include "tcrc.h"
#include "wctl.h"
#include "wroute.h"
#include "hostap.h"
#include "rf.h"

Go to the source code of this file.

Macros

#define PLICE_DEBUG
 
#define CRITICAL_PACKET_LEN   256
 
#define RTSDUR_BB   0
 
#define RTSDUR_BA   1
 
#define RTSDUR_AA   2
 
#define CTSDUR_BA   3
 
#define RTSDUR_BA_F0   4
 
#define RTSDUR_AA_F0   5
 
#define RTSDUR_BA_F1   6
 
#define RTSDUR_AA_F1   7
 
#define CTSDUR_BA_F0   8
 
#define CTSDUR_BA_F1   9
 
#define DATADUR_B   10
 
#define DATADUR_A   11
 
#define DATADUR_A_F0   12
 
#define DATADUR_A_F1   13
 

Functions

void vGenerateFIFOHeader (PSDevice pDevice, unsigned char byPktType, unsigned char *pbyTxBufferAddr, bool bNeedEncrypt, unsigned int cbPayloadSize, unsigned int uDMAIdx, PSTxDesc pHeadTD, PSEthernetHeader psEthHeader, unsigned char *pPacket, PSKeyItem pTransmitKey, unsigned int uNodeIndex, unsigned int *puMACfragNum, unsigned int *pcbHeaderSize)
 
void vGenerateMACHeader (PSDevice pDevice, unsigned char *pbyBufferAddr, unsigned short wDuration, PSEthernetHeader psEthHeader, bool bNeedEncrypt, unsigned short wFragType, unsigned int uDMAIdx, unsigned int uFragIdx)
 
CMD_STATUS csMgmt_xmit (PSDevice pDevice, PSTxMgmtPacket pPacket)
 
CMD_STATUS csBeacon_xmit (PSDevice pDevice, PSTxMgmtPacket pPacket)
 
unsigned int cbGetFragCount (PSDevice pDevice, PSKeyItem pTransmitKey, unsigned int cbFrameBodySize, PSEthernetHeader psEthHeader)
 
void vDMA0_tx_80211 (PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, unsigned int cbMPDULen)
 

Variables

const unsigned short wTimeStampOff [2][MAX_RATE]
 
const unsigned short wFB_Opt0 [2][5]
 
const unsigned short wFB_Opt1 [2][5]
 

Macro Definition Documentation

#define CRITICAL_PACKET_LEN   256

Definition at line 80 of file rxtx.c.

#define CTSDUR_BA   3

Definition at line 101 of file rxtx.c.

#define CTSDUR_BA_F0   8

Definition at line 106 of file rxtx.c.

#define CTSDUR_BA_F1   9

Definition at line 107 of file rxtx.c.

#define DATADUR_A   11

Definition at line 109 of file rxtx.c.

#define DATADUR_A_F0   12

Definition at line 110 of file rxtx.c.

#define DATADUR_A_F1   13

Definition at line 111 of file rxtx.c.

#define DATADUR_B   10

Definition at line 108 of file rxtx.c.

#define PLICE_DEBUG

Definition at line 74 of file rxtx.c.

#define RTSDUR_AA   2

Definition at line 100 of file rxtx.c.

#define RTSDUR_AA_F0   5

Definition at line 103 of file rxtx.c.

#define RTSDUR_AA_F1   7

Definition at line 105 of file rxtx.c.

#define RTSDUR_BA   1

Definition at line 99 of file rxtx.c.

#define RTSDUR_BA_F0   4

Definition at line 102 of file rxtx.c.

#define RTSDUR_BA_F1   6

Definition at line 104 of file rxtx.c.

#define RTSDUR_BB   0

Definition at line 98 of file rxtx.c.

Function Documentation

unsigned int cbGetFragCount ( PSDevice  pDevice,
PSKeyItem  pTransmitKey,
unsigned int  cbFrameBodySize,
PSEthernetHeader  psEthHeader 
)

Definition at line 2702 of file rxtx.c.

CMD_STATUS csBeacon_xmit ( PSDevice  pDevice,
PSTxMgmtPacket  pPacket 
)

Definition at line 2624 of file rxtx.c.

CMD_STATUS csMgmt_xmit ( PSDevice  pDevice,
PSTxMgmtPacket  pPacket 
)

Definition at line 2304 of file rxtx.c.

void vDMA0_tx_80211 ( PSDevice  pDevice,
struct sk_buff skb,
unsigned char pbMPDU,
unsigned int  cbMPDULen 
)

Definition at line 2788 of file rxtx.c.

void vGenerateFIFOHeader ( PSDevice  pDevice,
unsigned char  byPktType,
unsigned char pbyTxBufferAddr,
bool  bNeedEncrypt,
unsigned int  cbPayloadSize,
unsigned int  uDMAIdx,
PSTxDesc  pHeadTD,
PSEthernetHeader  psEthHeader,
unsigned char pPacket,
PSKeyItem  pTransmitKey,
unsigned int  uNodeIndex,
unsigned int puMACfragNum,
unsigned int pcbHeaderSize 
)

Definition at line 2072 of file rxtx.c.

void vGenerateMACHeader ( PSDevice  pDevice,
unsigned char pbyBufferAddr,
unsigned short  wDuration,
PSEthernetHeader  psEthHeader,
bool  bNeedEncrypt,
unsigned short  wFragType,
unsigned int  uDMAIdx,
unsigned int  uFragIdx 
)

Definition at line 2232 of file rxtx.c.

Variable Documentation

const unsigned short wFB_Opt0[2][5]
Initial value:

Definition at line 88 of file rxtx.c.

const unsigned short wFB_Opt1[2][5]
Initial value:

Definition at line 92 of file rxtx.c.

const unsigned short wTimeStampOff[2][MAX_RATE]
Initial value:
= {
{384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23},
{384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23},
}

Definition at line 83 of file rxtx.c.