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"
#include "mib.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 /* 10 sec, XP defined */
 
#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_WPA_IE_LEN   64
 

Typedefs

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  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, PBYTE pbyDesireBSSID, PBYTE pbyDesireSSID, CARD_PHY_TYPE ePhyType)
 
PKnownBSS BSSpAddrIsInBSSList (void *hDeviceContext, PBYTE abyBSSID, PWLAN_IE_SSID pSSID)
 
void BSSvClearBSSList (void *hDeviceContext, BOOL bKeepCurrBSSID)
 
BOOL BSSbInsertToBSSList (void *hDeviceContext, PBYTE abyBSSIDAddr, QWORD qwTimestamp, WORD wBeaconInterval, WORD wCapInfo, BYTE 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, PBYTE pbyIEs, void *pRxPacketContext)
 
BOOL BSSbUpdateToBSSList (void *hDeviceContext, QWORD qwTimestamp, WORD wBeaconInterval, WORD wCapInfo, BYTE 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, PBYTE pbyIEs, void *pRxPacketContext)
 
BOOL BSSbIsSTAInNodeDB (void *hDeviceContext, PBYTE abyDstAddr, unsigned int *puNodeIndex)
 
void BSSvCreateOneNode (void *hDeviceContext, unsigned int *puNodeIndex)
 
void BSSvUpdateAPNode (void *hDeviceContext, PWORD pwCapInfo, PWLAN_IE_SUPP_RATES pItemRates, PWLAN_IE_SUPP_RATES pExtSuppRates)
 
void BSSvSecondCallBack (void *hDeviceContext)
 
void BSSvUpdateNodeTxCounter (void *hDeviceContext, PSStatCounter pStatistic, BYTE byTSR, BYTE byPktNO)
 
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
 
BYTE abyBSSID [WLAN_BSSID_LEN]
 
unsigned int uChannel
 
BYTE abySuppRates [WLAN_IEHDR_LEN+WLAN_RATES_MAXLEN+1]
 
BYTE abyExtSuppRates [WLAN_IEHDR_LEN+WLAN_RATES_MAXLEN+1]
 
unsigned int uRSSI
 
BYTE bySQ
 
WORD wBeaconInterval
 
WORD wCapInfo
 
BYTE abySSID [WLAN_IEHDR_LEN+WLAN_SSID_MAXLEN+1]
 
BYTE byRxRate
 
BYTE byRSSIStatCnt
 
signed long ldBmMAX
 
signed long ldBmAverage [RSSI_STAT_COUNT]
 
signed long ldBmAverRange
 
BOOL bSelected
 
BOOL bWPAValid
 
BYTE byGKType
 
BYTE abyPKType [4]
 
WORD wPKCount
 
BYTE abyAuthType [4]
 
WORD wAuthCount
 
BYTE byDefaultK_as_PK
 
BYTE byReplayIdx
 
BOOL bWPA2Valid
 
BYTE byCSSGK
 
WORD wCSSPKCount
 
BYTE abyCSSPK [4]
 
WORD wAKMSSAuthCount
 
BYTE abyAKMSSAuthType [4]
 
BYTE byWPAIE [MAX_WPA_IE_LEN]
 
BYTE byRSNIE [MAX_WPA_IE_LEN]
 
WORD wWPALen
 
WORD wRSNLen
 
unsigned int uClearCount
 
unsigned int uIELength
 
QWORD qwBSSTimestamp
 
QWORD qwLocalTSF
 
CARD_PHY_TYPE eNetworkTypeInUse
 
ERPObject sERP
 
SRSNCapObject sRSNCapObj
 
BYTE abyIEs [1024]
 
struct tagKnownBSSPKnownBSS
 

Macro Definition Documentation

#define ADHOC_LOST_BEACON_COUNT   30

Definition at line 45 of file bssdb.h.

#define BSS_CLEAR_COUNT   1

Definition at line 50 of file bssdb.h.

#define ERP_RECOVER_COUNT   30

Definition at line 49 of file bssdb.h.

#define LOST_BEACON_COUNT   10 /* 10 sec, XP defined */

Definition at line 43 of file bssdb.h.

#define MAX_BSS_NUM   42

Definition at line 42 of file bssdb.h.

#define MAX_CHECK_RSSI_COUNT   8

Definition at line 53 of file bssdb.h.

#define MAX_INACTIVE_COUNT   300

Definition at line 46 of file bssdb.h.

#define MAX_NODE_NUM   64

Definition at line 41 of file bssdb.h.

#define MAX_PS_TX_BUF   32

Definition at line 44 of file bssdb.h.

#define MAX_WPA_IE_LEN   64

Definition at line 67 of file bssdb.h.

#define RSSI_STAT_COUNT   10

Definition at line 52 of file bssdb.h.

#define USE_PROTECT_PERIOD   10

Definition at line 48 of file bssdb.h.

#define WLAN_STA_ASSOC   BIT1

Definition at line 57 of file bssdb.h.

#define WLAN_STA_AUTH   BIT0

Definition at line 56 of file bssdb.h.

#define WLAN_STA_AUTHORIZED   BIT5

Definition at line 65 of file bssdb.h.

#define WLAN_STA_PERM   BIT4

Definition at line 61 of file bssdb.h.

#define WLAN_STA_PS   BIT2

Definition at line 58 of file bssdb.h.

#define WLAN_STA_TIM   BIT3

Definition at line 59 of file bssdb.h.

Typedef Documentation

typedef enum tagNODE_STATE NODE_STATE
typedef enum tagNODE_STATE * PNODE_STATE

Enumeration Type Documentation

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

Definition at line 159 of file bssdb.h.

Function Documentation

struct tagKnownBSS __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

BOOL BSSbInsertToBSSList ( void hDeviceContext,
PBYTE  abyBSSIDAddr,
QWORD  qwTimestamp,
WORD  wBeaconInterval,
WORD  wCapInfo,
BYTE  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,
PBYTE  pbyIEs,
void pRxPacketContext 
)

Definition at line 340 of file bssdb.c.

BOOL BSSbIsSTAInNodeDB ( void hDeviceContext,
PBYTE  abyDstAddr,
unsigned int puNodeIndex 
)

Definition at line 663 of file bssdb.c.

BOOL BSSbUpdateToBSSList ( void hDeviceContext,
QWORD  qwTimestamp,
WORD  wBeaconInterval,
WORD  wCapInfo,
BYTE  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,
PBYTE  pbyIEs,
void pRxPacketContext 
)

Definition at line 521 of file bssdb.c.

PKnownBSS BSSpAddrIsInBSSList ( void hDeviceContext,
PBYTE  abyBSSID,
PWLAN_IE_SSID  pSSID 
)

Definition at line 302 of file bssdb.c.

PKnownBSS BSSpSearchBSSList ( void hDeviceContext,
PBYTE  pbyDesireBSSID,
PBYTE  pbyDesireSSID,
CARD_PHY_TYPE  ePhyType 
)

Definition at line 117 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 266 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,
PWORD  pwCapInfo,
PWLAN_IE_SUPP_RATES  pItemRates,
PWLAN_IE_SUPP_RATES  pExtSuppRates 
)

Definition at line 785 of file bssdb.c.

void BSSvUpdateNodeTxCounter ( void hDeviceContext,
PSStatCounter  pStatistic,
BYTE  byTSR,
BYTE  byPktNO 
)

Definition at line 1253 of file bssdb.c.

Variable Documentation

BYTE abyAKMSSAuthType[4]

Definition at line 194 of file bssdb.h.

BYTE abyAuthType[4]

Definition at line 182 of file bssdb.h.

BYTE abyBSSID[WLAN_BSSID_LEN]

Definition at line 158 of file bssdb.h.

BYTE abyCSSPK[4]

Definition at line 192 of file bssdb.h.

Definition at line 161 of file bssdb.h.

BYTE abyIEs[1024]

Definition at line 213 of file bssdb.h.

BYTE abyPKType[4]

Definition at line 180 of file bssdb.h.

Definition at line 166 of file bssdb.h.

Definition at line 160 of file bssdb.h.

BOOL bActive

Definition at line 157 of file bssdb.h.

BOOL bSelected

Definition at line 175 of file bssdb.h.

BOOL bWPA2Valid

Definition at line 189 of file bssdb.h.

BOOL bWPAValid

Definition at line 178 of file bssdb.h.

BYTE byCSSGK

Definition at line 190 of file bssdb.h.

BYTE byDefaultK_as_PK

Definition at line 184 of file bssdb.h.

BYTE byGKType

Definition at line 179 of file bssdb.h.

BYTE byReplayIdx

Definition at line 185 of file bssdb.h.

BYTE byRSNIE[MAX_WPA_IE_LEN]

Definition at line 198 of file bssdb.h.

BYTE byRSSIStatCnt

Definition at line 170 of file bssdb.h.

BYTE byRxRate

Definition at line 167 of file bssdb.h.

BYTE bySQ

Definition at line 163 of file bssdb.h.

BYTE byWPAIE[MAX_WPA_IE_LEN]

Definition at line 197 of file bssdb.h.

CARD_PHY_TYPE eNetworkTypeInUse

Definition at line 209 of file bssdb.h.

signed long ldBmAverage[RSSI_STAT_COUNT]

Definition at line 172 of file bssdb.h.

signed long ldBmAverRange

Definition at line 173 of file bssdb.h.

signed long ldBmMAX

Definition at line 171 of file bssdb.h.

struct tagKnownBSS * PKnownBSS

Definition at line 155 of file bssdb.h.

QWORD qwBSSTimestamp

Definition at line 206 of file bssdb.h.

QWORD qwLocalTSF

Definition at line 207 of file bssdb.h.

ERPObject sERP

Definition at line 211 of file bssdb.h.

SRSNCapObject sRSNCapObj

Definition at line 212 of file bssdb.h.

unsigned int uChannel

Definition at line 159 of file bssdb.h.

unsigned int uClearCount

Definition at line 203 of file bssdb.h.

unsigned int uIELength

Definition at line 205 of file bssdb.h.

unsigned int uRSSI

Definition at line 162 of file bssdb.h.

WORD wAKMSSAuthCount

Definition at line 193 of file bssdb.h.

WORD wAuthCount

Definition at line 183 of file bssdb.h.

WORD wBeaconInterval

Definition at line 164 of file bssdb.h.

WORD wCapInfo

Definition at line 165 of file bssdb.h.

WORD wCSSPKCount

Definition at line 191 of file bssdb.h.

WORD wPKCount

Definition at line 181 of file bssdb.h.

WORD wRSNLen

Definition at line 200 of file bssdb.h.

WORD wWPALen

Definition at line 199 of file bssdb.h.