Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Enumerations | Functions
vntwifi.h File Reference
#include "ttype.h"
#include "80211mgr.h"
#include "card.h"
#include "wpa2.h"

Go to the source code of this file.

Macros

#define RATE_1M   0
 
#define RATE_2M   1
 
#define RATE_5M   2
 
#define RATE_11M   3
 
#define RATE_6M   4
 
#define RATE_9M   5
 
#define RATE_12M   6
 
#define RATE_18M   7
 
#define RATE_24M   8
 
#define RATE_36M   9
 
#define RATE_48M   10
 
#define RATE_54M   11
 
#define RATE_AUTO   12
 
#define MAX_RATE   12
 
#define KEY_CTL_WEP   0x00
 
#define KEY_CTL_NONE   0x01
 
#define KEY_CTL_TKIP   0x02
 
#define KEY_CTL_CCMP   0x03
 
#define KEY_CTL_INVALID   0xFF
 
#define CHANNEL_MAX_24G   14
 
#define MAX_BSS_NUM   42
 
#define VNTWIFIbIsShortSlotTime(wCapInfo)   WLAN_GET_CAP_INFO_SHORTSLOTTIME(wCapInfo) \
 
#define VNTWIFIbIsProtectMode(byERP)   ((byERP & WLAN_EID_ERP_USE_PROTECTION) != 0) \
 
#define VNTWIFIbIsBarkerMode(byERP)   ((byERP & WLAN_EID_ERP_BARKER_MODE) != 0) \
 
#define VNTWIFIbIsShortPreamble(wCapInfo)   WLAN_GET_CAP_INFO_SHORTPREAMBLE(wCapInfo) \
 
#define VNTWIFIbIsEncryption(wCapInfo)   WLAN_GET_CAP_INFO_PRIVACY(wCapInfo) \
 
#define VNTWIFIbIsESS(wCapInfo)   WLAN_GET_CAP_INFO_ESS(wCapInfo) \
 

Typedefs

typedef enum
tagWMAC_AUTHENTICATION_MODE 
WMAC_AUTHENTICATION_MODE
 
typedef enum
tagWMAC_AUTHENTICATION_MODE
PWMAC_AUTHENTICATION_MODE
 
typedef enum
tagWMAC_ENCRYPTION_MODE 
WMAC_ENCRYPTION_MODE
 
typedef enum
tagWMAC_ENCRYPTION_MODE
PWMAC_ENCRYPTION_MODE
 
typedef enum tagWMAC_CONFIG_MODE WMAC_CONFIG_MODE
 
typedef enum tagWMAC_CONFIG_MODEPWMAC_CONFIG_MODE
 
typedef enum tagWMAC_POWER_MODE WMAC_POWER_MODE
 
typedef enum tagWMAC_POWER_MODEPWMAC_POWER_MODE
 

Enumerations

enum  tagWMAC_AUTHENTICATION_MODE {
  WMAC_AUTH_OPEN, WMAC_AUTH_SHAREKEY, WMAC_AUTH_AUTO, WMAC_AUTH_WPA,
  WMAC_AUTH_WPAPSK, WMAC_AUTH_WPANONE, WMAC_AUTH_WPA2, WMAC_AUTH_WPA2PSK,
  WMAC_AUTH_MAX, WMAC_AUTH_OPEN, WMAC_AUTH_SHAREKEY, WMAC_AUTH_AUTO,
  WMAC_AUTH_WPA, WMAC_AUTH_WPAPSK, WMAC_AUTH_WPANONE, WMAC_AUTH_WPA2,
  WMAC_AUTH_WPA2PSK, WMAC_AUTH_MAX
}
 
enum  tagWMAC_ENCRYPTION_MODE {
  WMAC_ENCRYPTION_WEPEnabled, WMAC_ENCRYPTION_WEPDisabled, WMAC_ENCRYPTION_WEPKeyAbsent, WMAC_ENCRYPTION_WEPNotSupported,
  WMAC_ENCRYPTION_TKIPEnabled, WMAC_ENCRYPTION_TKIPKeyAbsent, WMAC_ENCRYPTION_AESEnabled, WMAC_ENCRYPTION_AESKeyAbsent
}
 
enum  tagWMAC_CONFIG_MODE {
  WMAC_CONFIG_ESS_STA = 0, WMAC_CONFIG_IBSS_STA, WMAC_CONFIG_AUTO, WMAC_CONFIG_AP,
  WMAC_CONFIG_ESS_STA, WMAC_CONFIG_IBSS_STA, WMAC_CONFIG_AUTO, WMAC_CONFIG_AP
}
 
enum  tagWMAC_POWER_MODE {
  WMAC_POWER_CAM, WMAC_POWER_FAST, WMAC_POWER_MAX, WMAC_POWER_CAM,
  WMAC_POWER_FAST, WMAC_POWER_MAX
}
 

Functions

void VNTWIFIvSetIBSSParameter (void *pMgmtHandle, unsigned short wBeaconPeriod, unsigned short wATIMWindow, unsigned int uChannel)
 
void VNTWIFIvSetOPMode (void *pMgmtHandle, WMAC_CONFIG_MODE eOPMode)
 
PWLAN_IE_SSID VNTWIFIpGetCurrentSSID (void *pMgmtHandle)
 
unsigned int VNTWIFIpGetCurrentChannel (void *pMgmtHandle)
 
unsigned short VNTWIFIwGetAssocID (void *pMgmtHandle)
 
unsigned char VNTWIFIbyGetMaxSupportRate (PWLAN_IE_SUPP_RATES pSupportRateIEs, PWLAN_IE_SUPP_RATES pExtSupportRateIEs)
 
unsigned char VNTWIFIbyGetACKTxRate (unsigned char byRxDataRate, PWLAN_IE_SUPP_RATES pSupportRateIEs, PWLAN_IE_SUPP_RATES pExtSupportRateIEs)
 
void VNTWIFIvSetAuthenticationMode (void *pMgmtHandle, WMAC_AUTHENTICATION_MODE eAuthMode)
 
void VNTWIFIvSetEncryptionMode (void *pMgmtHandle, WMAC_ENCRYPTION_MODE eEncryptionMode)
 
bool VNTWIFIbConfigPhyMode (void *pMgmtHandle, CARD_PHY_TYPE ePhyType)
 
void VNTWIFIbGetConfigPhyMode (void *pMgmtHandle, void *pePhyType)
 
void VNTWIFIvQueryBSSList (void *pMgmtHandle, unsigned int *puBSSCount, void **pvFirstBSS)
 
void VNTWIFIvGetNextBSS (void *pMgmtHandle, void *pvCurrentBSS, void **pvNextBSS)
 
void VNTWIFIvUpdateNodeTxCounter (void *pMgmtHandle, unsigned char *pbyDestAddress, bool bTxOk, unsigned short wRate, unsigned char *pbyTxFailCount)
 
void VNTWIFIvGetTxRate (void *pMgmtHandle, unsigned char *pbyDestAddress, unsigned short *pwTxDataRate, unsigned char *pbyACKRate, unsigned char *pbyCCKBasicRate, unsigned char *pbyOFDMBasicRate)
 
unsigned char VNTWIFIbyGetKeyCypher (void *pMgmtHandle, bool bGroupKey)
 
bool VNTWIFIbSetPMKIDCache (void *pMgmtObject, unsigned long ulCount, void *pPMKIDInfo)
 
bool VNTWIFIbCommandRunning (void *pMgmtObject)
 
unsigned short VNTWIFIwGetMaxSupportRate (void *pMgmtObject)
 
void VNTWIFIvSet11h (void *pMgmtObject, bool b11hEnable)
 
bool VNTWIFIbMeasureReport (void *pMgmtObject, bool bEndOfReport, void *pvMeasureEID, unsigned char byReportMode, unsigned char byBasicMap, unsigned char byCCAFraction, unsigned char *pbyRPIs)
 
bool VNTWIFIbChannelSwitch (void *pMgmtObject, unsigned char byNewChannel)
 

Macro Definition Documentation

#define CHANNEL_MAX_24G   14

Definition at line 61 of file vntwifi.h.

#define KEY_CTL_CCMP   0x03

Definition at line 58 of file vntwifi.h.

#define KEY_CTL_INVALID   0xFF

Definition at line 59 of file vntwifi.h.

#define KEY_CTL_NONE   0x01

Definition at line 56 of file vntwifi.h.

#define KEY_CTL_TKIP   0x02

Definition at line 57 of file vntwifi.h.

#define KEY_CTL_WEP   0x00

Definition at line 55 of file vntwifi.h.

#define MAX_BSS_NUM   42

Definition at line 63 of file vntwifi.h.

#define MAX_RATE   12

Definition at line 52 of file vntwifi.h.

#define RATE_11M   3

Definition at line 42 of file vntwifi.h.

#define RATE_12M   6

Definition at line 45 of file vntwifi.h.

#define RATE_18M   7

Definition at line 46 of file vntwifi.h.

#define RATE_1M   0

Definition at line 39 of file vntwifi.h.

#define RATE_24M   8

Definition at line 47 of file vntwifi.h.

#define RATE_2M   1

Definition at line 40 of file vntwifi.h.

#define RATE_36M   9

Definition at line 48 of file vntwifi.h.

#define RATE_48M   10

Definition at line 49 of file vntwifi.h.

#define RATE_54M   11

Definition at line 50 of file vntwifi.h.

#define RATE_5M   2

Definition at line 41 of file vntwifi.h.

#define RATE_6M   4

Definition at line 43 of file vntwifi.h.

#define RATE_9M   5

Definition at line 44 of file vntwifi.h.

#define RATE_AUTO   12

Definition at line 51 of file vntwifi.h.

#define VNTWIFIbIsBarkerMode (   byERP)    ((byERP & WLAN_EID_ERP_BARKER_MODE) != 0) \

Definition at line 120 of file vntwifi.h.

#define VNTWIFIbIsEncryption (   wCapInfo)    WLAN_GET_CAP_INFO_PRIVACY(wCapInfo) \

Definition at line 126 of file vntwifi.h.

#define VNTWIFIbIsESS (   wCapInfo)    WLAN_GET_CAP_INFO_ESS(wCapInfo) \

Definition at line 129 of file vntwifi.h.

#define VNTWIFIbIsProtectMode (   byERP)    ((byERP & WLAN_EID_ERP_USE_PROTECTION) != 0) \

Definition at line 117 of file vntwifi.h.

#define VNTWIFIbIsShortPreamble (   wCapInfo)    WLAN_GET_CAP_INFO_SHORTPREAMBLE(wCapInfo) \

Definition at line 123 of file vntwifi.h.

#define VNTWIFIbIsShortSlotTime (   wCapInfo)    WLAN_GET_CAP_INFO_SHORTSLOTTIME(wCapInfo) \

Definition at line 114 of file vntwifi.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
WMAC_AUTH_OPEN 
WMAC_AUTH_SHAREKEY 
WMAC_AUTH_AUTO 
WMAC_AUTH_WPA 
WMAC_AUTH_WPAPSK 
WMAC_AUTH_WPANONE 
WMAC_AUTH_WPA2 
WMAC_AUTH_WPA2PSK 
WMAC_AUTH_MAX 
WMAC_AUTH_OPEN 
WMAC_AUTH_SHAREKEY 
WMAC_AUTH_AUTO 
WMAC_AUTH_WPA 
WMAC_AUTH_WPAPSK 
WMAC_AUTH_WPANONE 
WMAC_AUTH_WPA2 
WMAC_AUTH_WPA2PSK 
WMAC_AUTH_MAX 

Definition at line 66 of file vntwifi.h.

Enumerator:
WMAC_CONFIG_ESS_STA 
WMAC_CONFIG_IBSS_STA 
WMAC_CONFIG_AUTO 
WMAC_CONFIG_AP 
WMAC_CONFIG_ESS_STA 
WMAC_CONFIG_IBSS_STA 
WMAC_CONFIG_AUTO 
WMAC_CONFIG_AP 

Definition at line 95 of file vntwifi.h.

Enumerator:
WMAC_ENCRYPTION_WEPEnabled 
WMAC_ENCRYPTION_WEPDisabled 
WMAC_ENCRYPTION_WEPKeyAbsent 
WMAC_ENCRYPTION_WEPNotSupported 
WMAC_ENCRYPTION_TKIPEnabled 
WMAC_ENCRYPTION_TKIPKeyAbsent 
WMAC_ENCRYPTION_AESEnabled 
WMAC_ENCRYPTION_AESKeyAbsent 

Definition at line 80 of file vntwifi.h.

Enumerator:
WMAC_POWER_CAM 
WMAC_POWER_FAST 
WMAC_POWER_MAX 
WMAC_POWER_CAM 
WMAC_POWER_FAST 
WMAC_POWER_MAX 

Definition at line 106 of file vntwifi.h.

Function Documentation

bool VNTWIFIbChannelSwitch ( void pMgmtObject,
unsigned char  byNewChannel 
)

Definition at line 769 of file vntwifi.c.

bool VNTWIFIbCommandRunning ( void pMgmtObject)
bool VNTWIFIbConfigPhyMode ( void pMgmtHandle,
CARD_PHY_TYPE  ePhyType 
)

Definition at line 360 of file vntwifi.c.

void VNTWIFIbGetConfigPhyMode ( void pMgmtHandle,
void pePhyType 
)

Definition at line 381 of file vntwifi.c.

bool VNTWIFIbMeasureReport ( void pMgmtObject,
bool  bEndOfReport,
void pvMeasureEID,
unsigned char  byReportMode,
unsigned char  byBasicMap,
unsigned char  byCCAFraction,
unsigned char pbyRPIs 
)

Definition at line 709 of file vntwifi.c.

bool VNTWIFIbSetPMKIDCache ( void pMgmtObject,
unsigned long  ulCount,
void pPMKIDInfo 
)

Definition at line 658 of file vntwifi.c.

unsigned char VNTWIFIbyGetACKTxRate ( unsigned char  byRxDataRate,
PWLAN_IE_SUPP_RATES  pSupportRateIEs,
PWLAN_IE_SUPP_RATES  pExtSupportRateIEs 
)

Definition at line 250 of file vntwifi.c.

unsigned char VNTWIFIbyGetKeyCypher ( void pMgmtHandle,
bool  bGroupKey 
)

Definition at line 597 of file vntwifi.c.

unsigned char VNTWIFIbyGetMaxSupportRate ( PWLAN_IE_SUPP_RATES  pSupportRateIEs,
PWLAN_IE_SUPP_RATES  pExtSupportRateIEs 
)

Definition at line 204 of file vntwifi.c.

unsigned int VNTWIFIpGetCurrentChannel ( void pMgmtHandle)

Definition at line 152 of file vntwifi.c.

PWLAN_IE_SSID VNTWIFIpGetCurrentSSID ( void pMgmtHandle)

Definition at line 129 of file vntwifi.c.

void VNTWIFIvGetNextBSS ( void pMgmtHandle,
void pvCurrentBSS,
void **  pvNextBSS 
)

Definition at line 452 of file vntwifi.c.

void VNTWIFIvGetTxRate ( void pMgmtHandle,
unsigned char pbyDestAddress,
unsigned short pwTxDataRate,
unsigned char pbyACKRate,
unsigned char pbyCCKBasicRate,
unsigned char pbyOFDMBasicRate 
)

Definition at line 527 of file vntwifi.c.

void VNTWIFIvQueryBSSList ( void pMgmtHandle,
unsigned int puBSSCount,
void **  pvFirstBSS 
)

Definition at line 426 of file vntwifi.c.

void VNTWIFIvSet11h ( void pMgmtObject,
bool  b11hEnable 
)

Definition at line 698 of file vntwifi.c.

void VNTWIFIvSetAuthenticationMode ( void pMgmtHandle,
WMAC_AUTHENTICATION_MODE  eAuthMode 
)

Definition at line 308 of file vntwifi.c.

void VNTWIFIvSetEncryptionMode ( void pMgmtHandle,
WMAC_ENCRYPTION_MODE  eEncryptionMode 
)

Definition at line 340 of file vntwifi.c.

void VNTWIFIvSetIBSSParameter ( void pMgmtHandle,
unsigned short  wBeaconPeriod,
unsigned short  wATIMWindow,
unsigned int  uChannel 
)

Definition at line 100 of file vntwifi.c.

void VNTWIFIvSetOPMode ( void pMgmtHandle,
WMAC_CONFIG_MODE  eOPMode 
)

Definition at line 71 of file vntwifi.c.

void VNTWIFIvUpdateNodeTxCounter ( void pMgmtHandle,
unsigned char pbyDestAddress,
bool  bTxOk,
unsigned short  wRate,
unsigned char pbyTxFailCount 
)

Definition at line 492 of file vntwifi.c.

unsigned short VNTWIFIwGetAssocID ( void pMgmtHandle)

Definition at line 178 of file vntwifi.c.

unsigned short VNTWIFIwGetMaxSupportRate ( void pMgmtObject)

Definition at line 677 of file vntwifi.c.