Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
bssdb.h File Reference
#include <linux/skbuff.h>
#include "80211hdr.h"
#include "80211mgr.h"
#include "card.h"

Go to the source code of this file.

Data Structures

struct  tagSERPObject
 
struct  tagSRSNCapObject
 
struct  tagKnownBSS
 
struct  tagKnownNodeDB
 

Macros

#define MAX_NODE_NUM   64
 
#define MAX_BSS_NUM   42
 
#define LOST_BEACON_COUNT   10
 
#define MAX_PS_TX_BUF   32
 
#define ADHOC_LOST_BEACON_COUNT   30
 
#define MAX_INACTIVE_COUNT   300
 
#define USE_PROTECT_PERIOD   10
 
#define ERP_RECOVER_COUNT   30
 
#define BSS_CLEAR_COUNT   1
 
#define RSSI_STAT_COUNT   10
 
#define MAX_CHECK_RSSI_COUNT   8
 
#define WLAN_STA_AUTH   BIT0
 
#define WLAN_STA_ASSOC   BIT1
 
#define WLAN_STA_PS   BIT2
 
#define WLAN_STA_TIM   BIT3
 
#define WLAN_STA_PERM   BIT4
 
#define WLAN_STA_AUTHORIZED   BIT5
 
#define MAX_RATE   12
 
#define MAX_WPA_IE_LEN   64
 

Typedefs

typedef enum
_NDIS_802_11_NETWORK_TYPE 
NDIS_802_11_NETWORK_TYPE
 
typedef enum
_NDIS_802_11_NETWORK_TYPE
PNDIS_802_11_NETWORK_TYPE
 
typedef struct tagSERPObject ERPObject
 
typedef struct tagSERPObjectPERPObject
 
typedef struct tagSRSNCapObject SRSNCapObject
 
typedef struct tagSRSNCapObjectPSRSNCapObject
 
typedef enum tagNODE_STATE NODE_STATE
 
typedef enum tagNODE_STATEPNODE_STATE
 
typedef struct tagKnownNodeDB KnownNodeDB
 
typedef struct tagKnownNodeDBPKnownNodeDB
 

Enumerations

enum  _NDIS_802_11_NETWORK_TYPE {
  Ndis802_11FH, Ndis802_11DS, Ndis802_11OFDM5, Ndis802_11OFDM24,
  Ndis802_11NetworkTypeMax
}
 
enum  tagNODE_STATE {
  NODE_FREE, NODE_AGED, NODE_KNOWN, NODE_AUTH,
  NODE_ASSOC, NODE_FREE, NODE_AGED, NODE_KNOWN,
  NODE_AUTH, NODE_ASSOC
}
 

Functions

struct tagKnownBSS __attribute__ ((__packed__)) KnownBSS
 
PKnownBSS BSSpSearchBSSList (void *hDeviceContext, unsigned char *pbyDesireBSSID, unsigned char *pbyDesireSSID, CARD_PHY_TYPE ePhyType)
 
PKnownBSS BSSpAddrIsInBSSList (void *hDeviceContext, unsigned char *abyBSSID, PWLAN_IE_SSID pSSID)
 
void BSSvClearBSSList (void *hDeviceContext, bool bKeepCurrBSSID)
 
bool BSSbInsertToBSSList (void *hDeviceContext, unsigned char *abyBSSIDAddr, QWORD qwTimestamp, unsigned short wBeaconInterval, unsigned short wCapInfo, unsigned char byCurrChannel, PWLAN_IE_SSID pSSID, PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pExtSuppRates, PERPObject psERP, PWLAN_IE_RSN pRSN, PWLAN_IE_RSN_EXT pRSNWPA, PWLAN_IE_COUNTRY pIE_Country, PWLAN_IE_QUIET pIE_Quiet, unsigned int uIELength, unsigned char *pbyIEs, void *pRxPacketContext)
 
bool BSSbUpdateToBSSList (void *hDeviceContext, QWORD qwTimestamp, unsigned short wBeaconInterval, unsigned short wCapInfo, unsigned char byCurrChannel, bool bChannelHit, PWLAN_IE_SSID pSSID, PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pExtSuppRates, PERPObject psERP, PWLAN_IE_RSN pRSN, PWLAN_IE_RSN_EXT pRSNWPA, PWLAN_IE_COUNTRY pIE_Country, PWLAN_IE_QUIET pIE_Quiet, PKnownBSS pBSSList, unsigned int uIELength, unsigned char *pbyIEs, void *pRxPacketContext)
 
bool BSSDBbIsSTAInNodeDB (void *hDeviceContext, unsigned char *abyDstAddr, unsigned int *puNodeIndex)
 
void BSSvCreateOneNode (void *hDeviceContext, unsigned int *puNodeIndex)
 
void BSSvUpdateAPNode (void *hDeviceContext, unsigned short *pwCapInfo, PWLAN_IE_SUPP_RATES pItemRates, PWLAN_IE_SUPP_RATES pExtSuppRates)
 
void BSSvSecondCallBack (void *hDeviceContext)
 
void BSSvUpdateNodeTxCounter (void *hDeviceContext, unsigned char byTsr0, unsigned char byTsr1, unsigned char *pbyBuffer, unsigned int uFIFOHeaderSize)
 
void BSSvRemoveOneNode (void *hDeviceContext, unsigned int uNodeIndex)
 
void BSSvAddMulticastNode (void *hDeviceContext)
 
void BSSvClearNodeDBTable (void *hDeviceContext, unsigned int uStartIndex)
 
void BSSvClearAnyBSSJoinRecord (void *hDeviceContext)
 

Variables

bool bActive
 
unsigned char abyBSSID [WLAN_BSSID_LEN]
 
unsigned int uChannel
 
unsigned char abySuppRates [WLAN_IEHDR_LEN+WLAN_RATES_MAXLEN+1]
 
unsigned char abyExtSuppRates [WLAN_IEHDR_LEN+WLAN_RATES_MAXLEN+1]
 
unsigned int uRSSI
 
unsigned char bySQ
 
unsigned short wBeaconInterval
 
unsigned short wCapInfo
 
unsigned char abySSID [WLAN_IEHDR_LEN+WLAN_SSID_MAXLEN+1]
 
unsigned char byRxRate
 
unsigned char byRSSIStatCnt
 
long ldBmMAX
 
long ldBmAverage [RSSI_STAT_COUNT]
 
long ldBmAverRange
 
bool bSelected
 
bool bWPAValid
 
unsigned char byGKType
 
unsigned char abyPKType [4]
 
unsigned short wPKCount
 
unsigned char abyAuthType [4]
 
unsigned short wAuthCount
 
unsigned char byDefaultK_as_PK
 
unsigned char byReplayIdx
 
bool bWPA2Valid
 
unsigned char byCSSGK
 
unsigned short wCSSPKCount
 
unsigned char abyCSSPK [4]
 
unsigned short wAKMSSAuthCount
 
unsigned char abyAKMSSAuthType [4]
 
unsigned char byWPAIE [MAX_WPA_IE_LEN]
 
unsigned char byRSNIE [MAX_WPA_IE_LEN]
 
unsigned short wWPALen
 
unsigned short wRSNLen
 
unsigned int uClearCount
 
unsigned int uIELength
 
QWORD qwBSSTimestamp
 
QWORD qwLocalTSF
 
CARD_PHY_TYPE eNetworkTypeInUse
 
ERPObject sERP
 
SRSNCapObject sRSNCapObj
 
unsigned char abyIEs [1024]
 
struct tagKnownBSSPKnownBSS
 

Macro Definition Documentation

#define ADHOC_LOST_BEACON_COUNT   30

Definition at line 44 of file bssdb.h.

#define BSS_CLEAR_COUNT   1

Definition at line 49 of file bssdb.h.

#define ERP_RECOVER_COUNT   30

Definition at line 48 of file bssdb.h.

#define LOST_BEACON_COUNT   10

Definition at line 42 of file bssdb.h.

#define MAX_BSS_NUM   42

Definition at line 41 of file bssdb.h.

#define MAX_CHECK_RSSI_COUNT   8

Definition at line 52 of file bssdb.h.

#define MAX_INACTIVE_COUNT   300

Definition at line 45 of file bssdb.h.

#define MAX_NODE_NUM   64

Definition at line 40 of file bssdb.h.

#define MAX_PS_TX_BUF   32

Definition at line 43 of file bssdb.h.

#define MAX_RATE   12

Definition at line 66 of file bssdb.h.

#define MAX_WPA_IE_LEN   64

Definition at line 68 of file bssdb.h.

#define RSSI_STAT_COUNT   10

Definition at line 51 of file bssdb.h.

#define USE_PROTECT_PERIOD   10

Definition at line 47 of file bssdb.h.

#define WLAN_STA_ASSOC   BIT1

Definition at line 56 of file bssdb.h.

#define WLAN_STA_AUTH   BIT0

Definition at line 55 of file bssdb.h.

#define WLAN_STA_AUTHORIZED   BIT5

Definition at line 64 of file bssdb.h.

#define WLAN_STA_PERM   BIT4

Definition at line 60 of file bssdb.h.

#define WLAN_STA_PS   BIT2

Definition at line 57 of file bssdb.h.

#define WLAN_STA_TIM   BIT3

Definition at line 58 of file bssdb.h.

Typedef Documentation

typedef enum tagNODE_STATE NODE_STATE
typedef enum tagNODE_STATE * PNODE_STATE

Enumeration Type Documentation

Enumerator:
Ndis802_11FH 
Ndis802_11DS 
Ndis802_11OFDM5 
Ndis802_11OFDM24 
Ndis802_11NetworkTypeMax 

Definition at line 82 of file bssdb.h.

Enumerator:
NODE_FREE 
NODE_AGED 
NODE_KNOWN 
NODE_AUTH 
NODE_ASSOC 
NODE_FREE 
NODE_AGED 
NODE_KNOWN 
NODE_AUTH 
NODE_ASSOC 

Definition at line 172 of file bssdb.h.

Function Documentation

struct tagKnownBSS __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

bool BSSbInsertToBSSList ( void hDeviceContext,
unsigned char abyBSSIDAddr,
QWORD  qwTimestamp,
unsigned short  wBeaconInterval,
unsigned short  wCapInfo,
unsigned char  byCurrChannel,
PWLAN_IE_SSID  pSSID,
PWLAN_IE_SUPP_RATES  pSuppRates,
PWLAN_IE_SUPP_RATES  pExtSuppRates,
PERPObject  psERP,
PWLAN_IE_RSN  pRSN,
PWLAN_IE_RSN_EXT  pRSNWPA,
PWLAN_IE_COUNTRY  pIE_Country,
PWLAN_IE_QUIET  pIE_Quiet,
unsigned int  uIELength,
unsigned char pbyIEs,
void pRxPacketContext 
)

Definition at line 369 of file bssdb.c.

bool BSSbUpdateToBSSList ( void hDeviceContext,
QWORD  qwTimestamp,
unsigned short  wBeaconInterval,
unsigned short  wCapInfo,
unsigned char  byCurrChannel,
bool  bChannelHit,
PWLAN_IE_SSID  pSSID,
PWLAN_IE_SUPP_RATES  pSuppRates,
PWLAN_IE_SUPP_RATES  pExtSuppRates,
PERPObject  psERP,
PWLAN_IE_RSN  pRSN,
PWLAN_IE_RSN_EXT  pRSNWPA,
PWLAN_IE_COUNTRY  pIE_Country,
PWLAN_IE_QUIET  pIE_Quiet,
PKnownBSS  pBSSList,
unsigned int  uIELength,
unsigned char pbyIEs,
void pRxPacketContext 
)

Definition at line 585 of file bssdb.c.

bool BSSDBbIsSTAInNodeDB ( void hDeviceContext,
unsigned char abyDstAddr,
unsigned int puNodeIndex 
)

Definition at line 763 of file bssdb.c.

PKnownBSS BSSpAddrIsInBSSList ( void hDeviceContext,
unsigned char abyBSSID,
PWLAN_IE_SSID  pSSID 
)

Definition at line 326 of file bssdb.c.

PKnownBSS BSSpSearchBSSList ( void hDeviceContext,
unsigned char pbyDesireBSSID,
unsigned char pbyDesireSSID,
CARD_PHY_TYPE  ePhyType 
)

Definition at line 127 of file bssdb.c.

void BSSvAddMulticastNode ( void hDeviceContext)

Definition at line 953 of file bssdb.c.

void BSSvClearAnyBSSJoinRecord ( void hDeviceContext)

Definition at line 1654 of file bssdb.c.

void BSSvClearBSSList ( void hDeviceContext,
bool  bKeepCurrBSSID 
)

Definition at line 283 of file bssdb.c.

void BSSvClearNodeDBTable ( void hDeviceContext,
unsigned int  uStartIndex 
)

Definition at line 1576 of file bssdb.c.

void BSSvCreateOneNode ( void hDeviceContext,
unsigned int puNodeIndex 
)

Definition at line 795 of file bssdb.c.

void BSSvRemoveOneNode ( void hDeviceContext,
unsigned int  uNodeIndex 
)

Definition at line 857 of file bssdb.c.

void BSSvSecondCallBack ( void hDeviceContext)

Definition at line 1006 of file bssdb.c.

void BSSvUpdateAPNode ( void hDeviceContext,
unsigned short pwCapInfo,
PWLAN_IE_SUPP_RATES  pItemRates,
PWLAN_IE_SUPP_RATES  pExtSuppRates 
)

Definition at line 890 of file bssdb.c.

void BSSvUpdateNodeTxCounter ( void hDeviceContext,
unsigned char  byTsr0,
unsigned char  byTsr1,
unsigned char pbyBuffer,
unsigned int  uFIFOHeaderSize 
)

Definition at line 1383 of file bssdb.c.

Variable Documentation

unsigned char abyAKMSSAuthType[4]

Definition at line 206 of file bssdb.h.

unsigned char abyAuthType[4]

Definition at line 194 of file bssdb.h.

unsigned char abyBSSID[WLAN_BSSID_LEN]

Definition at line 170 of file bssdb.h.

unsigned char abyCSSPK[4]

Definition at line 204 of file bssdb.h.

unsigned char abyExtSuppRates[WLAN_IEHDR_LEN+WLAN_RATES_MAXLEN+1]

Definition at line 173 of file bssdb.h.

unsigned char abyIEs[1024]

Definition at line 226 of file bssdb.h.

unsigned char abyPKType[4]

Definition at line 192 of file bssdb.h.

unsigned char abySSID[WLAN_IEHDR_LEN+WLAN_SSID_MAXLEN+1]

Definition at line 178 of file bssdb.h.

unsigned char abySuppRates[WLAN_IEHDR_LEN+WLAN_RATES_MAXLEN+1]

Definition at line 172 of file bssdb.h.

bool bActive

Definition at line 169 of file bssdb.h.

bool bSelected

Definition at line 187 of file bssdb.h.

bool bWPA2Valid

Definition at line 201 of file bssdb.h.

bool bWPAValid

Definition at line 190 of file bssdb.h.

unsigned char byCSSGK

Definition at line 202 of file bssdb.h.

unsigned char byDefaultK_as_PK

Definition at line 196 of file bssdb.h.

unsigned char byGKType

Definition at line 191 of file bssdb.h.

unsigned char byReplayIdx

Definition at line 197 of file bssdb.h.

unsigned char byRSNIE[MAX_WPA_IE_LEN]

Definition at line 210 of file bssdb.h.

unsigned char byRSSIStatCnt

Definition at line 182 of file bssdb.h.

unsigned char byRxRate

Definition at line 179 of file bssdb.h.

unsigned char bySQ

Definition at line 175 of file bssdb.h.

unsigned char byWPAIE[MAX_WPA_IE_LEN]

Definition at line 209 of file bssdb.h.

CARD_PHY_TYPE eNetworkTypeInUse

Definition at line 222 of file bssdb.h.

long ldBmAverage[RSSI_STAT_COUNT]

Definition at line 184 of file bssdb.h.

long ldBmAverRange

Definition at line 185 of file bssdb.h.

long ldBmMAX

Definition at line 183 of file bssdb.h.

struct tagKnownBSS * PKnownBSS

Definition at line 167 of file bssdb.h.

QWORD qwBSSTimestamp

Definition at line 218 of file bssdb.h.

QWORD qwLocalTSF

Definition at line 219 of file bssdb.h.

ERPObject sERP

Definition at line 224 of file bssdb.h.

SRSNCapObject sRSNCapObj

Definition at line 225 of file bssdb.h.

unsigned int uChannel

Definition at line 171 of file bssdb.h.

unsigned int uClearCount

Definition at line 215 of file bssdb.h.

unsigned int uIELength

Definition at line 217 of file bssdb.h.

unsigned int uRSSI

Definition at line 174 of file bssdb.h.

unsigned short wAKMSSAuthCount

Definition at line 205 of file bssdb.h.

unsigned short wAuthCount

Definition at line 195 of file bssdb.h.

unsigned short wBeaconInterval

Definition at line 176 of file bssdb.h.

unsigned short wCapInfo

Definition at line 177 of file bssdb.h.

unsigned short wCSSPKCount

Definition at line 203 of file bssdb.h.

unsigned short wPKCount

Definition at line 193 of file bssdb.h.

unsigned short wRSNLen

Definition at line 212 of file bssdb.h.

unsigned short wWPALen

Definition at line 211 of file bssdb.h.