Commit d9d644ed authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

staging:vt6655:vntwifi: Whitespace cleanups

Neatening only.
git diff -w shows no differences.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 031d3996
...@@ -66,16 +66,16 @@ ...@@ -66,16 +66,16 @@
* *
* Return Value: none * Return Value: none
* *
-*/ -*/
void void
VNTWIFIvSetOPMode ( VNTWIFIvSetOPMode(
void *pMgmtHandle, void *pMgmtHandle,
WMAC_CONFIG_MODE eOPMode WMAC_CONFIG_MODE eOPMode
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
pMgmt->eConfigMode = eOPMode; pMgmt->eConfigMode = eOPMode;
} }
...@@ -95,20 +95,20 @@ VNTWIFIvSetOPMode ( ...@@ -95,20 +95,20 @@ VNTWIFIvSetOPMode (
* *
* Return Value: none * Return Value: none
* *
-*/ -*/
void void
VNTWIFIvSetIBSSParameter ( VNTWIFIvSetIBSSParameter(
void *pMgmtHandle, void *pMgmtHandle,
unsigned short wBeaconPeriod, unsigned short wBeaconPeriod,
unsigned short wATIMWindow, unsigned short wATIMWindow,
unsigned int uChannel unsigned int uChannel
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
pMgmt->wIBSSBeaconPeriod = wBeaconPeriod; pMgmt->wIBSSBeaconPeriod = wBeaconPeriod;
pMgmt->wIBSSATIMWindow = wATIMWindow; pMgmt->wIBSSATIMWindow = wATIMWindow;
pMgmt->uIBSSChannel = uChannel; pMgmt->uIBSSChannel = uChannel;
} }
/*+ /*+
...@@ -124,14 +124,14 @@ VNTWIFIvSetIBSSParameter ( ...@@ -124,14 +124,14 @@ VNTWIFIvSetIBSSParameter (
* *
* Return Value: current SSID pointer. * Return Value: current SSID pointer.
* *
-*/ -*/
PWLAN_IE_SSID PWLAN_IE_SSID
VNTWIFIpGetCurrentSSID ( VNTWIFIpGetCurrentSSID(
void *pMgmtHandle void *pMgmtHandle
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
return((PWLAN_IE_SSID) pMgmt->abyCurrSSID); return((PWLAN_IE_SSID) pMgmt->abyCurrSSID);
} }
/*+ /*+
...@@ -147,17 +147,17 @@ VNTWIFIpGetCurrentSSID ( ...@@ -147,17 +147,17 @@ VNTWIFIpGetCurrentSSID (
* *
* Return Value: current Channel. * Return Value: current Channel.
* *
-*/ -*/
unsigned int unsigned int
VNTWIFIpGetCurrentChannel ( VNTWIFIpGetCurrentChannel(
void *pMgmtHandle void *pMgmtHandle
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
if (pMgmtHandle != NULL) { if (pMgmtHandle != NULL) {
return (pMgmt->uCurrChannel); return (pMgmt->uCurrChannel);
} }
return 0; return 0;
} }
/*+ /*+
...@@ -173,14 +173,14 @@ VNTWIFIpGetCurrentChannel ( ...@@ -173,14 +173,14 @@ VNTWIFIpGetCurrentChannel (
* *
* Return Value: current Assoc ID * Return Value: current Assoc ID
* *
-*/ -*/
unsigned short unsigned short
VNTWIFIwGetAssocID ( VNTWIFIwGetAssocID(
void *pMgmtHandle void *pMgmtHandle
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
return(pMgmt->wCurrAID); return(pMgmt->wCurrAID);
} }
...@@ -199,35 +199,35 @@ VNTWIFIwGetAssocID ( ...@@ -199,35 +199,35 @@ VNTWIFIwGetAssocID (
* *
* Return Value: max support rate * Return Value: max support rate
* *
-*/ -*/
unsigned char unsigned char
VNTWIFIbyGetMaxSupportRate ( VNTWIFIbyGetMaxSupportRate(
PWLAN_IE_SUPP_RATES pSupportRateIEs, PWLAN_IE_SUPP_RATES pSupportRateIEs,
PWLAN_IE_SUPP_RATES pExtSupportRateIEs PWLAN_IE_SUPP_RATES pExtSupportRateIEs
) )
{ {
unsigned char byMaxSupportRate = RATE_1M; unsigned char byMaxSupportRate = RATE_1M;
unsigned char bySupportRate = RATE_1M; unsigned char bySupportRate = RATE_1M;
unsigned int ii = 0; unsigned int ii = 0;
if (pSupportRateIEs) { if (pSupportRateIEs) {
for (ii = 0; ii < pSupportRateIEs->len; ii++) { for (ii = 0; ii < pSupportRateIEs->len; ii++) {
bySupportRate = DATARATEbyGetRateIdx(pSupportRateIEs->abyRates[ii]); bySupportRate = DATARATEbyGetRateIdx(pSupportRateIEs->abyRates[ii]);
if (bySupportRate > byMaxSupportRate) { if (bySupportRate > byMaxSupportRate) {
byMaxSupportRate = bySupportRate; byMaxSupportRate = bySupportRate;
} }
} }
} }
if (pExtSupportRateIEs) { if (pExtSupportRateIEs) {
for (ii = 0; ii < pExtSupportRateIEs->len; ii++) { for (ii = 0; ii < pExtSupportRateIEs->len; ii++) {
bySupportRate = DATARATEbyGetRateIdx(pExtSupportRateIEs->abyRates[ii]); bySupportRate = DATARATEbyGetRateIdx(pExtSupportRateIEs->abyRates[ii]);
if (bySupportRate > byMaxSupportRate) { if (bySupportRate > byMaxSupportRate) {
byMaxSupportRate = bySupportRate; byMaxSupportRate = bySupportRate;
} }
} }
} }
return byMaxSupportRate; return byMaxSupportRate;
} }
/*+ /*+
...@@ -245,48 +245,48 @@ VNTWIFIbyGetMaxSupportRate ( ...@@ -245,48 +245,48 @@ VNTWIFIbyGetMaxSupportRate (
* *
* Return Value: max support rate * Return Value: max support rate
* *
-*/ -*/
unsigned char unsigned char
VNTWIFIbyGetACKTxRate ( VNTWIFIbyGetACKTxRate(
unsigned char byRxDataRate, unsigned char byRxDataRate,
PWLAN_IE_SUPP_RATES pSupportRateIEs, PWLAN_IE_SUPP_RATES pSupportRateIEs,
PWLAN_IE_SUPP_RATES pExtSupportRateIEs PWLAN_IE_SUPP_RATES pExtSupportRateIEs
) )
{ {
unsigned char byMaxAckRate; unsigned char byMaxAckRate;
unsigned char byBasicRate; unsigned char byBasicRate;
unsigned int ii; unsigned int ii;
if (byRxDataRate <= RATE_11M) { if (byRxDataRate <= RATE_11M) {
byMaxAckRate = RATE_1M; byMaxAckRate = RATE_1M;
} else { } else {
// 24M is mandatory for 802.11a and 802.11g // 24M is mandatory for 802.11a and 802.11g
byMaxAckRate = RATE_24M; byMaxAckRate = RATE_24M;
} }
if (pSupportRateIEs) { if (pSupportRateIEs) {
for (ii = 0; ii < pSupportRateIEs->len; ii++) { for (ii = 0; ii < pSupportRateIEs->len; ii++) {
if (pSupportRateIEs->abyRates[ii] & 0x80) { if (pSupportRateIEs->abyRates[ii] & 0x80) {
byBasicRate = DATARATEbyGetRateIdx(pSupportRateIEs->abyRates[ii]); byBasicRate = DATARATEbyGetRateIdx(pSupportRateIEs->abyRates[ii]);
if ((byBasicRate <= byRxDataRate) && if ((byBasicRate <= byRxDataRate) &&
(byBasicRate > byMaxAckRate)) { (byBasicRate > byMaxAckRate)) {
byMaxAckRate = byBasicRate; byMaxAckRate = byBasicRate;
} }
} }
} }
} }
if (pExtSupportRateIEs) { if (pExtSupportRateIEs) {
for (ii = 0; ii < pExtSupportRateIEs->len; ii++) { for (ii = 0; ii < pExtSupportRateIEs->len; ii++) {
if (pExtSupportRateIEs->abyRates[ii] & 0x80) { if (pExtSupportRateIEs->abyRates[ii] & 0x80) {
byBasicRate = DATARATEbyGetRateIdx(pExtSupportRateIEs->abyRates[ii]); byBasicRate = DATARATEbyGetRateIdx(pExtSupportRateIEs->abyRates[ii]);
if ((byBasicRate <= byRxDataRate) && if ((byBasicRate <= byRxDataRate) &&
(byBasicRate > byMaxAckRate)) { (byBasicRate > byMaxAckRate)) {
byMaxAckRate = byBasicRate; byMaxAckRate = byBasicRate;
} }
} }
} }
} }
return byMaxAckRate; return byMaxAckRate;
} }
/*+ /*+
...@@ -303,22 +303,22 @@ VNTWIFIbyGetACKTxRate ( ...@@ -303,22 +303,22 @@ VNTWIFIbyGetACKTxRate (
* *
* Return Value: none * Return Value: none
* *
-*/ -*/
void void
VNTWIFIvSetAuthenticationMode ( VNTWIFIvSetAuthenticationMode(
void *pMgmtHandle, void *pMgmtHandle,
WMAC_AUTHENTICATION_MODE eAuthMode WMAC_AUTHENTICATION_MODE eAuthMode
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
pMgmt->eAuthenMode = eAuthMode; pMgmt->eAuthenMode = eAuthMode;
if ((eAuthMode == WMAC_AUTH_SHAREKEY) || if ((eAuthMode == WMAC_AUTH_SHAREKEY) ||
(eAuthMode == WMAC_AUTH_AUTO)) { (eAuthMode == WMAC_AUTH_AUTO)) {
pMgmt->bShareKeyAlgorithm = true; pMgmt->bShareKeyAlgorithm = true;
} else { } else {
pMgmt->bShareKeyAlgorithm = false; pMgmt->bShareKeyAlgorithm = false;
} }
} }
/*+ /*+
...@@ -335,59 +335,59 @@ VNTWIFIvSetAuthenticationMode ( ...@@ -335,59 +335,59 @@ VNTWIFIvSetAuthenticationMode (
* *
* Return Value: none * Return Value: none
* *
-*/ -*/
void void
VNTWIFIvSetEncryptionMode ( VNTWIFIvSetEncryptionMode(
void *pMgmtHandle, void *pMgmtHandle,
WMAC_ENCRYPTION_MODE eEncryptionMode WMAC_ENCRYPTION_MODE eEncryptionMode
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
pMgmt->eEncryptionMode = eEncryptionMode; pMgmt->eEncryptionMode = eEncryptionMode;
if ((eEncryptionMode == WMAC_ENCRYPTION_WEPEnabled) || if ((eEncryptionMode == WMAC_ENCRYPTION_WEPEnabled) ||
(eEncryptionMode == WMAC_ENCRYPTION_TKIPEnabled) || (eEncryptionMode == WMAC_ENCRYPTION_TKIPEnabled) ||
(eEncryptionMode == WMAC_ENCRYPTION_AESEnabled) ) { (eEncryptionMode == WMAC_ENCRYPTION_AESEnabled)) {
pMgmt->bPrivacyInvoked = true; pMgmt->bPrivacyInvoked = true;
} else { } else {
pMgmt->bPrivacyInvoked = false; pMgmt->bPrivacyInvoked = false;
} }
} }
bool bool
VNTWIFIbConfigPhyMode ( VNTWIFIbConfigPhyMode(
void *pMgmtHandle, void *pMgmtHandle,
CARD_PHY_TYPE ePhyType CARD_PHY_TYPE ePhyType
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
if ((ePhyType != PHY_TYPE_AUTO) && if ((ePhyType != PHY_TYPE_AUTO) &&
(ePhyType != pMgmt->eCurrentPHYMode)) { (ePhyType != pMgmt->eCurrentPHYMode)) {
if (CARDbSetPhyParameter(pMgmt->pAdapter, ePhyType, 0, 0, NULL, NULL)==true) { if (CARDbSetPhyParameter(pMgmt->pAdapter, ePhyType, 0, 0, NULL, NULL) == true) {
pMgmt->eCurrentPHYMode = ePhyType; pMgmt->eCurrentPHYMode = ePhyType;
} else { } else {
return(false); return(false);
} }
} }
pMgmt->eConfigPHYMode = ePhyType; pMgmt->eConfigPHYMode = ePhyType;
return(true); return(true);
} }
void void
VNTWIFIbGetConfigPhyMode ( VNTWIFIbGetConfigPhyMode(
void *pMgmtHandle, void *pMgmtHandle,
void *pePhyType void *pePhyType
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
if ((pMgmt != NULL) && (pePhyType != NULL)) { if ((pMgmt != NULL) && (pePhyType != NULL)) {
*(PCARD_PHY_TYPE)pePhyType = pMgmt->eConfigPHYMode; *(PCARD_PHY_TYPE)pePhyType = pMgmt->eConfigPHYMode;
} }
} }
/*+ /*+
...@@ -403,7 +403,7 @@ VNTWIFIbGetConfigPhyMode ( ...@@ -403,7 +403,7 @@ VNTWIFIbGetConfigPhyMode (
* *
* Return Value: None. * Return Value: None.
* *
-*/ -*/
/*+ /*+
...@@ -420,56 +420,56 @@ VNTWIFIbGetConfigPhyMode ( ...@@ -420,56 +420,56 @@ VNTWIFIbGetConfigPhyMode (
* *
* Return Value: None. * Return Value: None.
* *
-*/ -*/
void void
VNTWIFIvQueryBSSList(void *pMgmtHandle, unsigned int *puBSSCount, void **pvFirstBSS) VNTWIFIvQueryBSSList(void *pMgmtHandle, unsigned int *puBSSCount, void **pvFirstBSS)
{ {
unsigned int ii = 0; unsigned int ii = 0;
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
PKnownBSS pBSS = NULL; PKnownBSS pBSS = NULL;
unsigned int uCount = 0; unsigned int uCount = 0;
*pvFirstBSS = NULL; *pvFirstBSS = NULL;
for (ii = 0; ii < MAX_BSS_NUM; ii++) { for (ii = 0; ii < MAX_BSS_NUM; ii++) {
pBSS = &(pMgmt->sBSSList[ii]); pBSS = &(pMgmt->sBSSList[ii]);
if (!pBSS->bActive) { if (!pBSS->bActive) {
continue; continue;
} }
if (*pvFirstBSS == NULL) { if (*pvFirstBSS == NULL) {
*pvFirstBSS = &(pMgmt->sBSSList[ii]); *pvFirstBSS = &(pMgmt->sBSSList[ii]);
} }
uCount++; uCount++;
} }
*puBSSCount = uCount; *puBSSCount = uCount;
} }
void void
VNTWIFIvGetNextBSS ( VNTWIFIvGetNextBSS(
void *pMgmtHandle, void *pMgmtHandle,
void *pvCurrentBSS, void *pvCurrentBSS,
void **pvNextBSS void **pvNextBSS
) )
{ {
PKnownBSS pBSS = (PKnownBSS) pvCurrentBSS; PKnownBSS pBSS = (PKnownBSS) pvCurrentBSS;
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
*pvNextBSS = NULL; *pvNextBSS = NULL;
while (*pvNextBSS == NULL) { while (*pvNextBSS == NULL) {
pBSS++; pBSS++;
if (pBSS > &(pMgmt->sBSSList[MAX_BSS_NUM])) { if (pBSS > &(pMgmt->sBSSList[MAX_BSS_NUM])) {
return; return;
} }
if (pBSS->bActive == true) { if (pBSS->bActive == true) {
*pvNextBSS = pBSS; *pvNextBSS = pBSS;
return; return;
} }
} }
} }
...@@ -487,319 +487,319 @@ VNTWIFIvGetNextBSS ( ...@@ -487,319 +487,319 @@ VNTWIFIvGetNextBSS (
* *
* Return Value: none * Return Value: none
* *
-*/ -*/
void void
VNTWIFIvUpdateNodeTxCounter( VNTWIFIvUpdateNodeTxCounter(
void *pMgmtHandle, void *pMgmtHandle,
unsigned char *pbyDestAddress, unsigned char *pbyDestAddress,
bool bTxOk, bool bTxOk,
unsigned short wRate, unsigned short wRate,
unsigned char *pbyTxFailCount unsigned char *pbyTxFailCount
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
unsigned int uNodeIndex = 0; unsigned int uNodeIndex = 0;
unsigned int ii; unsigned int ii;
if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) || if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) ||
(pMgmt->eCurrMode == WMAC_MODE_ESS_AP)) { (pMgmt->eCurrMode == WMAC_MODE_ESS_AP)) {
if (BSSDBbIsSTAInNodeDB(pMgmt, pbyDestAddress, &uNodeIndex) == false) { if (BSSDBbIsSTAInNodeDB(pMgmt, pbyDestAddress, &uNodeIndex) == false) {
return; return;
} }
} }
pMgmt->sNodeDBTable[uNodeIndex].uTxAttempts++; pMgmt->sNodeDBTable[uNodeIndex].uTxAttempts++;
if (bTxOk == true) { if (bTxOk == true) {
// transmit success, TxAttempts at least plus one // transmit success, TxAttempts at least plus one
pMgmt->sNodeDBTable[uNodeIndex].uTxOk[MAX_RATE]++; pMgmt->sNodeDBTable[uNodeIndex].uTxOk[MAX_RATE]++;
pMgmt->sNodeDBTable[uNodeIndex].uTxOk[wRate]++; pMgmt->sNodeDBTable[uNodeIndex].uTxOk[wRate]++;
} else { } else {
pMgmt->sNodeDBTable[uNodeIndex].uTxFailures++; pMgmt->sNodeDBTable[uNodeIndex].uTxFailures++;
} }
pMgmt->sNodeDBTable[uNodeIndex].uTxRetry += pbyTxFailCount[MAX_RATE]; pMgmt->sNodeDBTable[uNodeIndex].uTxRetry += pbyTxFailCount[MAX_RATE];
for(ii=0;ii<MAX_RATE;ii++) { for (ii = 0; ii < MAX_RATE; ii++) {
pMgmt->sNodeDBTable[uNodeIndex].uTxFail[ii] += pbyTxFailCount[ii]; pMgmt->sNodeDBTable[uNodeIndex].uTxFail[ii] += pbyTxFailCount[ii];
} }
return; return;
} }
void void
VNTWIFIvGetTxRate( VNTWIFIvGetTxRate(
void *pMgmtHandle, void *pMgmtHandle,
unsigned char *pbyDestAddress, unsigned char *pbyDestAddress,
unsigned short *pwTxDataRate, unsigned short *pwTxDataRate,
unsigned char *pbyACKRate, unsigned char *pbyACKRate,
unsigned char *pbyCCKBasicRate, unsigned char *pbyCCKBasicRate,
unsigned char *pbyOFDMBasicRate unsigned char *pbyOFDMBasicRate
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
unsigned int uNodeIndex = 0; unsigned int uNodeIndex = 0;
unsigned short wTxDataRate = RATE_1M; unsigned short wTxDataRate = RATE_1M;
unsigned char byACKRate = RATE_1M; unsigned char byACKRate = RATE_1M;
unsigned char byCCKBasicRate = RATE_1M; unsigned char byCCKBasicRate = RATE_1M;
unsigned char byOFDMBasicRate = RATE_24M; unsigned char byOFDMBasicRate = RATE_24M;
PWLAN_IE_SUPP_RATES pSupportRateIEs = NULL; PWLAN_IE_SUPP_RATES pSupportRateIEs = NULL;
PWLAN_IE_SUPP_RATES pExtSupportRateIEs = NULL; PWLAN_IE_SUPP_RATES pExtSupportRateIEs = NULL;
if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) || if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) ||
(pMgmt->eCurrMode == WMAC_MODE_ESS_AP)) { (pMgmt->eCurrMode == WMAC_MODE_ESS_AP)) {
// Adhoc Tx rate decided from node DB // Adhoc Tx rate decided from node DB
if(BSSDBbIsSTAInNodeDB(pMgmt, pbyDestAddress, &uNodeIndex)) { if (BSSDBbIsSTAInNodeDB(pMgmt, pbyDestAddress, &uNodeIndex)) {
wTxDataRate = (pMgmt->sNodeDBTable[uNodeIndex].wTxDataRate); wTxDataRate = (pMgmt->sNodeDBTable[uNodeIndex].wTxDataRate);
pSupportRateIEs = (PWLAN_IE_SUPP_RATES) (pMgmt->sNodeDBTable[uNodeIndex].abyCurrSuppRates); pSupportRateIEs = (PWLAN_IE_SUPP_RATES) (pMgmt->sNodeDBTable[uNodeIndex].abyCurrSuppRates);
pExtSupportRateIEs = (PWLAN_IE_SUPP_RATES) (pMgmt->sNodeDBTable[uNodeIndex].abyCurrExtSuppRates); pExtSupportRateIEs = (PWLAN_IE_SUPP_RATES) (pMgmt->sNodeDBTable[uNodeIndex].abyCurrExtSuppRates);
} else { } else {
if (pMgmt->eCurrentPHYMode != PHY_TYPE_11A) { if (pMgmt->eCurrentPHYMode != PHY_TYPE_11A) {
wTxDataRate = RATE_2M; wTxDataRate = RATE_2M;
} else { } else {
wTxDataRate = RATE_24M; wTxDataRate = RATE_24M;
} }
pSupportRateIEs = (PWLAN_IE_SUPP_RATES) pMgmt->abyCurrSuppRates; pSupportRateIEs = (PWLAN_IE_SUPP_RATES) pMgmt->abyCurrSuppRates;
pExtSupportRateIEs = (PWLAN_IE_SUPP_RATES) pMgmt->abyCurrExtSuppRates; pExtSupportRateIEs = (PWLAN_IE_SUPP_RATES) pMgmt->abyCurrExtSuppRates;
} }
} else { // Infrastructure: rate decided from AP Node, index = 0 } else { // Infrastructure: rate decided from AP Node, index = 0
wTxDataRate = (pMgmt->sNodeDBTable[0].wTxDataRate); wTxDataRate = (pMgmt->sNodeDBTable[0].wTxDataRate);
#ifdef PLICE_DEBUG #ifdef PLICE_DEBUG
printk(KERN_DEBUG "GetTxRate:AP MAC is %pM,TxRate is %d\n", printk(KERN_DEBUG "GetTxRate:AP MAC is %pM,TxRate is %d\n",
pMgmt->sNodeDBTable[0].abyMACAddr, wTxDataRate); pMgmt->sNodeDBTable[0].abyMACAddr, wTxDataRate);
#endif #endif
pSupportRateIEs = (PWLAN_IE_SUPP_RATES) pMgmt->abyCurrSuppRates; pSupportRateIEs = (PWLAN_IE_SUPP_RATES) pMgmt->abyCurrSuppRates;
pExtSupportRateIEs = (PWLAN_IE_SUPP_RATES) pMgmt->abyCurrExtSuppRates; pExtSupportRateIEs = (PWLAN_IE_SUPP_RATES) pMgmt->abyCurrExtSuppRates;
} }
byACKRate = VNTWIFIbyGetACKTxRate( (unsigned char) wTxDataRate, byACKRate = VNTWIFIbyGetACKTxRate((unsigned char) wTxDataRate,
pSupportRateIEs, pSupportRateIEs,
pExtSupportRateIEs pExtSupportRateIEs
); );
if (byACKRate > (unsigned char) wTxDataRate) { if (byACKRate > (unsigned char) wTxDataRate) {
byACKRate = (unsigned char) wTxDataRate; byACKRate = (unsigned char) wTxDataRate;
} }
byCCKBasicRate = VNTWIFIbyGetACKTxRate( RATE_11M, byCCKBasicRate = VNTWIFIbyGetACKTxRate(RATE_11M,
pSupportRateIEs, pSupportRateIEs,
pExtSupportRateIEs pExtSupportRateIEs
); );
byOFDMBasicRate = VNTWIFIbyGetACKTxRate(RATE_54M, byOFDMBasicRate = VNTWIFIbyGetACKTxRate(RATE_54M,
pSupportRateIEs, pSupportRateIEs,
pExtSupportRateIEs pExtSupportRateIEs
); );
*pwTxDataRate = wTxDataRate; *pwTxDataRate = wTxDataRate;
*pbyACKRate = byACKRate; *pbyACKRate = byACKRate;
*pbyCCKBasicRate = byCCKBasicRate; *pbyCCKBasicRate = byCCKBasicRate;
*pbyOFDMBasicRate = byOFDMBasicRate; *pbyOFDMBasicRate = byOFDMBasicRate;
return; return;
} }
unsigned char unsigned char
VNTWIFIbyGetKeyCypher( VNTWIFIbyGetKeyCypher(
void *pMgmtHandle, void *pMgmtHandle,
bool bGroupKey bool bGroupKey
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle;
if (bGroupKey == true) { if (bGroupKey == true) {
return (pMgmt->byCSSGK); return (pMgmt->byCSSGK);
} else { } else {
return (pMgmt->byCSSPK); return (pMgmt->byCSSPK);
} }
} }
/* /*
bool bool
VNTWIFIbInit( VNTWIFIbInit(
void *pAdapterHandler, void *pAdapterHandler,
void **pMgmtHandler void **pMgmtHandler
) )
{ {
PSMgmtObject pMgmt = NULL; PSMgmtObject pMgmt = NULL;
unsigned int ii; unsigned int ii;
pMgmt = (PSMgmtObject)kmalloc(sizeof(SMgmtObject), (int)GFP_ATOMIC); pMgmt = (PSMgmtObject)kmalloc(sizeof(SMgmtObject), (int)GFP_ATOMIC);
if (pMgmt == NULL) { if (pMgmt == NULL) {
*pMgmtHandler = NULL; *pMgmtHandler = NULL;
return false; return false;
} }
memset(pMgmt, 0, sizeof(SMgmtObject)); memset(pMgmt, 0, sizeof(SMgmtObject));
pMgmt->pAdapter = (void *) pAdapterHandler; pMgmt->pAdapter = (void *) pAdapterHandler;
// should initial MAC address abyMACAddr // should initial MAC address abyMACAddr
for(ii=0;ii<WLAN_BSSID_LEN;ii++) { for (ii=0; ii<WLAN_BSSID_LEN; ii++) {
pMgmt->abyDesireBSSID[ii] = 0xFF; pMgmt->abyDesireBSSID[ii] = 0xFF;
} }
pMgmt->pbyPSPacketPool = &pMgmt->byPSPacketPool[0]; pMgmt->pbyPSPacketPool = &pMgmt->byPSPacketPool[0];
pMgmt->pbyMgmtPacketPool = &pMgmt->byMgmtPacketPool[0]; pMgmt->pbyMgmtPacketPool = &pMgmt->byMgmtPacketPool[0];
pMgmt->byCSSPK = KEY_CTL_NONE; pMgmt->byCSSPK = KEY_CTL_NONE;
pMgmt->byCSSGK = KEY_CTL_NONE; pMgmt->byCSSGK = KEY_CTL_NONE;
pMgmt->wIBSSBeaconPeriod = DEFAULT_IBSS_BI; pMgmt->wIBSSBeaconPeriod = DEFAULT_IBSS_BI;
pMgmt->cbFreeCmdQueue = CMD_Q_SIZE; pMgmt->cbFreeCmdQueue = CMD_Q_SIZE;
pMgmt->uCmdDequeueIdx = 0; pMgmt->uCmdDequeueIdx = 0;
pMgmt->uCmdEnqueueIdx = 0; pMgmt->uCmdEnqueueIdx = 0;
pMgmt->eCommandState = WLAN_CMD_STATE_IDLE; pMgmt->eCommandState = WLAN_CMD_STATE_IDLE;
pMgmt->bCmdStop = false; pMgmt->bCmdStop = false;
pMgmt->bCmdRunning = false; pMgmt->bCmdRunning = false;
*pMgmtHandler = pMgmt; *pMgmtHandler = pMgmt;
return true; return true;
} }
*/ */
bool bool
VNTWIFIbSetPMKIDCache ( VNTWIFIbSetPMKIDCache(
void *pMgmtObject, void *pMgmtObject,
unsigned long ulCount, unsigned long ulCount,
void *pPMKIDInfo void *pPMKIDInfo
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject;
if (ulCount > MAX_PMKID_CACHE) { if (ulCount > MAX_PMKID_CACHE) {
return (false); return (false);
} }
pMgmt->gsPMKIDCache.BSSIDInfoCount = ulCount; pMgmt->gsPMKIDCache.BSSIDInfoCount = ulCount;
memcpy(pMgmt->gsPMKIDCache.BSSIDInfo, pPMKIDInfo, (ulCount*sizeof(PMKIDInfo))); memcpy(pMgmt->gsPMKIDCache.BSSIDInfo, pPMKIDInfo, (ulCount*sizeof(PMKIDInfo)));
return (true); return (true);
} }
unsigned short unsigned short
VNTWIFIwGetMaxSupportRate( VNTWIFIwGetMaxSupportRate(
void *pMgmtObject void *pMgmtObject
) )
{ {
unsigned short wRate = RATE_54M; unsigned short wRate = RATE_54M;
PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject;
for(wRate = RATE_54M; wRate > RATE_1M; wRate--) { for (wRate = RATE_54M; wRate > RATE_1M; wRate--) {
if (pMgmt->sNodeDBTable[0].wSuppRate & (1<<wRate)) { if (pMgmt->sNodeDBTable[0].wSuppRate & (1<<wRate)) {
return (wRate); return (wRate);
} }
} }
if (pMgmt->eCurrentPHYMode == PHY_TYPE_11A) { if (pMgmt->eCurrentPHYMode == PHY_TYPE_11A) {
return (RATE_6M); return (RATE_6M);
} else { } else {
return (RATE_1M); return (RATE_1M);
} }
} }
void void
VNTWIFIvSet11h ( VNTWIFIvSet11h(
void *pMgmtObject, void *pMgmtObject,
bool b11hEnable bool b11hEnable
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject;
pMgmt->b11hEnable = b11hEnable; pMgmt->b11hEnable = b11hEnable;
} }
bool bool
VNTWIFIbMeasureReport( VNTWIFIbMeasureReport(
void *pMgmtObject, void *pMgmtObject,
bool bEndOfReport, bool bEndOfReport,
void *pvMeasureEID, void *pvMeasureEID,
unsigned char byReportMode, unsigned char byReportMode,
unsigned char byBasicMap, unsigned char byBasicMap,
unsigned char byCCAFraction, unsigned char byCCAFraction,
unsigned char *pbyRPIs unsigned char *pbyRPIs
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject;
unsigned char *pbyCurrentEID = (unsigned char *) (pMgmt->pCurrMeasureEIDRep); unsigned char *pbyCurrentEID = (unsigned char *)(pMgmt->pCurrMeasureEIDRep);
//spin_lock_irq(&pDevice->lock); //spin_lock_irq(&pDevice->lock);
if ((pvMeasureEID != NULL) && if ((pvMeasureEID != NULL) &&
(pMgmt->uLengthOfRepEIDs < (WLAN_A3FR_MAXLEN - sizeof(MEASEURE_REP) - sizeof(WLAN_80211HDR_A3) - 3)) (pMgmt->uLengthOfRepEIDs < (WLAN_A3FR_MAXLEN - sizeof(MEASEURE_REP) - sizeof(WLAN_80211HDR_A3) - 3))
) { ) {
pMgmt->pCurrMeasureEIDRep->byElementID = WLAN_EID_MEASURE_REP; pMgmt->pCurrMeasureEIDRep->byElementID = WLAN_EID_MEASURE_REP;
pMgmt->pCurrMeasureEIDRep->len = 3; pMgmt->pCurrMeasureEIDRep->len = 3;
pMgmt->pCurrMeasureEIDRep->byToken = ((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->byToken; pMgmt->pCurrMeasureEIDRep->byToken = ((PWLAN_IE_MEASURE_REQ)pvMeasureEID)->byToken;
pMgmt->pCurrMeasureEIDRep->byMode = byReportMode; pMgmt->pCurrMeasureEIDRep->byMode = byReportMode;
pMgmt->pCurrMeasureEIDRep->byType = ((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->byType; pMgmt->pCurrMeasureEIDRep->byType = ((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->byType;
switch (pMgmt->pCurrMeasureEIDRep->byType) { switch (pMgmt->pCurrMeasureEIDRep->byType) {
case MEASURE_TYPE_BASIC : case MEASURE_TYPE_BASIC:
pMgmt->pCurrMeasureEIDRep->len += sizeof(MEASEURE_REP_BASIC); pMgmt->pCurrMeasureEIDRep->len += sizeof(MEASEURE_REP_BASIC);
memcpy( &(pMgmt->pCurrMeasureEIDRep->sRep.sBasic), memcpy(&(pMgmt->pCurrMeasureEIDRep->sRep.sBasic),
&(((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->sReq), &(((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->sReq),
sizeof(MEASEURE_REQ)); sizeof(MEASEURE_REQ));
pMgmt->pCurrMeasureEIDRep->sRep.sBasic.byMap = byBasicMap; pMgmt->pCurrMeasureEIDRep->sRep.sBasic.byMap = byBasicMap;
break; break;
case MEASURE_TYPE_CCA : case MEASURE_TYPE_CCA:
pMgmt->pCurrMeasureEIDRep->len += sizeof(MEASEURE_REP_CCA); pMgmt->pCurrMeasureEIDRep->len += sizeof(MEASEURE_REP_CCA);
memcpy( &(pMgmt->pCurrMeasureEIDRep->sRep.sCCA), memcpy(&(pMgmt->pCurrMeasureEIDRep->sRep.sCCA),
&(((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->sReq), &(((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->sReq),
sizeof(MEASEURE_REQ)); sizeof(MEASEURE_REQ));
pMgmt->pCurrMeasureEIDRep->sRep.sCCA.byCCABusyFraction = byCCAFraction; pMgmt->pCurrMeasureEIDRep->sRep.sCCA.byCCABusyFraction = byCCAFraction;
break; break;
case MEASURE_TYPE_RPI : case MEASURE_TYPE_RPI:
pMgmt->pCurrMeasureEIDRep->len += sizeof(MEASEURE_REP_RPI); pMgmt->pCurrMeasureEIDRep->len += sizeof(MEASEURE_REP_RPI);
memcpy( &(pMgmt->pCurrMeasureEIDRep->sRep.sRPI), memcpy(&(pMgmt->pCurrMeasureEIDRep->sRep.sRPI),
&(((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->sReq), &(((PWLAN_IE_MEASURE_REQ) pvMeasureEID)->sReq),
sizeof(MEASEURE_REQ)); sizeof(MEASEURE_REQ));
memcpy(pMgmt->pCurrMeasureEIDRep->sRep.sRPI.abyRPIdensity, pbyRPIs, 8); memcpy(pMgmt->pCurrMeasureEIDRep->sRep.sRPI.abyRPIdensity, pbyRPIs, 8);
break; break;
default : default:
break; break;
} }
pbyCurrentEID += (2 + pMgmt->pCurrMeasureEIDRep->len); pbyCurrentEID += (2 + pMgmt->pCurrMeasureEIDRep->len);
pMgmt->uLengthOfRepEIDs += (2 + pMgmt->pCurrMeasureEIDRep->len); pMgmt->uLengthOfRepEIDs += (2 + pMgmt->pCurrMeasureEIDRep->len);
pMgmt->pCurrMeasureEIDRep = (PWLAN_IE_MEASURE_REP) pbyCurrentEID; pMgmt->pCurrMeasureEIDRep = (PWLAN_IE_MEASURE_REP) pbyCurrentEID;
} }
if (bEndOfReport == true) { if (bEndOfReport == true) {
IEEE11hbMSRRepTx(pMgmt); IEEE11hbMSRRepTx(pMgmt);
} }
//spin_unlock_irq(&pDevice->lock); //spin_unlock_irq(&pDevice->lock);
return (true); return (true);
} }
bool bool
VNTWIFIbChannelSwitch( VNTWIFIbChannelSwitch(
void *pMgmtObject, void *pMgmtObject,
unsigned char byNewChannel unsigned char byNewChannel
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject;
//spin_lock_irq(&pDevice->lock); //spin_lock_irq(&pDevice->lock);
pMgmt->uCurrChannel = byNewChannel; pMgmt->uCurrChannel = byNewChannel;
pMgmt->bSwitchChannel = false; pMgmt->bSwitchChannel = false;
//spin_unlock_irq(&pDevice->lock); //spin_unlock_irq(&pDevice->lock);
return true; return true;
} }
/* /*
bool bool
VNTWIFIbRadarPresent( VNTWIFIbRadarPresent(
void *pMgmtObject, void *pMgmtObject,
unsigned char byChannel unsigned char byChannel
) )
{ {
PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject;
if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) &&
(byChannel == (unsigned char) pMgmt->uCurrChannel) && (byChannel == (unsigned char) pMgmt->uCurrChannel) &&
(pMgmt->bSwitchChannel != true) && (pMgmt->bSwitchChannel != true) &&
(pMgmt->b11hEnable == true)) { (pMgmt->b11hEnable == true)) {
if (!compare_ether_addr(pMgmt->abyIBSSDFSOwner, CARDpGetCurrentAddress(pMgmt->pAdapter))) { if (!compare_ether_addr(pMgmt->abyIBSSDFSOwner, CARDpGetCurrentAddress(pMgmt->pAdapter))) {
pMgmt->byNewChannel = CARDbyAutoChannelSelect(pMgmt->pAdapter,(unsigned char) pMgmt->uCurrChannel); pMgmt->byNewChannel = CARDbyAutoChannelSelect(pMgmt->pAdapter,(unsigned char) pMgmt->uCurrChannel);
pMgmt->bSwitchChannel = true; pMgmt->bSwitchChannel = true;
} }
BEACONbSendBeacon(pMgmt); BEACONbSendBeacon(pMgmt);
CARDbChannelSwitch(pMgmt->pAdapter, 0, pMgmt->byNewChannel, 10); CARDbChannelSwitch(pMgmt->pAdapter, 0, pMgmt->byNewChannel, 10);
} }
return true; return true;
} }
*/ */
...@@ -65,28 +65,28 @@ ...@@ -65,28 +65,28 @@
// Pre-configured Authenticaiton Mode (from XP) // Pre-configured Authenticaiton Mode (from XP)
typedef enum tagWMAC_AUTHENTICATION_MODE { typedef enum tagWMAC_AUTHENTICATION_MODE {
WMAC_AUTH_OPEN, WMAC_AUTH_OPEN,
WMAC_AUTH_SHAREKEY, WMAC_AUTH_SHAREKEY,
WMAC_AUTH_AUTO, WMAC_AUTH_AUTO,
WMAC_AUTH_WPA, WMAC_AUTH_WPA,
WMAC_AUTH_WPAPSK, WMAC_AUTH_WPAPSK,
WMAC_AUTH_WPANONE, WMAC_AUTH_WPANONE,
WMAC_AUTH_WPA2, WMAC_AUTH_WPA2,
WMAC_AUTH_WPA2PSK, WMAC_AUTH_WPA2PSK,
WMAC_AUTH_MAX // Not a real mode, defined as upper bound WMAC_AUTH_MAX // Not a real mode, defined as upper bound
} WMAC_AUTHENTICATION_MODE, *PWMAC_AUTHENTICATION_MODE; } WMAC_AUTHENTICATION_MODE, *PWMAC_AUTHENTICATION_MODE;
typedef enum tagWMAC_ENCRYPTION_MODE { typedef enum tagWMAC_ENCRYPTION_MODE {
WMAC_ENCRYPTION_WEPEnabled, WMAC_ENCRYPTION_WEPEnabled,
WMAC_ENCRYPTION_WEPDisabled, WMAC_ENCRYPTION_WEPDisabled,
WMAC_ENCRYPTION_WEPKeyAbsent, WMAC_ENCRYPTION_WEPKeyAbsent,
WMAC_ENCRYPTION_WEPNotSupported, WMAC_ENCRYPTION_WEPNotSupported,
WMAC_ENCRYPTION_TKIPEnabled, WMAC_ENCRYPTION_TKIPEnabled,
WMAC_ENCRYPTION_TKIPKeyAbsent, WMAC_ENCRYPTION_TKIPKeyAbsent,
WMAC_ENCRYPTION_AESEnabled, WMAC_ENCRYPTION_AESEnabled,
WMAC_ENCRYPTION_AESKeyAbsent WMAC_ENCRYPTION_AESKeyAbsent
} WMAC_ENCRYPTION_MODE, *PWMAC_ENCRYPTION_MODE; } WMAC_ENCRYPTION_MODE, *PWMAC_ENCRYPTION_MODE;
...@@ -94,10 +94,10 @@ typedef enum tagWMAC_ENCRYPTION_MODE { ...@@ -94,10 +94,10 @@ typedef enum tagWMAC_ENCRYPTION_MODE {
typedef enum tagWMAC_CONFIG_MODE { typedef enum tagWMAC_CONFIG_MODE {
WMAC_CONFIG_ESS_STA = 0, WMAC_CONFIG_ESS_STA = 0,
WMAC_CONFIG_IBSS_STA, WMAC_CONFIG_IBSS_STA,
WMAC_CONFIG_AUTO, WMAC_CONFIG_AUTO,
WMAC_CONFIG_AP WMAC_CONFIG_AP
} WMAC_CONFIG_MODE, *PWMAC_CONFIG_MODE; } WMAC_CONFIG_MODE, *PWMAC_CONFIG_MODE;
...@@ -105,29 +105,29 @@ typedef enum tagWMAC_CONFIG_MODE { ...@@ -105,29 +105,29 @@ typedef enum tagWMAC_CONFIG_MODE {
typedef enum tagWMAC_POWER_MODE { typedef enum tagWMAC_POWER_MODE {
WMAC_POWER_CAM, WMAC_POWER_CAM,
WMAC_POWER_FAST, WMAC_POWER_FAST,
WMAC_POWER_MAX WMAC_POWER_MAX
} WMAC_POWER_MODE, *PWMAC_POWER_MODE; } WMAC_POWER_MODE, *PWMAC_POWER_MODE;
#define VNTWIFIbIsShortSlotTime(wCapInfo) \ #define VNTWIFIbIsShortSlotTime(wCapInfo) \
WLAN_GET_CAP_INFO_SHORTSLOTTIME(wCapInfo) \ WLAN_GET_CAP_INFO_SHORTSLOTTIME(wCapInfo) \
#define VNTWIFIbIsProtectMode(byERP) \ #define VNTWIFIbIsProtectMode(byERP) \
((byERP & WLAN_EID_ERP_USE_PROTECTION) != 0) \ ((byERP & WLAN_EID_ERP_USE_PROTECTION) != 0) \
#define VNTWIFIbIsBarkerMode(byERP) \ #define VNTWIFIbIsBarkerMode(byERP) \
((byERP & WLAN_EID_ERP_BARKER_MODE) != 0) \ ((byERP & WLAN_EID_ERP_BARKER_MODE) != 0) \
#define VNTWIFIbIsShortPreamble(wCapInfo) \ #define VNTWIFIbIsShortPreamble(wCapInfo) \
WLAN_GET_CAP_INFO_SHORTPREAMBLE(wCapInfo) \ WLAN_GET_CAP_INFO_SHORTPREAMBLE(wCapInfo) \
#define VNTWIFIbIsEncryption(wCapInfo) \ #define VNTWIFIbIsEncryption(wCapInfo) \
WLAN_GET_CAP_INFO_PRIVACY(wCapInfo) \ WLAN_GET_CAP_INFO_PRIVACY(wCapInfo) \
#define VNTWIFIbIsESS(wCapInfo) \ #define VNTWIFIbIsESS(wCapInfo) \
WLAN_GET_CAP_INFO_ESS(wCapInfo) \ WLAN_GET_CAP_INFO_ESS(wCapInfo) \
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
...@@ -141,167 +141,167 @@ typedef enum tagWMAC_POWER_MODE { ...@@ -141,167 +141,167 @@ typedef enum tagWMAC_POWER_MODE {
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
void void
VNTWIFIvSetIBSSParameter ( VNTWIFIvSetIBSSParameter(
void *pMgmtHandle, void *pMgmtHandle,
unsigned short wBeaconPeriod, unsigned short wBeaconPeriod,
unsigned short wATIMWindow, unsigned short wATIMWindow,
unsigned int uChannel unsigned int uChannel
); );
void void
VNTWIFIvSetOPMode ( VNTWIFIvSetOPMode(
void *pMgmtHandle, void *pMgmtHandle,
WMAC_CONFIG_MODE eOPMode WMAC_CONFIG_MODE eOPMode
); );
PWLAN_IE_SSID PWLAN_IE_SSID
VNTWIFIpGetCurrentSSID( VNTWIFIpGetCurrentSSID(
void *pMgmtHandle void *pMgmtHandle
); );
unsigned int unsigned int
VNTWIFIpGetCurrentChannel( VNTWIFIpGetCurrentChannel(
void *pMgmtHandle void *pMgmtHandle
); );
unsigned short unsigned short
VNTWIFIwGetAssocID ( VNTWIFIwGetAssocID(
void *pMgmtHandle void *pMgmtHandle
); );
unsigned char unsigned char
VNTWIFIbyGetMaxSupportRate ( VNTWIFIbyGetMaxSupportRate(
PWLAN_IE_SUPP_RATES pSupportRateIEs, PWLAN_IE_SUPP_RATES pSupportRateIEs,
PWLAN_IE_SUPP_RATES pExtSupportRateIEs PWLAN_IE_SUPP_RATES pExtSupportRateIEs
); );
unsigned char unsigned char
VNTWIFIbyGetACKTxRate ( VNTWIFIbyGetACKTxRate(
unsigned char byRxDataRate, unsigned char byRxDataRate,
PWLAN_IE_SUPP_RATES pSupportRateIEs, PWLAN_IE_SUPP_RATES pSupportRateIEs,
PWLAN_IE_SUPP_RATES pExtSupportRateIEs PWLAN_IE_SUPP_RATES pExtSupportRateIEs
); );
void void
VNTWIFIvSetAuthenticationMode ( VNTWIFIvSetAuthenticationMode(
void *pMgmtHandle, void *pMgmtHandle,
WMAC_AUTHENTICATION_MODE eAuthMode WMAC_AUTHENTICATION_MODE eAuthMode
); );
void void
VNTWIFIvSetEncryptionMode ( VNTWIFIvSetEncryptionMode(
void *pMgmtHandle, void *pMgmtHandle,
WMAC_ENCRYPTION_MODE eEncryptionMode WMAC_ENCRYPTION_MODE eEncryptionMode
); );
bool bool
VNTWIFIbConfigPhyMode( VNTWIFIbConfigPhyMode(
void *pMgmtHandle, void *pMgmtHandle,
CARD_PHY_TYPE ePhyType CARD_PHY_TYPE ePhyType
); );
void void
VNTWIFIbGetConfigPhyMode( VNTWIFIbGetConfigPhyMode(
void *pMgmtHandle, void *pMgmtHandle,
void *pePhyType void *pePhyType
); );
void void
VNTWIFIvQueryBSSList(void *pMgmtHandle, unsigned int *puBSSCount, VNTWIFIvQueryBSSList(void *pMgmtHandle, unsigned int *puBSSCount,
void **pvFirstBSS); void **pvFirstBSS);
void void
VNTWIFIvGetNextBSS ( VNTWIFIvGetNextBSS(
void *pMgmtHandle, void *pMgmtHandle,
void *pvCurrentBSS, void *pvCurrentBSS,
void **pvNextBSS void **pvNextBSS
); );
void void
VNTWIFIvUpdateNodeTxCounter( VNTWIFIvUpdateNodeTxCounter(
void *pMgmtHandle, void *pMgmtHandle,
unsigned char *pbyDestAddress, unsigned char *pbyDestAddress,
bool bTxOk, bool bTxOk,
unsigned short wRate, unsigned short wRate,
unsigned char *pbyTxFailCount unsigned char *pbyTxFailCount
); );
void void
VNTWIFIvGetTxRate( VNTWIFIvGetTxRate(
void *pMgmtHandle, void *pMgmtHandle,
unsigned char *pbyDestAddress, unsigned char *pbyDestAddress,
unsigned short *pwTxDataRate, unsigned short *pwTxDataRate,
unsigned char *pbyACKRate, unsigned char *pbyACKRate,
unsigned char *pbyCCKBasicRate, unsigned char *pbyCCKBasicRate,
unsigned char *pbyOFDMBasicRate unsigned char *pbyOFDMBasicRate
); );
/* /*
bool bool
VNTWIFIbInit( VNTWIFIbInit(
void *pAdapterHandler, void *pAdapterHandler,
void **pMgmtHandler void **pMgmtHandler
); );
*/ */
unsigned char unsigned char
VNTWIFIbyGetKeyCypher( VNTWIFIbyGetKeyCypher(
void *pMgmtHandle, void *pMgmtHandle,
bool bGroupKey bool bGroupKey
); );
bool bool
VNTWIFIbSetPMKIDCache ( VNTWIFIbSetPMKIDCache(
void *pMgmtObject, void *pMgmtObject,
unsigned long ulCount, unsigned long ulCount,
void *pPMKIDInfo void *pPMKIDInfo
); );
bool bool
VNTWIFIbCommandRunning ( VNTWIFIbCommandRunning(
void *pMgmtObject void *pMgmtObject
); );
unsigned short unsigned short
VNTWIFIwGetMaxSupportRate( VNTWIFIwGetMaxSupportRate(
void *pMgmtObject void *pMgmtObject
); );
// for 802.11h // for 802.11h
void void
VNTWIFIvSet11h ( VNTWIFIvSet11h(
void *pMgmtObject, void *pMgmtObject,
bool b11hEnable bool b11hEnable
); );
bool bool
VNTWIFIbMeasureReport( VNTWIFIbMeasureReport(
void *pMgmtObject, void *pMgmtObject,
bool bEndOfReport, bool bEndOfReport,
void *pvMeasureEID, void *pvMeasureEID,
unsigned char byReportMode, unsigned char byReportMode,
unsigned char byBasicMap, unsigned char byBasicMap,
unsigned char byCCAFraction, unsigned char byCCAFraction,
unsigned char *pbyRPIs unsigned char *pbyRPIs
); );
bool bool
VNTWIFIbChannelSwitch( VNTWIFIbChannelSwitch(
void *pMgmtObject, void *pMgmtObject,
unsigned char byNewChannel unsigned char byNewChannel
); );
/* /*
bool bool
VNTWIFIbRadarPresent( VNTWIFIbRadarPresent(
void *pMgmtObject, void *pMgmtObject,
unsigned char byChannel unsigned char byChannel
); );
*/ */
#endif //__VNTWIFI_H__ #endif //__VNTWIFI_H__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment