diff options
author | Charles Clément <caratorn@gmail.com> | 2010-08-01 11:15:49 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-02 21:17:38 -0400 |
commit | 5a5a2a6ad4aa2467bcc34fa50e85c2afc90bab05 (patch) | |
tree | 386e358656a1f9f070a59f4632f7f2b253bc1c33 | |
parent | 1b12068a804711ae2f4fd2876d5706542c1d7ad9 (diff) |
Staging: vt6655: replace FALSE with in kernel false
Signed-off-by: Charles Clément <caratorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
30 files changed, 581 insertions, 589 deletions
diff --git a/drivers/staging/vt6655/IEEE11h.c b/drivers/staging/vt6655/IEEE11h.c index 121682234cd2..1ab1d420cbd9 100644 --- a/drivers/staging/vt6655/IEEE11h.c +++ b/drivers/staging/vt6655/IEEE11h.c | |||
@@ -176,7 +176,7 @@ static BOOL s_bRxTPCReq(PSMgmtObject pMgmt, PWLAN_FRAME_TPCREQ pTPCReq, unsigned | |||
176 | pTxPacket->cbMPDULen = sizeof(WLAN_FRAME_TPCREP); | 176 | pTxPacket->cbMPDULen = sizeof(WLAN_FRAME_TPCREP); |
177 | pTxPacket->cbPayloadLen = sizeof(WLAN_FRAME_TPCREP) - WLAN_HDR_ADDR3_LEN; | 177 | pTxPacket->cbPayloadLen = sizeof(WLAN_FRAME_TPCREP) - WLAN_HDR_ADDR3_LEN; |
178 | if (csMgmt_xmit(pMgmt->pAdapter, pTxPacket) != CMD_STATUS_PENDING) | 178 | if (csMgmt_xmit(pMgmt->pAdapter, pTxPacket) != CMD_STATUS_PENDING) |
179 | return (FALSE); | 179 | return (false); |
180 | return (true); | 180 | return (true); |
181 | // return (CARDbSendPacket(pMgmt->pAdapter, pFrame, PKT_TYPE_802_11_MNG, sizeof(WLAN_FRAME_TPCREP))); | 181 | // return (CARDbSendPacket(pMgmt->pAdapter, pFrame, PKT_TYPE_802_11_MNG, sizeof(WLAN_FRAME_TPCREP))); |
182 | 182 | ||
@@ -218,7 +218,7 @@ IEEE11hbMgrRxAction ( | |||
218 | // decode the frame | 218 | // decode the frame |
219 | uLength = ((PSRxMgmtPacket)pRxPacket)->cbMPDULen; | 219 | uLength = ((PSRxMgmtPacket)pRxPacket)->cbMPDULen; |
220 | if (uLength > WLAN_A3FR_MAXLEN) { | 220 | if (uLength > WLAN_A3FR_MAXLEN) { |
221 | return (FALSE); | 221 | return (false); |
222 | } | 222 | } |
223 | 223 | ||
224 | 224 | ||
@@ -297,7 +297,7 @@ BOOL IEEE11hbMSRRepTx ( | |||
297 | pTxPacket->cbMPDULen = uLength; | 297 | pTxPacket->cbMPDULen = uLength; |
298 | pTxPacket->cbPayloadLen = uLength - WLAN_HDR_ADDR3_LEN; | 298 | pTxPacket->cbPayloadLen = uLength - WLAN_HDR_ADDR3_LEN; |
299 | if (csMgmt_xmit(pMgmt->pAdapter, pTxPacket) != CMD_STATUS_PENDING) | 299 | if (csMgmt_xmit(pMgmt->pAdapter, pTxPacket) != CMD_STATUS_PENDING) |
300 | return (FALSE); | 300 | return (false); |
301 | return (true); | 301 | return (true); |
302 | // return (CARDbSendPacket(pMgmt->pAdapter, pMSRRep, PKT_TYPE_802_11_MNG, uLength)); | 302 | // return (CARDbSendPacket(pMgmt->pAdapter, pMSRRep, PKT_TYPE_802_11_MNG, uLength)); |
303 | 303 | ||
diff --git a/drivers/staging/vt6655/aes_ccmp.c b/drivers/staging/vt6655/aes_ccmp.c index c56a4093b226..12910f312a2a 100644 --- a/drivers/staging/vt6655/aes_ccmp.c +++ b/drivers/staging/vt6655/aes_ccmp.c | |||
@@ -260,7 +260,7 @@ unsigned char *pbyIV; | |||
260 | unsigned char *pbyPayload; | 260 | unsigned char *pbyPayload; |
261 | unsigned short wHLen = 22; | 261 | unsigned short wHLen = 22; |
262 | unsigned short wPayloadSize = wFrameSize - 8 - 8 - 4 - WLAN_HDR_ADDR3_LEN;//8 is IV, 8 is MIC, 4 is CRC | 262 | unsigned short wPayloadSize = wFrameSize - 8 - 8 - 4 - WLAN_HDR_ADDR3_LEN;//8 is IV, 8 is MIC, 4 is CRC |
263 | BOOL bA4 = FALSE; | 263 | BOOL bA4 = false; |
264 | unsigned char byTmp; | 264 | unsigned char byTmp; |
265 | unsigned short wCnt; | 265 | unsigned short wCnt; |
266 | int ii,jj,kk; | 266 | int ii,jj,kk; |
@@ -396,7 +396,7 @@ int ii,jj,kk; | |||
396 | if ( !memcmp(abyMIC,abyTmp,8) ) { | 396 | if ( !memcmp(abyMIC,abyTmp,8) ) { |
397 | return true; | 397 | return true; |
398 | } else { | 398 | } else { |
399 | return FALSE; | 399 | return false; |
400 | } | 400 | } |
401 | 401 | ||
402 | } | 402 | } |
diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index 39ec064bfb6a..6ad0bfa520fd 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers/staging/vt6655/baseband.c | |||
@@ -1862,7 +1862,7 @@ BBvCaculateParameter ( | |||
1862 | BOOL bCCK = pDevice->bCCK; | 1862 | BOOL bCCK = pDevice->bCCK; |
1863 | 1863 | ||
1864 | cbBitCount = cbFrameLength * 8; | 1864 | cbBitCount = cbFrameLength * 8; |
1865 | bExtBit = FALSE; | 1865 | bExtBit = false; |
1866 | 1866 | ||
1867 | switch (wRate) { | 1867 | switch (wRate) { |
1868 | case RATE_1M : | 1868 | case RATE_1M : |
@@ -1879,7 +1879,7 @@ BBvCaculateParameter ( | |||
1879 | break; | 1879 | break; |
1880 | 1880 | ||
1881 | case RATE_5M : | 1881 | case RATE_5M : |
1882 | if (bCCK == FALSE) | 1882 | if (bCCK == false) |
1883 | cbBitCount ++; | 1883 | cbBitCount ++; |
1884 | cbUsCount = (cbBitCount * 10) / 55; | 1884 | cbUsCount = (cbBitCount * 10) / 55; |
1885 | cbTmp = (cbUsCount * 55) / 10; | 1885 | cbTmp = (cbUsCount * 55) / 10; |
@@ -1893,7 +1893,7 @@ BBvCaculateParameter ( | |||
1893 | 1893 | ||
1894 | case RATE_11M : | 1894 | case RATE_11M : |
1895 | 1895 | ||
1896 | if (bCCK == FALSE) | 1896 | if (bCCK == false) |
1897 | cbBitCount ++; | 1897 | cbBitCount ++; |
1898 | cbUsCount = cbBitCount / 11; | 1898 | cbUsCount = cbBitCount / 11; |
1899 | cbTmp = cbUsCount * 11; | 1899 | cbTmp = cbUsCount * 11; |
@@ -2012,7 +2012,7 @@ BBvCaculateParameter ( | |||
2012 | * Out: | 2012 | * Out: |
2013 | * pbyData - data read | 2013 | * pbyData - data read |
2014 | * | 2014 | * |
2015 | * Return Value: true if succeeded; FALSE if failed. | 2015 | * Return Value: true if succeeded; false if failed. |
2016 | * | 2016 | * |
2017 | */ | 2017 | */ |
2018 | BOOL BBbReadEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char *pbyData) | 2018 | BOOL BBbReadEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char *pbyData) |
@@ -2038,7 +2038,7 @@ BOOL BBbReadEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned ch | |||
2038 | if (ww == W_MAX_TIMEOUT) { | 2038 | if (ww == W_MAX_TIMEOUT) { |
2039 | DBG_PORT80(0x30); | 2039 | DBG_PORT80(0x30); |
2040 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x30)\n"); | 2040 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x30)\n"); |
2041 | return FALSE; | 2041 | return false; |
2042 | } | 2042 | } |
2043 | return true; | 2043 | return true; |
2044 | } | 2044 | } |
@@ -2055,7 +2055,7 @@ BOOL BBbReadEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned ch | |||
2055 | * Out: | 2055 | * Out: |
2056 | * none | 2056 | * none |
2057 | * | 2057 | * |
2058 | * Return Value: true if succeeded; FALSE if failed. | 2058 | * Return Value: true if succeeded; false if failed. |
2059 | * | 2059 | * |
2060 | */ | 2060 | */ |
2061 | BOOL BBbWriteEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byData) | 2061 | BOOL BBbWriteEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byData) |
@@ -2080,7 +2080,7 @@ BOOL BBbWriteEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned c | |||
2080 | if (ww == W_MAX_TIMEOUT) { | 2080 | if (ww == W_MAX_TIMEOUT) { |
2081 | DBG_PORT80(0x31); | 2081 | DBG_PORT80(0x31); |
2082 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x31)\n"); | 2082 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x31)\n"); |
2083 | return FALSE; | 2083 | return false; |
2084 | } | 2084 | } |
2085 | return true; | 2085 | return true; |
2086 | } | 2086 | } |
@@ -2097,7 +2097,7 @@ BOOL BBbWriteEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned c | |||
2097 | * Out: | 2097 | * Out: |
2098 | * none | 2098 | * none |
2099 | * | 2099 | * |
2100 | * Return Value: true if all TestBits are set; FALSE otherwise. | 2100 | * Return Value: true if all TestBits are set; false otherwise. |
2101 | * | 2101 | * |
2102 | */ | 2102 | */ |
2103 | BOOL BBbIsRegBitsOn (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byTestBits) | 2103 | BOOL BBbIsRegBitsOn (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byTestBits) |
@@ -2120,7 +2120,7 @@ BOOL BBbIsRegBitsOn (unsigned long dwIoBase, unsigned char byBBAddr, unsigned ch | |||
2120 | * Out: | 2120 | * Out: |
2121 | * none | 2121 | * none |
2122 | * | 2122 | * |
2123 | * Return Value: true if all TestBits are clear; FALSE otherwise. | 2123 | * Return Value: true if all TestBits are clear; false otherwise. |
2124 | * | 2124 | * |
2125 | */ | 2125 | */ |
2126 | BOOL BBbIsRegBitsOff (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byTestBits) | 2126 | BOOL BBbIsRegBitsOff (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byTestBits) |
@@ -2142,7 +2142,7 @@ BOOL BBbIsRegBitsOff (unsigned long dwIoBase, unsigned char byBBAddr, unsigned c | |||
2142 | * Out: | 2142 | * Out: |
2143 | * none | 2143 | * none |
2144 | * | 2144 | * |
2145 | * Return Value: true if succeeded; FALSE if failed. | 2145 | * Return Value: true if succeeded; false if failed. |
2146 | * | 2146 | * |
2147 | */ | 2147 | */ |
2148 | 2148 | ||
@@ -2294,7 +2294,7 @@ BOOL BBbVT3253Init (PSDevice pDevice) | |||
2294 | //}} RobertYu | 2294 | //}} RobertYu |
2295 | } else { | 2295 | } else { |
2296 | // No VGA Table now | 2296 | // No VGA Table now |
2297 | pDevice->bUpdateBBVGA = FALSE; | 2297 | pDevice->bUpdateBBVGA = false; |
2298 | pDevice->abyBBVGA[0] = 0x1C; | 2298 | pDevice->abyBBVGA[0] = 0x1C; |
2299 | } | 2299 | } |
2300 | 2300 | ||
diff --git a/drivers/staging/vt6655/bssdb.c b/drivers/staging/vt6655/bssdb.c index 47f411c61d01..c9563b2b38f0 100644 --- a/drivers/staging/vt6655/bssdb.c +++ b/drivers/staging/vt6655/bssdb.c | |||
@@ -160,9 +160,9 @@ BSSpSearchBSSList( | |||
160 | // match BSSID first | 160 | // match BSSID first |
161 | for (ii = 0; ii <MAX_BSS_NUM; ii++) { | 161 | for (ii = 0; ii <MAX_BSS_NUM; ii++) { |
162 | pCurrBSS = &(pMgmt->sBSSList[ii]); | 162 | pCurrBSS = &(pMgmt->sBSSList[ii]); |
163 | if(pDevice->bLinkPass==FALSE) pCurrBSS->bSelected = FALSE; | 163 | if(pDevice->bLinkPass==false) pCurrBSS->bSelected = false; |
164 | if ((pCurrBSS->bActive) && | 164 | if ((pCurrBSS->bActive) && |
165 | (pCurrBSS->bSelected == FALSE)) { | 165 | (pCurrBSS->bSelected == false)) { |
166 | if (!compare_ether_addr(pCurrBSS->abyBSSID, pbyBSSID)) { | 166 | if (!compare_ether_addr(pCurrBSS->abyBSSID, pbyBSSID)) { |
167 | if (pSSID != NULL) { | 167 | if (pSSID != NULL) { |
168 | // compare ssid | 168 | // compare ssid |
@@ -194,7 +194,7 @@ if(pDevice->bLinkPass==FALSE) pCurrBSS->bSelected = FALSE; | |||
194 | for (ii = 0; ii <MAX_BSS_NUM; ii++) { | 194 | for (ii = 0; ii <MAX_BSS_NUM; ii++) { |
195 | pCurrBSS = &(pMgmt->sBSSList[ii]); | 195 | pCurrBSS = &(pMgmt->sBSSList[ii]); |
196 | //2007-0721-01<Add>by MikeLiu | 196 | //2007-0721-01<Add>by MikeLiu |
197 | pCurrBSS->bSelected = FALSE; | 197 | pCurrBSS->bSelected = false; |
198 | if (pCurrBSS->bActive) { | 198 | if (pCurrBSS->bActive) { |
199 | 199 | ||
200 | if (pSSID != NULL) { | 200 | if (pSSID != NULL) { |
@@ -231,13 +231,13 @@ if(pDevice->bLinkPass==FALSE) pCurrBSS->bSelected = FALSE; | |||
231 | } | 231 | } |
232 | } else if ((pMgmt->eAuthenMode == WMAC_AUTH_WPA) || | 232 | } else if ((pMgmt->eAuthenMode == WMAC_AUTH_WPA) || |
233 | (pMgmt->eAuthenMode == WMAC_AUTH_WPAPSK)) { | 233 | (pMgmt->eAuthenMode == WMAC_AUTH_WPAPSK)) { |
234 | if (pCurrBSS->bWPAValid == FALSE) { | 234 | if (pCurrBSS->bWPAValid == false) { |
235 | // station with WPA enable can't join NonWPA AP. | 235 | // station with WPA enable can't join NonWPA AP. |
236 | continue; | 236 | continue; |
237 | } | 237 | } |
238 | } else if ((pMgmt->eAuthenMode == WMAC_AUTH_WPA2) || | 238 | } else if ((pMgmt->eAuthenMode == WMAC_AUTH_WPA2) || |
239 | (pMgmt->eAuthenMode == WMAC_AUTH_WPA2PSK)) { | 239 | (pMgmt->eAuthenMode == WMAC_AUTH_WPA2PSK)) { |
240 | if (pCurrBSS->bWPA2Valid == FALSE) { | 240 | if (pCurrBSS->bWPA2Valid == false) { |
241 | // station with WPA2 enable can't join NonWPA2 AP. | 241 | // station with WPA2 enable can't join NonWPA2 AP. |
242 | continue; | 242 | continue; |
243 | } | 243 | } |
@@ -256,7 +256,7 @@ if(pDevice->bLinkPass==FALSE) pCurrBSS->bSelected = FALSE; | |||
256 | if (pSelect != NULL) { | 256 | if (pSelect != NULL) { |
257 | pSelect->bSelected = true; | 257 | pSelect->bSelected = true; |
258 | /* | 258 | /* |
259 | if (pDevice->bRoaming == FALSE) { | 259 | if (pDevice->bRoaming == false) { |
260 | // Einsn Add @20070907 | 260 | // Einsn Add @20070907 |
261 | memset(pbyDesireSSID, 0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); | 261 | memset(pbyDesireSSID, 0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); |
262 | memcpy(pbyDesireSSID,pCurrBSS->abySSID,WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1) ; | 262 | memcpy(pbyDesireSSID,pCurrBSS->abySSID,WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1) ; |
@@ -295,7 +295,7 @@ BSSvClearBSSList( | |||
295 | if (bKeepCurrBSSID) { | 295 | if (bKeepCurrBSSID) { |
296 | if (pMgmt->sBSSList[ii].bActive && | 296 | if (pMgmt->sBSSList[ii].bActive && |
297 | !compare_ether_addr(pMgmt->sBSSList[ii].abyBSSID, pMgmt->abyCurrBSSID)) { | 297 | !compare_ether_addr(pMgmt->sBSSList[ii].abyBSSID, pMgmt->abyCurrBSSID)) { |
298 | // bKeepCurrBSSID = FALSE; | 298 | // bKeepCurrBSSID = false; |
299 | continue; | 299 | continue; |
300 | } | 300 | } |
301 | } | 301 | } |
@@ -305,7 +305,7 @@ BSSvClearBSSList( | |||
305 | continue; | 305 | continue; |
306 | } | 306 | } |
307 | 307 | ||
308 | pMgmt->sBSSList[ii].bActive = FALSE; | 308 | pMgmt->sBSSList[ii].bActive = false; |
309 | memset(&pMgmt->sBSSList[ii], 0, sizeof(KnownBSS)); | 309 | memset(&pMgmt->sBSSList[ii], 0, sizeof(KnownBSS)); |
310 | } | 310 | } |
311 | BSSvClearAnyBSSJoinRecord(pDevice); | 311 | BSSvClearAnyBSSJoinRecord(pDevice); |
@@ -394,7 +394,7 @@ BSSbInsertToBSSList ( | |||
394 | PSRxMgmtPacket pRxPacket = (PSRxMgmtPacket)pRxPacketContext; | 394 | PSRxMgmtPacket pRxPacket = (PSRxMgmtPacket)pRxPacketContext; |
395 | PKnownBSS pBSSList = NULL; | 395 | PKnownBSS pBSSList = NULL; |
396 | unsigned int ii; | 396 | unsigned int ii; |
397 | BOOL bParsingQuiet = FALSE; | 397 | BOOL bParsingQuiet = false; |
398 | PWLAN_IE_QUIET pQuiet = NULL; | 398 | PWLAN_IE_QUIET pQuiet = NULL; |
399 | 399 | ||
400 | 400 | ||
@@ -409,7 +409,7 @@ BSSbInsertToBSSList ( | |||
409 | 409 | ||
410 | if (ii == MAX_BSS_NUM){ | 410 | if (ii == MAX_BSS_NUM){ |
411 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Get free KnowBSS node failed.\n"); | 411 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Get free KnowBSS node failed.\n"); |
412 | return FALSE; | 412 | return false; |
413 | } | 413 | } |
414 | // save the BSS info | 414 | // save the BSS info |
415 | pBSSList->bActive = true; | 415 | pBSSList->bActive = true; |
@@ -492,7 +492,7 @@ BSSbInsertToBSSList ( | |||
492 | if ((pMgmt->eAuthenMode == WMAC_AUTH_WPA2) || (pBSSList->bWPA2Valid == true)) { | 492 | if ((pMgmt->eAuthenMode == WMAC_AUTH_WPA2) || (pBSSList->bWPA2Valid == true)) { |
493 | 493 | ||
494 | PSKeyItem pTransmitKey = NULL; | 494 | PSKeyItem pTransmitKey = NULL; |
495 | BOOL bIs802_1x = FALSE; | 495 | BOOL bIs802_1x = false; |
496 | 496 | ||
497 | for (ii = 0; ii < pBSSList->wAKMSSAuthCount; ii ++) { | 497 | for (ii = 0; ii < pBSSList->wAKMSSAuthCount; ii ++) { |
498 | if (pBSSList->abyAKMSSAuthType[ii] == WLAN_11i_AKMSS_802_1X) { | 498 | if (pBSSList->abyAKMSSAuthType[ii] == WLAN_11i_AKMSS_802_1X) { |
@@ -548,7 +548,7 @@ BSSbInsertToBSSList ( | |||
548 | } else { | 548 | } else { |
549 | pQuiet = (PWLAN_IE_QUIET)pIE_Quiet; | 549 | pQuiet = (PWLAN_IE_QUIET)pIE_Quiet; |
550 | CARDbSetQuiet( pMgmt->pAdapter, | 550 | CARDbSetQuiet( pMgmt->pAdapter, |
551 | FALSE, | 551 | false, |
552 | pQuiet->byQuietCount, | 552 | pQuiet->byQuietCount, |
553 | pQuiet->byQuietPeriod, | 553 | pQuiet->byQuietPeriod, |
554 | *((unsigned short *)pQuiet->abyQuietDuration), | 554 | *((unsigned short *)pQuiet->abyQuietDuration), |
@@ -610,13 +610,13 @@ BSSbUpdateToBSSList ( | |||
610 | PSMgmtObject pMgmt = pDevice->pMgmt; | 610 | PSMgmtObject pMgmt = pDevice->pMgmt; |
611 | PSRxMgmtPacket pRxPacket = (PSRxMgmtPacket)pRxPacketContext; | 611 | PSRxMgmtPacket pRxPacket = (PSRxMgmtPacket)pRxPacketContext; |
612 | long ldBm; | 612 | long ldBm; |
613 | BOOL bParsingQuiet = FALSE; | 613 | BOOL bParsingQuiet = false; |
614 | PWLAN_IE_QUIET pQuiet = NULL; | 614 | PWLAN_IE_QUIET pQuiet = NULL; |
615 | 615 | ||
616 | 616 | ||
617 | 617 | ||
618 | if (pBSSList == NULL) | 618 | if (pBSSList == NULL) |
619 | return FALSE; | 619 | return false; |
620 | 620 | ||
621 | 621 | ||
622 | HIDWORD(pBSSList->qwBSSTimestamp) = cpu_to_le32(HIDWORD(qwTimestamp)); | 622 | HIDWORD(pBSSList->qwBSSTimestamp) = cpu_to_le32(HIDWORD(qwTimestamp)); |
@@ -724,7 +724,7 @@ BSSbUpdateToBSSList ( | |||
724 | } else { | 724 | } else { |
725 | pQuiet = (PWLAN_IE_QUIET)pIE_Quiet; | 725 | pQuiet = (PWLAN_IE_QUIET)pIE_Quiet; |
726 | CARDbSetQuiet( pMgmt->pAdapter, | 726 | CARDbSetQuiet( pMgmt->pAdapter, |
727 | FALSE, | 727 | false, |
728 | pQuiet->byQuietCount, | 728 | pQuiet->byQuietCount, |
729 | pQuiet->byQuietPeriod, | 729 | pQuiet->byQuietPeriod, |
730 | *((unsigned short *)pQuiet->abyQuietDuration), | 730 | *((unsigned short *)pQuiet->abyQuietDuration), |
@@ -778,7 +778,7 @@ BSSDBbIsSTAInNodeDB(void *pMgmtObject, unsigned char *abyDstAddr, | |||
778 | } | 778 | } |
779 | } | 779 | } |
780 | 780 | ||
781 | return FALSE; | 781 | return false; |
782 | }; | 782 | }; |
783 | 783 | ||
784 | 784 | ||
@@ -963,7 +963,7 @@ BSSvAddMulticastNode( | |||
963 | memset(&pMgmt->sNodeDBTable[0], 0, sizeof(KnownNodeDB)); | 963 | memset(&pMgmt->sNodeDBTable[0], 0, sizeof(KnownNodeDB)); |
964 | memset(pMgmt->sNodeDBTable[0].abyMACAddr, 0xff, WLAN_ADDR_LEN); | 964 | memset(pMgmt->sNodeDBTable[0].abyMACAddr, 0xff, WLAN_ADDR_LEN); |
965 | pMgmt->sNodeDBTable[0].bActive = true; | 965 | pMgmt->sNodeDBTable[0].bActive = true; |
966 | pMgmt->sNodeDBTable[0].bPSEnable = FALSE; | 966 | pMgmt->sNodeDBTable[0].bPSEnable = false; |
967 | skb_queue_head_init(&pMgmt->sNodeDBTable[0].sTxPSQueue); | 967 | skb_queue_head_init(&pMgmt->sNodeDBTable[0].sTxPSQueue); |
968 | RATEvParseMaxRate((void *)pDevice, | 968 | RATEvParseMaxRate((void *)pDevice, |
969 | (PWLAN_IE_SUPP_RATES)pMgmt->abyCurrSuppRates, | 969 | (PWLAN_IE_SUPP_RATES)pMgmt->abyCurrSuppRates, |
@@ -1001,7 +1001,7 @@ BSSvAddMulticastNode( | |||
1001 | -*/ | 1001 | -*/ |
1002 | //2008-4-14 <add> by chester for led issue | 1002 | //2008-4-14 <add> by chester for led issue |
1003 | #ifdef FOR_LED_ON_NOTEBOOK | 1003 | #ifdef FOR_LED_ON_NOTEBOOK |
1004 | BOOL cc=FALSE; | 1004 | BOOL cc=false; |
1005 | unsigned int status; | 1005 | unsigned int status; |
1006 | #endif | 1006 | #endif |
1007 | void | 1007 | void |
@@ -1027,7 +1027,7 @@ BSSvSecondCallBack( | |||
1027 | //2008-4-14 <add> by chester for led issue | 1027 | //2008-4-14 <add> by chester for led issue |
1028 | #ifdef FOR_LED_ON_NOTEBOOK | 1028 | #ifdef FOR_LED_ON_NOTEBOOK |
1029 | MACvGPIOIn(pDevice->PortOffset, &pDevice->byGPIO); | 1029 | MACvGPIOIn(pDevice->PortOffset, &pDevice->byGPIO); |
1030 | if ((( !(pDevice->byGPIO & GPIO0_DATA)&&(pDevice->bHWRadioOff == FALSE))||((pDevice->byGPIO & GPIO0_DATA)&&(pDevice->bHWRadioOff == true)))&&(cc==FALSE)){ | 1030 | if ((( !(pDevice->byGPIO & GPIO0_DATA)&&(pDevice->bHWRadioOff == false))||((pDevice->byGPIO & GPIO0_DATA)&&(pDevice->bHWRadioOff == true)))&&(cc==false)){ |
1031 | cc=true; | 1031 | cc=true; |
1032 | } | 1032 | } |
1033 | else if(cc==true){ | 1033 | else if(cc==true){ |
@@ -1038,11 +1038,11 @@ if(pDevice->bHWRadioOff == true){ | |||
1038 | {if(status==1) goto start; | 1038 | {if(status==1) goto start; |
1039 | status=1; | 1039 | status=1; |
1040 | CARDbRadioPowerOff(pDevice); | 1040 | CARDbRadioPowerOff(pDevice); |
1041 | pMgmt->sNodeDBTable[0].bActive = FALSE; | 1041 | pMgmt->sNodeDBTable[0].bActive = false; |
1042 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; | 1042 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; |
1043 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 1043 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
1044 | //netif_stop_queue(pDevice->dev); | 1044 | //netif_stop_queue(pDevice->dev); |
1045 | pDevice->bLinkPass = FALSE; | 1045 | pDevice->bLinkPass = false; |
1046 | 1046 | ||
1047 | } | 1047 | } |
1048 | if (pDevice->byGPIO &GPIO0_DATA) | 1048 | if (pDevice->byGPIO &GPIO0_DATA) |
@@ -1057,11 +1057,11 @@ else{ | |||
1057 | {if(status==3) goto start; | 1057 | {if(status==3) goto start; |
1058 | status=3; | 1058 | status=3; |
1059 | CARDbRadioPowerOff(pDevice); | 1059 | CARDbRadioPowerOff(pDevice); |
1060 | pMgmt->sNodeDBTable[0].bActive = FALSE; | 1060 | pMgmt->sNodeDBTable[0].bActive = false; |
1061 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; | 1061 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; |
1062 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 1062 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
1063 | //netif_stop_queue(pDevice->dev); | 1063 | //netif_stop_queue(pDevice->dev); |
1064 | pDevice->bLinkPass = FALSE; | 1064 | pDevice->bLinkPass = false; |
1065 | 1065 | ||
1066 | } | 1066 | } |
1067 | if ( !(pDevice->byGPIO & GPIO0_DATA)) | 1067 | if ( !(pDevice->byGPIO & GPIO0_DATA)) |
@@ -1199,14 +1199,14 @@ start: | |||
1199 | else { | 1199 | else { |
1200 | if (pDevice->bProtectMode) { | 1200 | if (pDevice->bProtectMode) { |
1201 | MACvDisableProtectMD(pDevice->PortOffset); | 1201 | MACvDisableProtectMD(pDevice->PortOffset); |
1202 | pDevice->bProtectMode = FALSE; | 1202 | pDevice->bProtectMode = false; |
1203 | } | 1203 | } |
1204 | } | 1204 | } |
1205 | // on/off short slot time | 1205 | // on/off short slot time |
1206 | 1206 | ||
1207 | if (uNonShortSlotSTACnt > 0) { | 1207 | if (uNonShortSlotSTACnt > 0) { |
1208 | if (pDevice->bShortSlotTime) { | 1208 | if (pDevice->bShortSlotTime) { |
1209 | pDevice->bShortSlotTime = FALSE; | 1209 | pDevice->bShortSlotTime = false; |
1210 | BBvSetShortSlotTime(pDevice); | 1210 | BBvSetShortSlotTime(pDevice); |
1211 | vUpdateIFS((void *)pDevice); | 1211 | vUpdateIFS((void *)pDevice); |
1212 | } | 1212 | } |
@@ -1230,7 +1230,7 @@ start: | |||
1230 | else { | 1230 | else { |
1231 | if (pDevice->bBarkerPreambleMd) { | 1231 | if (pDevice->bBarkerPreambleMd) { |
1232 | MACvDisableBarkerPreambleMd(pDevice->PortOffset); | 1232 | MACvDisableBarkerPreambleMd(pDevice->PortOffset); |
1233 | pDevice->bBarkerPreambleMd = FALSE; | 1233 | pDevice->bBarkerPreambleMd = false; |
1234 | } | 1234 | } |
1235 | } | 1235 | } |
1236 | 1236 | ||
@@ -1242,7 +1242,7 @@ start: | |||
1242 | if (uSleepySTACnt > 0) | 1242 | if (uSleepySTACnt > 0) |
1243 | pMgmt->sNodeDBTable[0].bPSEnable = true; | 1243 | pMgmt->sNodeDBTable[0].bPSEnable = true; |
1244 | else | 1244 | else |
1245 | pMgmt->sNodeDBTable[0].bPSEnable = FALSE; | 1245 | pMgmt->sNodeDBTable[0].bPSEnable = false; |
1246 | } | 1246 | } |
1247 | 1247 | ||
1248 | pItemSSID = (PWLAN_IE_SSID)pMgmt->abyDesireSSID; | 1248 | pItemSSID = (PWLAN_IE_SSID)pMgmt->abyDesireSSID; |
@@ -1269,11 +1269,11 @@ start: | |||
1269 | } | 1269 | } |
1270 | 1270 | ||
1271 | if (pMgmt->sNodeDBTable[0].uInActiveCount >= LOST_BEACON_COUNT) { | 1271 | if (pMgmt->sNodeDBTable[0].uInActiveCount >= LOST_BEACON_COUNT) { |
1272 | pMgmt->sNodeDBTable[0].bActive = FALSE; | 1272 | pMgmt->sNodeDBTable[0].bActive = false; |
1273 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; | 1273 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; |
1274 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 1274 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
1275 | netif_stop_queue(pDevice->dev); | 1275 | netif_stop_queue(pDevice->dev); |
1276 | pDevice->bLinkPass = FALSE; | 1276 | pDevice->bLinkPass = false; |
1277 | pDevice->bRoaming = true; | 1277 | pDevice->bRoaming = true; |
1278 | DBG_PRT(MSG_LEVEL_NOTICE, KERN_INFO "Lost AP beacon [%d] sec, disconnected !\n", pMgmt->sNodeDBTable[0].uInActiveCount); | 1278 | DBG_PRT(MSG_LEVEL_NOTICE, KERN_INFO "Lost AP beacon [%d] sec, disconnected !\n", pMgmt->sNodeDBTable[0].uInActiveCount); |
1279 | if ((pDevice->bWPADEVUp) && (pDevice->skb != NULL)) { | 1279 | if ((pDevice->bWPADEVUp) && (pDevice->skb != NULL)) { |
@@ -1351,7 +1351,7 @@ start: | |||
1351 | pMgmt->sNodeDBTable[0].uInActiveCount = 0; | 1351 | pMgmt->sNodeDBTable[0].uInActiveCount = 0; |
1352 | pMgmt->eCurrState = WMAC_STATE_STARTED; | 1352 | pMgmt->eCurrState = WMAC_STATE_STARTED; |
1353 | netif_stop_queue(pDevice->dev); | 1353 | netif_stop_queue(pDevice->dev); |
1354 | pDevice->bLinkPass = FALSE; | 1354 | pDevice->bLinkPass = false; |
1355 | } | 1355 | } |
1356 | } | 1356 | } |
1357 | } | 1357 | } |
@@ -1662,7 +1662,7 @@ BSSvClearAnyBSSJoinRecord ( | |||
1662 | unsigned int ii; | 1662 | unsigned int ii; |
1663 | 1663 | ||
1664 | for (ii = 0; ii < MAX_BSS_NUM; ii++) { | 1664 | for (ii = 0; ii < MAX_BSS_NUM; ii++) { |
1665 | pMgmt->sBSSList[ii].bSelected = FALSE; | 1665 | pMgmt->sBSSList[ii].bSelected = false; |
1666 | } | 1666 | } |
1667 | return; | 1667 | return; |
1668 | } | 1668 | } |
@@ -1729,7 +1729,7 @@ void s_vCheckPreEDThreshold( | |||
1729 | pBSSList = BSSpAddrIsInBSSList(pDevice, pMgmt->abyCurrBSSID, (PWLAN_IE_SSID)pMgmt->abyCurrSSID); | 1729 | pBSSList = BSSpAddrIsInBSSList(pDevice, pMgmt->abyCurrBSSID, (PWLAN_IE_SSID)pMgmt->abyCurrSSID); |
1730 | if (pBSSList != NULL) { | 1730 | if (pBSSList != NULL) { |
1731 | pDevice->byBBPreEDRSSI = (unsigned char) (~(pBSSList->ldBmAverRange) + 1); | 1731 | pDevice->byBBPreEDRSSI = (unsigned char) (~(pBSSList->ldBmAverRange) + 1); |
1732 | //BBvUpdatePreEDThreshold(pDevice, FALSE); | 1732 | //BBvUpdatePreEDThreshold(pDevice, false); |
1733 | } | 1733 | } |
1734 | } | 1734 | } |
1735 | return; | 1735 | return; |
diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c index a0dc1ffc2a17..baf94ebb88b2 100644 --- a/drivers/staging/vt6655/card.c +++ b/drivers/staging/vt6655/card.c | |||
@@ -365,7 +365,7 @@ s_vSetRSPINF (PSDevice pDevice, CARD_PHY_TYPE ePHYType, void *pvSupportRateIEs, | |||
365 | * Out: | 365 | * Out: |
366 | * none | 366 | * none |
367 | * | 367 | * |
368 | * Return Value: true if succeeded; FALSE if failed. | 368 | * Return Value: true if succeeded; false if failed. |
369 | * | 369 | * |
370 | */ | 370 | */ |
371 | /* | 371 | /* |
@@ -394,14 +394,14 @@ BOOL CARDbSendPacket (void *pDeviceHandler, void *pPacket, CARD_PKT_TYPE ePktTyp | |||
394 | * Out: | 394 | * Out: |
395 | * none | 395 | * none |
396 | * | 396 | * |
397 | * Return Value: true if short preamble; otherwise FALSE | 397 | * Return Value: true if short preamble; otherwise false |
398 | * | 398 | * |
399 | */ | 399 | */ |
400 | BOOL CARDbIsShortPreamble (void *pDeviceHandler) | 400 | BOOL CARDbIsShortPreamble (void *pDeviceHandler) |
401 | { | 401 | { |
402 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 402 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
403 | if (pDevice->byPreambleType == 0) { | 403 | if (pDevice->byPreambleType == 0) { |
404 | return(FALSE); | 404 | return(false); |
405 | } | 405 | } |
406 | return(true); | 406 | return(true); |
407 | } | 407 | } |
@@ -415,7 +415,7 @@ BOOL CARDbIsShortPreamble (void *pDeviceHandler) | |||
415 | * Out: | 415 | * Out: |
416 | * none | 416 | * none |
417 | * | 417 | * |
418 | * Return Value: true if short slot time; otherwise FALSE | 418 | * Return Value: true if short slot time; otherwise false |
419 | * | 419 | * |
420 | */ | 420 | */ |
421 | BOOL CARDbIsShorSlotTime (void *pDeviceHandler) | 421 | BOOL CARDbIsShorSlotTime (void *pDeviceHandler) |
@@ -589,7 +589,7 @@ BOOL CARDbSetPhyParameter (void *pDeviceHandler, CARD_PHY_TYPE ePHYType, unsigne | |||
589 | if (pDevice->bySlot == C_SLOT_SHORT) { | 589 | if (pDevice->bySlot == C_SLOT_SHORT) { |
590 | pDevice->bShortSlotTime = true; | 590 | pDevice->bShortSlotTime = true; |
591 | } else { | 591 | } else { |
592 | pDevice->bShortSlotTime = FALSE; | 592 | pDevice->bShortSlotTime = false; |
593 | } | 593 | } |
594 | BBvSetShortSlotTime(pDevice); | 594 | BBvSetShortSlotTime(pDevice); |
595 | } | 595 | } |
@@ -656,7 +656,7 @@ BOOL CARDbUpdateTSF (void *pDeviceHandler, unsigned char byRxRate, QWORD qwBSSTi | |||
656 | * Out: | 656 | * Out: |
657 | * none | 657 | * none |
658 | * | 658 | * |
659 | * Return Value: true if succeed; otherwise FALSE | 659 | * Return Value: true if succeed; otherwise false |
660 | * | 660 | * |
661 | */ | 661 | */ |
662 | BOOL CARDbSetBeaconPeriod (void *pDeviceHandler, unsigned short wBeaconInterval) | 662 | BOOL CARDbSetBeaconPeriod (void *pDeviceHandler, unsigned short wBeaconInterval) |
@@ -710,7 +710,7 @@ BOOL CARDbSetBeaconPeriod (void *pDeviceHandler, unsigned short wBeaconInterval) | |||
710 | * Out: | 710 | * Out: |
711 | * none | 711 | * none |
712 | * | 712 | * |
713 | * Return Value: true if all data packet complete; otherwise FALSE. | 713 | * Return Value: true if all data packet complete; otherwise false. |
714 | * | 714 | * |
715 | */ | 715 | */ |
716 | BOOL CARDbStopTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType) | 716 | BOOL CARDbStopTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType) |
@@ -734,23 +734,23 @@ BOOL CARDbStopTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType) | |||
734 | if (pDevice->bIsBeaconBufReadySet == true) { | 734 | if (pDevice->bIsBeaconBufReadySet == true) { |
735 | if (pDevice->cbBeaconBufReadySetCnt < WAIT_BEACON_TX_DOWN_TMO) { | 735 | if (pDevice->cbBeaconBufReadySetCnt < WAIT_BEACON_TX_DOWN_TMO) { |
736 | pDevice->cbBeaconBufReadySetCnt ++; | 736 | pDevice->cbBeaconBufReadySetCnt ++; |
737 | return(FALSE); | 737 | return(false); |
738 | } | 738 | } |
739 | } | 739 | } |
740 | pDevice->bIsBeaconBufReadySet = FALSE; | 740 | pDevice->bIsBeaconBufReadySet = false; |
741 | pDevice->cbBeaconBufReadySetCnt = 0; | 741 | pDevice->cbBeaconBufReadySetCnt = 0; |
742 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_TCR, TCR_AUTOBCNTX); | 742 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_TCR, TCR_AUTOBCNTX); |
743 | } | 743 | } |
744 | // wait all TD0 complete | 744 | // wait all TD0 complete |
745 | if (pDevice->bStopTx0Pkt == true) { | 745 | if (pDevice->bStopTx0Pkt == true) { |
746 | if (pDevice->iTDUsed[TYPE_TXDMA0] != 0){ | 746 | if (pDevice->iTDUsed[TYPE_TXDMA0] != 0){ |
747 | return(FALSE); | 747 | return(false); |
748 | } | 748 | } |
749 | } | 749 | } |
750 | // wait all Data TD complete | 750 | // wait all Data TD complete |
751 | if (pDevice->bStopDataPkt == true) { | 751 | if (pDevice->bStopDataPkt == true) { |
752 | if (pDevice->iTDUsed[TYPE_AC0DMA] != 0){ | 752 | if (pDevice->iTDUsed[TYPE_AC0DMA] != 0){ |
753 | return(FALSE); | 753 | return(false); |
754 | } | 754 | } |
755 | } | 755 | } |
756 | 756 | ||
@@ -768,7 +768,7 @@ BOOL CARDbStopTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType) | |||
768 | * Out: | 768 | * Out: |
769 | * none | 769 | * none |
770 | * | 770 | * |
771 | * Return Value: true if success; FALSE if failed. | 771 | * Return Value: true if success; false if failed. |
772 | * | 772 | * |
773 | */ | 773 | */ |
774 | BOOL CARDbStartTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType) | 774 | BOOL CARDbStartTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType) |
@@ -777,18 +777,18 @@ BOOL CARDbStartTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType) | |||
777 | 777 | ||
778 | 778 | ||
779 | if (ePktType == PKT_TYPE_802_11_ALL) { | 779 | if (ePktType == PKT_TYPE_802_11_ALL) { |
780 | pDevice->bStopBeacon = FALSE; | 780 | pDevice->bStopBeacon = false; |
781 | pDevice->bStopTx0Pkt = FALSE; | 781 | pDevice->bStopTx0Pkt = false; |
782 | pDevice->bStopDataPkt = FALSE; | 782 | pDevice->bStopDataPkt = false; |
783 | } else if (ePktType == PKT_TYPE_802_11_BCN) { | 783 | } else if (ePktType == PKT_TYPE_802_11_BCN) { |
784 | pDevice->bStopBeacon = FALSE; | 784 | pDevice->bStopBeacon = false; |
785 | } else if (ePktType == PKT_TYPE_802_11_MNG) { | 785 | } else if (ePktType == PKT_TYPE_802_11_MNG) { |
786 | pDevice->bStopTx0Pkt = FALSE; | 786 | pDevice->bStopTx0Pkt = false; |
787 | } else if (ePktType == PKT_TYPE_802_11_DATA) { | 787 | } else if (ePktType == PKT_TYPE_802_11_DATA) { |
788 | pDevice->bStopDataPkt = FALSE; | 788 | pDevice->bStopDataPkt = false; |
789 | } | 789 | } |
790 | 790 | ||
791 | if ((pDevice->bStopBeacon == FALSE) && | 791 | if ((pDevice->bStopBeacon == false) && |
792 | (pDevice->bBeaconBufReady == true) && | 792 | (pDevice->bBeaconBufReady == true) && |
793 | (pDevice->eOPMode == OP_MODE_ADHOC)) { | 793 | (pDevice->eOPMode == OP_MODE_ADHOC)) { |
794 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_TCR, TCR_AUTOBCNTX); | 794 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_TCR, TCR_AUTOBCNTX); |
@@ -810,7 +810,7 @@ BOOL CARDbStartTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType) | |||
810 | * Out: | 810 | * Out: |
811 | * none | 811 | * none |
812 | * | 812 | * |
813 | * Return Value: true if success; FALSE if failed. | 813 | * Return Value: true if success; false if failed. |
814 | * | 814 | * |
815 | */ | 815 | */ |
816 | BOOL CARDbSetBSSID(void *pDeviceHandler, unsigned char *pbyBSSID, CARD_OP_MODE eOPMode) | 816 | BOOL CARDbSetBSSID(void *pDeviceHandler, unsigned char *pbyBSSID, CARD_OP_MODE eOPMode) |
@@ -831,11 +831,11 @@ BOOL CARDbSetBSSID(void *pDeviceHandler, unsigned char *pbyBSSID, CARD_OP_MODE e | |||
831 | } | 831 | } |
832 | if (eOPMode == OP_MODE_UNKNOWN) { | 832 | if (eOPMode == OP_MODE_UNKNOWN) { |
833 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_RCR, RCR_BSSID); | 833 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_RCR, RCR_BSSID); |
834 | pDevice->bBSSIDFilter = FALSE; | 834 | pDevice->bBSSIDFilter = false; |
835 | pDevice->byRxMode &= ~RCR_BSSID; | 835 | pDevice->byRxMode &= ~RCR_BSSID; |
836 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "wcmd: rx_mode = %x\n", pDevice->byRxMode ); | 836 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "wcmd: rx_mode = %x\n", pDevice->byRxMode ); |
837 | } else { | 837 | } else { |
838 | if (is_zero_ether_addr(pDevice->abyBSSID) == FALSE) { | 838 | if (is_zero_ether_addr(pDevice->abyBSSID) == false) { |
839 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_RCR, RCR_BSSID); | 839 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_RCR, RCR_BSSID); |
840 | pDevice->bBSSIDFilter = true; | 840 | pDevice->bBSSIDFilter = true; |
841 | pDevice->byRxMode |= RCR_BSSID; | 841 | pDevice->byRxMode |= RCR_BSSID; |
@@ -858,7 +858,7 @@ BOOL CARDbSetBSSID(void *pDeviceHandler, unsigned char *pbyBSSID, CARD_OP_MODE e | |||
858 | * Out: | 858 | * Out: |
859 | * none | 859 | * none |
860 | * | 860 | * |
861 | * Return Value: true if success; FALSE if failed. | 861 | * Return Value: true if success; false if failed. |
862 | * | 862 | * |
863 | */ | 863 | */ |
864 | 864 | ||
@@ -879,7 +879,7 @@ BOOL CARDbSetBSSID(void *pDeviceHandler, unsigned char *pbyBSSID, CARD_OP_MODE e | |||
879 | * Out: | 879 | * Out: |
880 | * none | 880 | * none |
881 | * | 881 | * |
882 | * Return Value: true if succeed; otherwise FALSE | 882 | * Return Value: true if succeed; otherwise false |
883 | * | 883 | * |
884 | */ | 884 | */ |
885 | BOOL CARDbSetTxDataRate( | 885 | BOOL CARDbSetTxDataRate( |
@@ -904,7 +904,7 @@ BOOL CARDbSetTxDataRate( | |||
904 | * Out: | 904 | * Out: |
905 | * none | 905 | * none |
906 | * | 906 | * |
907 | * Return Value: true if power down success; otherwise FALSE | 907 | * Return Value: true if power down success; otherwise false |
908 | * | 908 | * |
909 | -*/ | 909 | -*/ |
910 | BOOL | 910 | BOOL |
@@ -926,7 +926,7 @@ CARDbPowerDown( | |||
926 | 926 | ||
927 | for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx ++) { | 927 | for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx ++) { |
928 | if (pDevice->iTDUsed[uIdx] != 0) | 928 | if (pDevice->iTDUsed[uIdx] != 0) |
929 | return FALSE; | 929 | return false; |
930 | } | 930 | } |
931 | 931 | ||
932 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_GO2DOZE); | 932 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_GO2DOZE); |
@@ -943,7 +943,7 @@ CARDbPowerDown( | |||
943 | * Out: | 943 | * Out: |
944 | * none | 944 | * none |
945 | * | 945 | * |
946 | * Return Value: true if success; otherwise FALSE | 946 | * Return Value: true if success; otherwise false |
947 | * | 947 | * |
948 | */ | 948 | */ |
949 | BOOL CARDbRadioPowerOff (void *pDeviceHandler) | 949 | BOOL CARDbRadioPowerOff (void *pDeviceHandler) |
@@ -992,7 +992,7 @@ MACvRegBitsOn(pDevice->PortOffset, MAC_REG_GPIOCTL0, LED_ACTSET); //LED issue | |||
992 | * Out: | 992 | * Out: |
993 | * none | 993 | * none |
994 | * | 994 | * |
995 | * Return Value: true if success; otherwise FALSE | 995 | * Return Value: true if success; otherwise false |
996 | * | 996 | * |
997 | */ | 997 | */ |
998 | BOOL CARDbRadioPowerOn (void *pDeviceHandler) | 998 | BOOL CARDbRadioPowerOn (void *pDeviceHandler) |
@@ -1003,9 +1003,9 @@ printk("chester power on\n"); | |||
1003 | if (pDevice->bRadioControlOff == true){ | 1003 | if (pDevice->bRadioControlOff == true){ |
1004 | if (pDevice->bHWRadioOff == true) printk("chester bHWRadioOff\n"); | 1004 | if (pDevice->bHWRadioOff == true) printk("chester bHWRadioOff\n"); |
1005 | if (pDevice->bRadioControlOff == true) printk("chester bRadioControlOff\n"); | 1005 | if (pDevice->bRadioControlOff == true) printk("chester bRadioControlOff\n"); |
1006 | return FALSE;} | 1006 | return false;} |
1007 | 1007 | ||
1008 | if (pDevice->bRadioOff == FALSE) | 1008 | if (pDevice->bRadioOff == false) |
1009 | { | 1009 | { |
1010 | printk("chester pbRadioOff\n"); | 1010 | printk("chester pbRadioOff\n"); |
1011 | return true;} | 1011 | return true;} |
@@ -1030,7 +1030,7 @@ return true;} | |||
1030 | 1030 | ||
1031 | } | 1031 | } |
1032 | 1032 | ||
1033 | pDevice->bRadioOff = FALSE; | 1033 | pDevice->bRadioOff = false; |
1034 | // 2007-0409-03,<Add> by chester | 1034 | // 2007-0409-03,<Add> by chester |
1035 | printk("chester power on\n"); | 1035 | printk("chester power on\n"); |
1036 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_GPIOCTL0, LED_ACTSET); //LED issue | 1036 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_GPIOCTL0, LED_ACTSET); //LED issue |
@@ -1159,7 +1159,7 @@ CARDbStartMeasure ( | |||
1159 | } | 1159 | } |
1160 | CARDbGetCurrentTSF(pDevice->PortOffset, &qwCurrTSF); | 1160 | CARDbGetCurrentTSF(pDevice->PortOffset, &qwCurrTSF); |
1161 | if (pDevice->bMeasureInProgress == true) { | 1161 | if (pDevice->bMeasureInProgress == true) { |
1162 | pDevice->bMeasureInProgress = FALSE; | 1162 | pDevice->bMeasureInProgress = false; |
1163 | VNSvOutPortB(pDevice->PortOffset + MAC_REG_RCR, pDevice->byOrgRCR); | 1163 | VNSvOutPortB(pDevice->PortOffset + MAC_REG_RCR, pDevice->byOrgRCR); |
1164 | MACvSelectPage1(pDevice->PortOffset); | 1164 | MACvSelectPage1(pDevice->PortOffset); |
1165 | VNSvOutPortD(pDevice->PortOffset + MAC_REG_MAR0, pDevice->dwOrgMAR0); | 1165 | VNSvOutPortD(pDevice->PortOffset + MAC_REG_MAR0, pDevice->dwOrgMAR0); |
@@ -1192,7 +1192,7 @@ CARDbStartMeasure ( | |||
1192 | if (LODWORD(qwCurrTSF) > LODWORD(qwStartTSF)) { | 1192 | if (LODWORD(qwCurrTSF) > LODWORD(qwStartTSF)) { |
1193 | HIDWORD(qwStartTSF)++; | 1193 | HIDWORD(qwStartTSF)++; |
1194 | } | 1194 | } |
1195 | bExpired = FALSE; | 1195 | bExpired = false; |
1196 | break; | 1196 | break; |
1197 | } else { | 1197 | } else { |
1198 | // start at setting start TSF - 1TU(for channel switching) | 1198 | // start at setting start TSF - 1TU(for channel switching) |
@@ -1206,11 +1206,11 @@ CARDbStartMeasure ( | |||
1206 | ((HIDWORD(qwCurrTSF) == HIDWORD(qwStartTSF)) && | 1206 | ((HIDWORD(qwCurrTSF) == HIDWORD(qwStartTSF)) && |
1207 | (LODWORD(qwCurrTSF) < LODWORD(qwStartTSF))) | 1207 | (LODWORD(qwCurrTSF) < LODWORD(qwStartTSF))) |
1208 | ) { | 1208 | ) { |
1209 | bExpired = FALSE; | 1209 | bExpired = false; |
1210 | break; | 1210 | break; |
1211 | } | 1211 | } |
1212 | VNTWIFIbMeasureReport( pDevice->pMgmt, | 1212 | VNTWIFIbMeasureReport( pDevice->pMgmt, |
1213 | FALSE, | 1213 | false, |
1214 | pDevice->pCurrMeasureEID, | 1214 | pDevice->pCurrMeasureEID, |
1215 | MEASURE_MODE_LATE, | 1215 | MEASURE_MODE_LATE, |
1216 | pDevice->byBasicMap, | 1216 | pDevice->byBasicMap, |
@@ -1220,7 +1220,7 @@ CARDbStartMeasure ( | |||
1220 | } else { | 1220 | } else { |
1221 | // hardware do not support measure | 1221 | // hardware do not support measure |
1222 | VNTWIFIbMeasureReport( pDevice->pMgmt, | 1222 | VNTWIFIbMeasureReport( pDevice->pMgmt, |
1223 | FALSE, | 1223 | false, |
1224 | pDevice->pCurrMeasureEID, | 1224 | pDevice->pCurrMeasureEID, |
1225 | MEASURE_MODE_INCAPABLE, | 1225 | MEASURE_MODE_INCAPABLE, |
1226 | pDevice->byBasicMap, | 1226 | pDevice->byBasicMap, |
@@ -1230,7 +1230,7 @@ CARDbStartMeasure ( | |||
1230 | } | 1230 | } |
1231 | } while (pDevice->uNumOfMeasureEIDs != 0); | 1231 | } while (pDevice->uNumOfMeasureEIDs != 0); |
1232 | 1232 | ||
1233 | if (bExpired == FALSE) { | 1233 | if (bExpired == false) { |
1234 | MACvSelectPage1(pDevice->PortOffset); | 1234 | MACvSelectPage1(pDevice->PortOffset); |
1235 | VNSvOutPortD(pDevice->PortOffset + MAC_REG_MSRSTART, LODWORD(qwStartTSF)); | 1235 | VNSvOutPortD(pDevice->PortOffset + MAC_REG_MSRSTART, LODWORD(qwStartTSF)); |
1236 | VNSvOutPortD(pDevice->PortOffset + MAC_REG_MSRSTART + 4, HIDWORD(qwStartTSF)); | 1236 | VNSvOutPortD(pDevice->PortOffset + MAC_REG_MSRSTART + 4, HIDWORD(qwStartTSF)); |
@@ -1325,14 +1325,14 @@ CARDbSetQuiet ( | |||
1325 | if (bResetQuiet == true) { | 1325 | if (bResetQuiet == true) { |
1326 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_MSRCTL, (MSRCTL_QUIETTXCHK | MSRCTL_QUIETEN)); | 1326 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_MSRCTL, (MSRCTL_QUIETTXCHK | MSRCTL_QUIETEN)); |
1327 | for(ii=0;ii<MAX_QUIET_COUNT;ii++) { | 1327 | for(ii=0;ii<MAX_QUIET_COUNT;ii++) { |
1328 | pDevice->sQuiet[ii].bEnable = FALSE; | 1328 | pDevice->sQuiet[ii].bEnable = false; |
1329 | } | 1329 | } |
1330 | pDevice->uQuietEnqueue = 0; | 1330 | pDevice->uQuietEnqueue = 0; |
1331 | pDevice->bEnableFirstQuiet = FALSE; | 1331 | pDevice->bEnableFirstQuiet = false; |
1332 | pDevice->bQuietEnable = FALSE; | 1332 | pDevice->bQuietEnable = false; |
1333 | pDevice->byQuietStartCount = byQuietCount; | 1333 | pDevice->byQuietStartCount = byQuietCount; |
1334 | } | 1334 | } |
1335 | if (pDevice->sQuiet[pDevice->uQuietEnqueue].bEnable == FALSE) { | 1335 | if (pDevice->sQuiet[pDevice->uQuietEnqueue].bEnable == false) { |
1336 | pDevice->sQuiet[pDevice->uQuietEnqueue].bEnable = true; | 1336 | pDevice->sQuiet[pDevice->uQuietEnqueue].bEnable = true; |
1337 | pDevice->sQuiet[pDevice->uQuietEnqueue].byPeriod = byQuietPeriod; | 1337 | pDevice->sQuiet[pDevice->uQuietEnqueue].byPeriod = byQuietPeriod; |
1338 | pDevice->sQuiet[pDevice->uQuietEnqueue].wDuration = wQuietDuration; | 1338 | pDevice->sQuiet[pDevice->uQuietEnqueue].wDuration = wQuietDuration; |
@@ -1387,10 +1387,10 @@ CARDbStartQuiet ( | |||
1387 | } | 1387 | } |
1388 | if (dwStartTime == 0xFFFFFFFF) { | 1388 | if (dwStartTime == 0xFFFFFFFF) { |
1389 | // no more quiet | 1389 | // no more quiet |
1390 | pDevice->bQuietEnable = FALSE; | 1390 | pDevice->bQuietEnable = false; |
1391 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_MSRCTL, (MSRCTL_QUIETTXCHK | MSRCTL_QUIETEN)); | 1391 | MACvRegBitsOff(pDevice->PortOffset, MAC_REG_MSRCTL, (MSRCTL_QUIETTXCHK | MSRCTL_QUIETEN)); |
1392 | } else { | 1392 | } else { |
1393 | if (pDevice->bQuietEnable == FALSE) { | 1393 | if (pDevice->bQuietEnable == false) { |
1394 | // first quiet | 1394 | // first quiet |
1395 | pDevice->byQuietStartCount--; | 1395 | pDevice->byQuietStartCount--; |
1396 | dwNextTime = pDevice->sQuiet[uCurrentQuietIndex].dwStartTime; | 1396 | dwNextTime = pDevice->sQuiet[uCurrentQuietIndex].dwStartTime; |
@@ -1399,7 +1399,7 @@ CARDbStartQuiet ( | |||
1399 | VNSvOutPortW(pDevice->PortOffset + MAC_REG_QUIETINIT, (unsigned short) dwNextTime); | 1399 | VNSvOutPortW(pDevice->PortOffset + MAC_REG_QUIETINIT, (unsigned short) dwNextTime); |
1400 | VNSvOutPortW(pDevice->PortOffset + MAC_REG_QUIETDUR, (unsigned short) pDevice->sQuiet[uCurrentQuietIndex].wDuration); | 1400 | VNSvOutPortW(pDevice->PortOffset + MAC_REG_QUIETDUR, (unsigned short) pDevice->sQuiet[uCurrentQuietIndex].wDuration); |
1401 | if (pDevice->byQuietStartCount == 0) { | 1401 | if (pDevice->byQuietStartCount == 0) { |
1402 | pDevice->bEnableFirstQuiet = FALSE; | 1402 | pDevice->bEnableFirstQuiet = false; |
1403 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_MSRCTL, (MSRCTL_QUIETTXCHK | MSRCTL_QUIETEN)); | 1403 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_MSRCTL, (MSRCTL_QUIETTXCHK | MSRCTL_QUIETEN)); |
1404 | } else { | 1404 | } else { |
1405 | pDevice->bEnableFirstQuiet = true; | 1405 | pDevice->bEnableFirstQuiet = true; |
@@ -1410,8 +1410,8 @@ CARDbStartQuiet ( | |||
1410 | // overlap with previous Quiet | 1410 | // overlap with previous Quiet |
1411 | dwGap = pDevice->dwCurrentQuietEndTime - pDevice->sQuiet[uCurrentQuietIndex].dwStartTime; | 1411 | dwGap = pDevice->dwCurrentQuietEndTime - pDevice->sQuiet[uCurrentQuietIndex].dwStartTime; |
1412 | if (dwGap >= pDevice->sQuiet[uCurrentQuietIndex].wDuration) { | 1412 | if (dwGap >= pDevice->sQuiet[uCurrentQuietIndex].wDuration) { |
1413 | // return FALSE to indicate next quiet expired, should call this function again | 1413 | // return false to indicate next quiet expired, should call this function again |
1414 | return (FALSE); | 1414 | return (false); |
1415 | } | 1415 | } |
1416 | dwDuration = pDevice->sQuiet[uCurrentQuietIndex].wDuration - dwGap; | 1416 | dwDuration = pDevice->sQuiet[uCurrentQuietIndex].wDuration - dwGap; |
1417 | dwGap = 0; | 1417 | dwGap = 0; |
@@ -1431,7 +1431,7 @@ CARDbStartQuiet ( | |||
1431 | pDevice->dwCurrentQuietEndTime += pDevice->sQuiet[uCurrentQuietIndex].wDuration; | 1431 | pDevice->dwCurrentQuietEndTime += pDevice->sQuiet[uCurrentQuietIndex].wDuration; |
1432 | if (pDevice->sQuiet[uCurrentQuietIndex].byPeriod == 0) { | 1432 | if (pDevice->sQuiet[uCurrentQuietIndex].byPeriod == 0) { |
1433 | // not period disable current quiet element | 1433 | // not period disable current quiet element |
1434 | pDevice->sQuiet[uCurrentQuietIndex].bEnable = FALSE; | 1434 | pDevice->sQuiet[uCurrentQuietIndex].bEnable = false; |
1435 | } else { | 1435 | } else { |
1436 | // set next period start time | 1436 | // set next period start time |
1437 | dwNextTime = (unsigned long) pDevice->sQuiet[uCurrentQuietIndex].byPeriod; | 1437 | dwNextTime = (unsigned long) pDevice->sQuiet[uCurrentQuietIndex].byPeriod; |
@@ -1943,7 +1943,7 @@ void CARDvUpdateBasicTopRate (void *pDeviceHandler) | |||
1943 | * Out: | 1943 | * Out: |
1944 | * none | 1944 | * none |
1945 | * | 1945 | * |
1946 | * Return Value: true if succeeded; FALSE if failed. | 1946 | * Return Value: true if succeeded; false if failed. |
1947 | * | 1947 | * |
1948 | */ | 1948 | */ |
1949 | BOOL CARDbAddBasicRate (void *pDeviceHandler, unsigned short wRateIdx) | 1949 | BOOL CARDbAddBasicRate (void *pDeviceHandler, unsigned short wRateIdx) |
@@ -1968,7 +1968,7 @@ BOOL CARDbIsOFDMinBasicRate (void *pDeviceHandler) | |||
1968 | if ((pDevice->wBasicRate) & ((unsigned short)(1<<ii))) | 1968 | if ((pDevice->wBasicRate) & ((unsigned short)(1<<ii))) |
1969 | return true; | 1969 | return true; |
1970 | } | 1970 | } |
1971 | return FALSE; | 1971 | return false; |
1972 | } | 1972 | } |
1973 | 1973 | ||
1974 | unsigned char CARDbyGetPktType (void *pDeviceHandler) | 1974 | unsigned char CARDbyGetPktType (void *pDeviceHandler) |
@@ -2007,7 +2007,7 @@ void CARDvSetLoopbackMode (unsigned long dwIoBase, unsigned short wLoopbackMode) | |||
2007 | case CARD_LB_PHY: | 2007 | case CARD_LB_PHY: |
2008 | break; | 2008 | break; |
2009 | default: | 2009 | default: |
2010 | ASSERT(FALSE); | 2010 | ASSERT(false); |
2011 | break; | 2011 | break; |
2012 | } | 2012 | } |
2013 | // set MAC loopback | 2013 | // set MAC loopback |
@@ -2034,7 +2034,7 @@ BOOL CARDbSoftwareReset (void *pDeviceHandler) | |||
2034 | 2034 | ||
2035 | // reset MAC | 2035 | // reset MAC |
2036 | if (!MACbSafeSoftwareReset(pDevice->PortOffset)) | 2036 | if (!MACbSafeSoftwareReset(pDevice->PortOffset)) |
2037 | return FALSE; | 2037 | return false; |
2038 | 2038 | ||
2039 | return true; | 2039 | return true; |
2040 | } | 2040 | } |
@@ -2089,7 +2089,7 @@ QWORD CARDqGetTSFOffset (unsigned char byRxRate, QWORD qwTSF1, QWORD qwTSF2) | |||
2089 | * Out: | 2089 | * Out: |
2090 | * qwCurrTSF - Current TSF counter | 2090 | * qwCurrTSF - Current TSF counter |
2091 | * | 2091 | * |
2092 | * Return Value: true if success; otherwise FALSE | 2092 | * Return Value: true if success; otherwise false |
2093 | * | 2093 | * |
2094 | */ | 2094 | */ |
2095 | BOOL CARDbGetCurrentTSF (unsigned long dwIoBase, PQWORD pqwCurrTSF) | 2095 | BOOL CARDbGetCurrentTSF (unsigned long dwIoBase, PQWORD pqwCurrTSF) |
@@ -2104,7 +2104,7 @@ BOOL CARDbGetCurrentTSF (unsigned long dwIoBase, PQWORD pqwCurrTSF) | |||
2104 | break; | 2104 | break; |
2105 | } | 2105 | } |
2106 | if (ww == W_MAX_TIMEOUT) | 2106 | if (ww == W_MAX_TIMEOUT) |
2107 | return(FALSE); | 2107 | return(false); |
2108 | VNSvInPortD(dwIoBase + MAC_REG_TSFCNTR, &LODWORD(*pqwCurrTSF)); | 2108 | VNSvInPortD(dwIoBase + MAC_REG_TSFCNTR, &LODWORD(*pqwCurrTSF)); |
2109 | VNSvInPortD(dwIoBase + MAC_REG_TSFCNTR + 4, &HIDWORD(*pqwCurrTSF)); | 2109 | VNSvInPortD(dwIoBase + MAC_REG_TSFCNTR + 4, &HIDWORD(*pqwCurrTSF)); |
2110 | 2110 | ||
diff --git a/drivers/staging/vt6655/channel.c b/drivers/staging/vt6655/channel.c index ca2fa04262e0..2aac9d16ea90 100644 --- a/drivers/staging/vt6655/channel.c +++ b/drivers/staging/vt6655/channel.c | |||
@@ -37,7 +37,7 @@ static int msglevel = MSG_LEVEL_INFO; | |||
37 | 37 | ||
38 | static SChannelTblElement sChannelTbl[CARD_MAX_CHANNEL_TBL + 1] = | 38 | static SChannelTblElement sChannelTbl[CARD_MAX_CHANNEL_TBL + 1] = |
39 | { | 39 | { |
40 | {0, 0, FALSE, 0}, | 40 | {0, 0, false, 0}, |
41 | {1, 2412, true, 0}, | 41 | {1, 2412, true, 0}, |
42 | {2, 2417, true, 0}, | 42 | {2, 2417, true, 0}, |
43 | {3, 2422, true, 0}, | 43 | {3, 2422, true, 0}, |
@@ -366,7 +366,7 @@ static struct | |||
366 | * 16 = 4.9G channel 184 | 366 | * 16 = 4.9G channel 184 |
367 | * ..... | 367 | * ..... |
368 | * Output: true if the specified 5GHz band is allowed to be used, | 368 | * Output: true if the specified 5GHz band is allowed to be used, |
369 | * FALSE otherwise. | 369 | * false otherwise. |
370 | * 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) | 370 | * 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) |
371 | * | 371 | * |
372 | * 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, | 372 | * 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, |
@@ -377,14 +377,14 @@ BOOL is_channel_valid(unsigned int ChannelIndex) | |||
377 | { | 377 | { |
378 | BOOL bValid; | 378 | BOOL bValid; |
379 | 379 | ||
380 | bValid = FALSE; | 380 | bValid = false; |
381 | /* | 381 | /* |
382 | * If Channel Index is invalid, return invalid | 382 | * If Channel Index is invalid, return invalid |
383 | */ | 383 | */ |
384 | if ((ChannelIndex > CB_MAX_CHANNEL) || | 384 | if ((ChannelIndex > CB_MAX_CHANNEL) || |
385 | (ChannelIndex == 0)) | 385 | (ChannelIndex == 0)) |
386 | { | 386 | { |
387 | bValid = FALSE; | 387 | bValid = false; |
388 | goto exit; | 388 | goto exit; |
389 | } | 389 | } |
390 | 390 | ||
@@ -410,7 +410,7 @@ exit: | |||
410 | BOOL channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTable) | 410 | BOOL channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTable) |
411 | { | 411 | { |
412 | if (uCountryCodeIdx >= CCODE_MAX) | 412 | if (uCountryCodeIdx >= CCODE_MAX) |
413 | return (FALSE); | 413 | return (false); |
414 | 414 | ||
415 | memcpy(pbyChannelTable, ChannelRuleTab[uCountryCodeIdx].bChannelIdxList, CB_MAX_CHANNEL); | 415 | memcpy(pbyChannelTable, ChannelRuleTab[uCountryCodeIdx].bChannelIdxList, CB_MAX_CHANNEL); |
416 | 416 | ||
@@ -420,11 +420,11 @@ BOOL channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTab | |||
420 | void init_channel_table(void *pDeviceHandler) | 420 | void init_channel_table(void *pDeviceHandler) |
421 | { | 421 | { |
422 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 422 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
423 | BOOL bMultiBand = FALSE; | 423 | BOOL bMultiBand = false; |
424 | unsigned int ii; | 424 | unsigned int ii; |
425 | 425 | ||
426 | for(ii = 1 ; ii<=CARD_MAX_CHANNEL_TBL ; ii++) { | 426 | for(ii = 1 ; ii<=CARD_MAX_CHANNEL_TBL ; ii++) { |
427 | sChannelTbl[ii].bValid = FALSE; | 427 | sChannelTbl[ii].bValid = false; |
428 | } | 428 | } |
429 | 429 | ||
430 | switch (pDevice->byRFType) { | 430 | switch (pDevice->byRFType) { |
@@ -434,7 +434,7 @@ void init_channel_table(void *pDeviceHandler) | |||
434 | case RF_UW2451 : | 434 | case RF_UW2451 : |
435 | case RF_VT3226 : | 435 | case RF_VT3226 : |
436 | //printk("chester-false\n"); | 436 | //printk("chester-false\n"); |
437 | bMultiBand = FALSE; | 437 | bMultiBand = false; |
438 | break; | 438 | break; |
439 | case RF_AIROHA7230 : | 439 | case RF_AIROHA7230 : |
440 | case RF_UW2452 : | 440 | case RF_UW2452 : |
@@ -522,7 +522,7 @@ unsigned char get_channel_number(void *pDeviceHandler, unsigned char byChannelIn | |||
522 | * @pDeviceHandler: The adapter to be set | 522 | * @pDeviceHandler: The adapter to be set |
523 | * @uConnectionChannel: Channel to be set | 523 | * @uConnectionChannel: Channel to be set |
524 | * | 524 | * |
525 | * Return Value: true if succeeded; FALSE if failed. | 525 | * Return Value: true if succeeded; false if failed. |
526 | * | 526 | * |
527 | */ | 527 | */ |
528 | BOOL set_channel (void *pDeviceHandler, unsigned int uConnectionChannel) | 528 | BOOL set_channel (void *pDeviceHandler, unsigned int uConnectionChannel) |
@@ -535,8 +535,8 @@ BOOL set_channel (void *pDeviceHandler, unsigned int uConnectionChannel) | |||
535 | return bResult; | 535 | return bResult; |
536 | } | 536 | } |
537 | 537 | ||
538 | if (sChannelTbl[uConnectionChannel].bValid == FALSE) { | 538 | if (sChannelTbl[uConnectionChannel].bValid == false) { |
539 | return (FALSE); | 539 | return (false); |
540 | } | 540 | } |
541 | 541 | ||
542 | if ((uConnectionChannel > CB_MAX_CHANNEL_24G) && | 542 | if ((uConnectionChannel > CB_MAX_CHANNEL_24G) && |
@@ -619,13 +619,13 @@ void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE) | |||
619 | if (ePHYType == PHY_TYPE_11A) { | 619 | if (ePHYType == PHY_TYPE_11A) { |
620 | pDevice->bCountryInfo5G = true; | 620 | pDevice->bCountryInfo5G = true; |
621 | for(ii = CB_MAX_CHANNEL_24G + 1 ; ii <= CARD_MAX_CHANNEL_TBL ; ii++) { | 621 | for(ii = CB_MAX_CHANNEL_24G + 1 ; ii <= CARD_MAX_CHANNEL_TBL ; ii++) { |
622 | sChannelTbl[ii].bValid = FALSE; | 622 | sChannelTbl[ii].bValid = false; |
623 | } | 623 | } |
624 | step = 4; | 624 | step = 4; |
625 | } else { | 625 | } else { |
626 | pDevice->bCountryInfo24G = true; | 626 | pDevice->bCountryInfo24G = true; |
627 | for(ii = 1 ; ii <= CB_MAX_CHANNEL_24G ; ii++) { | 627 | for(ii = 1 ; ii <= CB_MAX_CHANNEL_24G ; ii++) { |
628 | sChannelTbl[ii].bValid = FALSE; | 628 | sChannelTbl[ii].bValid = false; |
629 | } | 629 | } |
630 | step = 1; | 630 | step = 1; |
631 | } | 631 | } |
@@ -750,7 +750,7 @@ BOOL get_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex, | |||
750 | { | 750 | { |
751 | 751 | ||
752 | if (uChannelIndex > CB_MAX_CHANNEL) { | 752 | if (uChannelIndex > CB_MAX_CHANNEL) { |
753 | return FALSE; | 753 | return false; |
754 | } | 754 | } |
755 | *pbyChannelNumber = sChannelTbl[uChannelIndex].byChannelNumber; | 755 | *pbyChannelNumber = sChannelTbl[uChannelIndex].byChannelNumber; |
756 | *pbyMap = sChannelTbl[uChannelIndex].byMAP; | 756 | *pbyMap = sChannelTbl[uChannelIndex].byMAP; |
diff --git a/drivers/staging/vt6655/datarate.c b/drivers/staging/vt6655/datarate.c index 5efc724824b7..acdc45afea53 100644 --- a/drivers/staging/vt6655/datarate.c +++ b/drivers/staging/vt6655/datarate.c | |||
@@ -317,7 +317,7 @@ PSDevice pDevice = (PSDevice) pDeviceHandler; | |||
317 | unsigned short wIdxDownRate = 0; | 317 | unsigned short wIdxDownRate = 0; |
318 | unsigned int ii; | 318 | unsigned int ii; |
319 | //unsigned long dwRateTable[MAX_RATE] = {1, 2, 5, 11, 6, 9, 12, 18, 24, 36, 48, 54}; | 319 | //unsigned long dwRateTable[MAX_RATE] = {1, 2, 5, 11, 6, 9, 12, 18, 24, 36, 48, 54}; |
320 | BOOL bAutoRate[MAX_RATE] = {true,true,true,true,FALSE,FALSE,true,true,true,true,true,true}; | 320 | BOOL bAutoRate[MAX_RATE] = {true,true,true,true,false,false,true,true,true,true,true,true}; |
321 | unsigned long dwThroughputTbl[MAX_RATE] = {10, 20, 55, 110, 60, 90, 120, 180, 240, 360, 480, 540}; | 321 | unsigned long dwThroughputTbl[MAX_RATE] = {10, 20, 55, 110, 60, 90, 120, 180, 240, 360, 480, 540}; |
322 | unsigned long dwThroughput = 0; | 322 | unsigned long dwThroughput = 0; |
323 | unsigned short wIdxUpRate = 0; | 323 | unsigned short wIdxUpRate = 0; |
@@ -350,7 +350,7 @@ BOOL bAutoRate[MAX_RATE] = {true,true,true,true,FALSE,FALSE,true,t | |||
350 | wIdxUpRate = (unsigned short) ii; | 350 | wIdxUpRate = (unsigned short) ii; |
351 | } | 351 | } |
352 | } else { | 352 | } else { |
353 | bAutoRate[ii] = FALSE; | 353 | bAutoRate[ii] = false; |
354 | } | 354 | } |
355 | } | 355 | } |
356 | 356 | ||
diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index ada29749b03c..64ceb23db001 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h | |||
@@ -891,7 +891,7 @@ inline static BOOL device_get_ip(PSDevice pInfo) { | |||
891 | return true; | 891 | return true; |
892 | } | 892 | } |
893 | } | 893 | } |
894 | return FALSE; | 894 | return false; |
895 | } | 895 | } |
896 | 896 | ||
897 | 897 | ||
diff --git a/drivers/staging/vt6655/device_cfg.h b/drivers/staging/vt6655/device_cfg.h index 8a070c638fc1..408edc27075f 100644 --- a/drivers/staging/vt6655/device_cfg.h +++ b/drivers/staging/vt6655/device_cfg.h | |||
@@ -39,10 +39,6 @@ struct _version { | |||
39 | unsigned char build; | 39 | unsigned char build; |
40 | } version_t, *pversion_t; | 40 | } version_t, *pversion_t; |
41 | 41 | ||
42 | #ifndef FALSE | ||
43 | #define FALSE (0) | ||
44 | #endif | ||
45 | |||
46 | #define VID_TABLE_SIZE 64 | 42 | #define VID_TABLE_SIZE 64 |
47 | #define MCAST_TABLE_SIZE 64 | 43 | #define MCAST_TABLE_SIZE 64 |
48 | #define MCAM_SIZE 32 | 44 | #define MCAM_SIZE 32 |
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 4f9d0a57790e..2acc3857c862 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c | |||
@@ -396,7 +396,7 @@ device_set_bool_opt(unsigned int *opt, int val,BOOL def,u32 flag, char* name,cha | |||
396 | *opt|=(def ? flag : 0); | 396 | *opt|=(def ? flag : 0); |
397 | } else { | 397 | } else { |
398 | DBG_PRT(MSG_LEVEL_INFO, KERN_NOTICE "%s: set parameter %s to %s\n", | 398 | DBG_PRT(MSG_LEVEL_INFO, KERN_NOTICE "%s: set parameter %s to %s\n", |
399 | devname,name , val ? "true" : "FALSE"); | 399 | devname,name , val ? "true" : "false"); |
400 | *opt|=(val ? flag : 0); | 400 | *opt|=(val ? flag : 0); |
401 | } | 401 | } |
402 | } | 402 | } |
@@ -507,7 +507,7 @@ static void s_vCompleteCurrentMeasure (PSDevice pDevice, unsigned char byResult) | |||
507 | ); | 507 | ); |
508 | } else { | 508 | } else { |
509 | VNTWIFIbMeasureReport( pDevice->pMgmt, | 509 | VNTWIFIbMeasureReport( pDevice->pMgmt, |
510 | FALSE, | 510 | false, |
511 | pDevice->pCurrMeasureEID, | 511 | pDevice->pCurrMeasureEID, |
512 | byResult, | 512 | byResult, |
513 | pDevice->byBasicMap, | 513 | pDevice->byBasicMap, |
@@ -543,10 +543,10 @@ static void device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType) | |||
543 | MACbSoftwareReset(pDevice->PortOffset); | 543 | MACbSoftwareReset(pDevice->PortOffset); |
544 | // force CCK | 544 | // force CCK |
545 | pDevice->bCCK = true; | 545 | pDevice->bCCK = true; |
546 | pDevice->bAES = FALSE; | 546 | pDevice->bAES = false; |
547 | pDevice->bProtectMode = FALSE; //Only used in 11g type, sync with ERP IE | 547 | pDevice->bProtectMode = false; //Only used in 11g type, sync with ERP IE |
548 | pDevice->bNonERPPresent = FALSE; | 548 | pDevice->bNonERPPresent = false; |
549 | pDevice->bBarkerPreambleMd = FALSE; | 549 | pDevice->bBarkerPreambleMd = false; |
550 | pDevice->wCurrentRate = RATE_1M; | 550 | pDevice->wCurrentRate = RATE_1M; |
551 | pDevice->byTopOFDMBasicRate = RATE_24M; | 551 | pDevice->byTopOFDMBasicRate = RATE_24M; |
552 | pDevice->byTopCCKBasicRate = RATE_1M; | 552 | pDevice->byTopCCKBasicRate = RATE_1M; |
@@ -574,7 +574,7 @@ static void device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType) | |||
574 | if (byValue & EEP_ANTINV) | 574 | if (byValue & EEP_ANTINV) |
575 | pDevice->bTxRxAntInv = true; | 575 | pDevice->bTxRxAntInv = true; |
576 | else | 576 | else |
577 | pDevice->bTxRxAntInv = FALSE; | 577 | pDevice->bTxRxAntInv = false; |
578 | #ifdef PLICE_DEBUG | 578 | #ifdef PLICE_DEBUG |
579 | //printk("init_register:TxRxAntInv is %d,byValue is %d\n",pDevice->bTxRxAntInv,byValue); | 579 | //printk("init_register:TxRxAntInv is %d,byValue is %d\n",pDevice->bTxRxAntInv,byValue); |
580 | #endif | 580 | #endif |
@@ -605,14 +605,14 @@ static void device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType) | |||
605 | byValue1 = SROMbyReadEmbedded(pDevice->PortOffset, EEP_OFS_ANTENNA); | 605 | byValue1 = SROMbyReadEmbedded(pDevice->PortOffset, EEP_OFS_ANTENNA); |
606 | // if (pDevice->bDiversityRegCtlON) | 606 | // if (pDevice->bDiversityRegCtlON) |
607 | if((byValue1&0x08)==0) | 607 | if((byValue1&0x08)==0) |
608 | pDevice->bDiversityEnable = FALSE;//SROMbyReadEmbedded(pDevice->PortOffset, 0x50); | 608 | pDevice->bDiversityEnable = false;//SROMbyReadEmbedded(pDevice->PortOffset, 0x50); |
609 | else | 609 | else |
610 | pDevice->bDiversityEnable = true; | 610 | pDevice->bDiversityEnable = true; |
611 | #ifdef PLICE_DEBUG | 611 | #ifdef PLICE_DEBUG |
612 | //printk("aux |main antenna: RxAntennaMode is %d\n",pDevice->byRxAntennaMode); | 612 | //printk("aux |main antenna: RxAntennaMode is %d\n",pDevice->byRxAntennaMode); |
613 | #endif | 613 | #endif |
614 | } else { | 614 | } else { |
615 | pDevice->bDiversityEnable = FALSE; | 615 | pDevice->bDiversityEnable = false; |
616 | pDevice->byAntennaCount = 1; | 616 | pDevice->byAntennaCount = 1; |
617 | pDevice->dwTxAntennaSel = 0; | 617 | pDevice->dwTxAntennaSel = 0; |
618 | pDevice->dwRxAntennaSel = 0; | 618 | pDevice->dwRxAntennaSel = 0; |
@@ -640,7 +640,7 @@ byValue1 = SROMbyReadEmbedded(pDevice->PortOffset, EEP_OFS_ANTENNA); | |||
640 | //2008-8-4 <add> by chester | 640 | //2008-8-4 <add> by chester |
641 | //zonetype initial | 641 | //zonetype initial |
642 | pDevice->byOriginalZonetype = pDevice->abyEEPROM[EEP_OFS_ZONETYPE]; | 642 | pDevice->byOriginalZonetype = pDevice->abyEEPROM[EEP_OFS_ZONETYPE]; |
643 | zonetype = Config_FileOperation(pDevice,FALSE,NULL); | 643 | zonetype = Config_FileOperation(pDevice,false,NULL); |
644 | if (zonetype >= 0) { //read zonetype file ok! | 644 | if (zonetype >= 0) { //read zonetype file ok! |
645 | if ((zonetype == 0)&& | 645 | if ((zonetype == 0)&& |
646 | (pDevice->abyEEPROM[EEP_OFS_ZONETYPE] !=0x00)){ //for USA | 646 | (pDevice->abyEEPROM[EEP_OFS_ZONETYPE] !=0x00)){ //for USA |
@@ -682,7 +682,7 @@ else | |||
682 | pDevice->byRFType &= RF_MASK; | 682 | pDevice->byRFType &= RF_MASK; |
683 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->byRFType = %x\n", pDevice->byRFType); | 683 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->byRFType = %x\n", pDevice->byRFType); |
684 | 684 | ||
685 | if (pDevice->bZoneRegExist == FALSE) { | 685 | if (pDevice->bZoneRegExist == false) { |
686 | pDevice->byZoneType = pDevice->abyEEPROM[EEP_OFS_ZONETYPE]; | 686 | pDevice->byZoneType = pDevice->abyEEPROM[EEP_OFS_ZONETYPE]; |
687 | } | 687 | } |
688 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->byZoneType = %x\n", pDevice->byZoneType); | 688 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->byZoneType = %x\n", pDevice->byZoneType); |
@@ -782,10 +782,10 @@ else | |||
782 | VNTWIFIbConfigPhyMode(pDevice->pMgmt, PHY_TYPE_11G); | 782 | VNTWIFIbConfigPhyMode(pDevice->pMgmt, PHY_TYPE_11G); |
783 | VNTWIFIbConfigPhyMode(pDevice->pMgmt, PHY_TYPE_AUTO); | 783 | VNTWIFIbConfigPhyMode(pDevice->pMgmt, PHY_TYPE_AUTO); |
784 | 784 | ||
785 | pDevice->bRadioOff = FALSE; | 785 | pDevice->bRadioOff = false; |
786 | 786 | ||
787 | pDevice->byRadioCtl = SROMbyReadEmbedded(pDevice->PortOffset, EEP_OFS_RADIOCTL); | 787 | pDevice->byRadioCtl = SROMbyReadEmbedded(pDevice->PortOffset, EEP_OFS_RADIOCTL); |
788 | pDevice->bHWRadioOff = FALSE; | 788 | pDevice->bHWRadioOff = false; |
789 | 789 | ||
790 | if (pDevice->byRadioCtl & EEP_RADIOCTL_ENABLE) { | 790 | if (pDevice->byRadioCtl & EEP_RADIOCTL_ENABLE) { |
791 | // Get GPIO | 791 | // Get GPIO |
@@ -793,7 +793,7 @@ else | |||
793 | //2008-4-14 <add> by chester for led issue | 793 | //2008-4-14 <add> by chester for led issue |
794 | #ifdef FOR_LED_ON_NOTEBOOK | 794 | #ifdef FOR_LED_ON_NOTEBOOK |
795 | if (pDevice->byGPIO & GPIO0_DATA){pDevice->bHWRadioOff = true;} | 795 | if (pDevice->byGPIO & GPIO0_DATA){pDevice->bHWRadioOff = true;} |
796 | if ( !(pDevice->byGPIO & GPIO0_DATA)){pDevice->bHWRadioOff = FALSE;} | 796 | if ( !(pDevice->byGPIO & GPIO0_DATA)){pDevice->bHWRadioOff = false;} |
797 | 797 | ||
798 | } | 798 | } |
799 | if ( (pDevice->bRadioControlOff == true)) { | 799 | if ( (pDevice->bRadioControlOff == true)) { |
@@ -946,7 +946,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent) | |||
946 | if (bFirst) { | 946 | if (bFirst) { |
947 | printk(KERN_NOTICE "%s Ver. %s\n",DEVICE_FULL_DRV_NAM, DEVICE_VERSION); | 947 | printk(KERN_NOTICE "%s Ver. %s\n",DEVICE_FULL_DRV_NAM, DEVICE_VERSION); |
948 | printk(KERN_NOTICE "Copyright (c) 2003 VIA Networking Technologies, Inc.\n"); | 948 | printk(KERN_NOTICE "Copyright (c) 2003 VIA Networking Technologies, Inc.\n"); |
949 | bFirst=FALSE; | 949 | bFirst=false; |
950 | } | 950 | } |
951 | 951 | ||
952 | if (!vt6655_init_info(pcid, &pDevice, pChip_info)) { | 952 | if (!vt6655_init_info(pcid, &pDevice, pChip_info)) { |
@@ -964,7 +964,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent) | |||
964 | #ifdef DEBUG | 964 | #ifdef DEBUG |
965 | printk("Before get pci_info memaddr is %x\n",pDevice->memaddr); | 965 | printk("Before get pci_info memaddr is %x\n",pDevice->memaddr); |
966 | #endif | 966 | #endif |
967 | if (device_get_pci_info(pDevice,pcid) == FALSE) { | 967 | if (device_get_pci_info(pDevice,pcid) == false) { |
968 | printk(KERN_ERR DEVICE_NAME ": Failed to find PCI device.\n"); | 968 | printk(KERN_ERR DEVICE_NAME ": Failed to find PCI device.\n"); |
969 | device_free_info(pDevice); | 969 | device_free_info(pDevice); |
970 | return -ENODEV; | 970 | return -ENODEV; |
@@ -1280,7 +1280,7 @@ static BOOL device_init_rings(PSDevice pDevice) { | |||
1280 | 1280 | ||
1281 | if (vir_pool == NULL) { | 1281 | if (vir_pool == NULL) { |
1282 | DBG_PRT(MSG_LEVEL_ERR,KERN_ERR "%s : allocate desc dma memory failed\n", pDevice->dev->name); | 1282 | DBG_PRT(MSG_LEVEL_ERR,KERN_ERR "%s : allocate desc dma memory failed\n", pDevice->dev->name); |
1283 | return FALSE; | 1283 | return false; |
1284 | } | 1284 | } |
1285 | 1285 | ||
1286 | memset(vir_pool, 0, | 1286 | memset(vir_pool, 0, |
@@ -1315,7 +1315,7 @@ static BOOL device_init_rings(PSDevice pDevice) { | |||
1315 | pDevice->sOpts.nTxDescs[1] * sizeof(STxDesc), | 1315 | pDevice->sOpts.nTxDescs[1] * sizeof(STxDesc), |
1316 | vir_pool, pDevice->pool_dma | 1316 | vir_pool, pDevice->pool_dma |
1317 | ); | 1317 | ); |
1318 | return FALSE; | 1318 | return false; |
1319 | } | 1319 | } |
1320 | 1320 | ||
1321 | memset(pDevice->tx0_bufs, 0, | 1321 | memset(pDevice->tx0_bufs, 0, |
@@ -1634,7 +1634,7 @@ static BOOL device_alloc_rx_buf(PSDevice pDevice, PSRxDesc pRD) { | |||
1634 | //printk("device_alloc_rx_buf:skb is %x\n",pRDInfo->skb); | 1634 | //printk("device_alloc_rx_buf:skb is %x\n",pRDInfo->skb); |
1635 | #endif | 1635 | #endif |
1636 | if (pRDInfo->skb==NULL) | 1636 | if (pRDInfo->skb==NULL) |
1637 | return FALSE; | 1637 | return false; |
1638 | ASSERT(pRDInfo->skb); | 1638 | ASSERT(pRDInfo->skb); |
1639 | pRDInfo->skb->dev = pDevice->dev; | 1639 | pRDInfo->skb->dev = pDevice->dev; |
1640 | pRDInfo->skb_dma = pci_map_single(pDevice->pcid, skb_tail_pointer(pRDInfo->skb), | 1640 | pRDInfo->skb_dma = pci_map_single(pDevice->pcid, skb_tail_pointer(pRDInfo->skb), |
@@ -1655,7 +1655,7 @@ BOOL device_alloc_frag_buf(PSDevice pDevice, PSDeFragControlBlock pDeF) { | |||
1655 | 1655 | ||
1656 | pDeF->skb = dev_alloc_skb((int)pDevice->rx_buf_sz); | 1656 | pDeF->skb = dev_alloc_skb((int)pDevice->rx_buf_sz); |
1657 | if (pDeF->skb == NULL) | 1657 | if (pDeF->skb == NULL) |
1658 | return FALSE; | 1658 | return false; |
1659 | ASSERT(pDeF->skb); | 1659 | ASSERT(pDeF->skb); |
1660 | pDeF->skb->dev = pDevice->dev; | 1660 | pDeF->skb->dev = pDevice->dev; |
1661 | 1661 | ||
@@ -1666,7 +1666,7 @@ BOOL device_alloc_frag_buf(PSDevice pDevice, PSDeFragControlBlock pDeF) { | |||
1666 | 1666 | ||
1667 | static int device_tx_srv(PSDevice pDevice, unsigned int uIdx) { | 1667 | static int device_tx_srv(PSDevice pDevice, unsigned int uIdx) { |
1668 | PSTxDesc pTD; | 1668 | PSTxDesc pTD; |
1669 | BOOL bFull=FALSE; | 1669 | BOOL bFull=false; |
1670 | int works = 0; | 1670 | int works = 0; |
1671 | unsigned char byTsr0; | 1671 | unsigned char byTsr0; |
1672 | unsigned char byTsr1; | 1672 | unsigned char byTsr1; |
@@ -1786,7 +1786,7 @@ static int device_tx_srv(PSDevice pDevice, unsigned int uIdx) { | |||
1786 | bFull = true; | 1786 | bFull = true; |
1787 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " AC0DMA is Full = %d\n", pDevice->iTDUsed[uIdx]); | 1787 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " AC0DMA is Full = %d\n", pDevice->iTDUsed[uIdx]); |
1788 | } | 1788 | } |
1789 | if (netif_queue_stopped(pDevice->dev) && (bFull==FALSE)){ | 1789 | if (netif_queue_stopped(pDevice->dev) && (bFull==false)){ |
1790 | netif_wake_queue(pDevice->dev); | 1790 | netif_wake_queue(pDevice->dev); |
1791 | } | 1791 | } |
1792 | } | 1792 | } |
@@ -1807,7 +1807,7 @@ static void device_error(PSDevice pDevice, unsigned short status) { | |||
1807 | netif_stop_queue(pDevice->dev); | 1807 | netif_stop_queue(pDevice->dev); |
1808 | del_timer(&pDevice->sTimerCommand); | 1808 | del_timer(&pDevice->sTimerCommand); |
1809 | del_timer(&(pDevice->pMgmt->sTimerSecondCallback)); | 1809 | del_timer(&(pDevice->pMgmt->sTimerSecondCallback)); |
1810 | pDevice->bCmdRunning = FALSE; | 1810 | pDevice->bCmdRunning = false; |
1811 | MACbShutdown(pDevice->PortOffset); | 1811 | MACbShutdown(pDevice->PortOffset); |
1812 | return; | 1812 | return; |
1813 | } | 1813 | } |
@@ -1917,8 +1917,8 @@ static int device_open(struct net_device *dev) { | |||
1917 | wpa_Result.proto = 0; | 1917 | wpa_Result.proto = 0; |
1918 | wpa_Result.key_mgmt = 0; | 1918 | wpa_Result.key_mgmt = 0; |
1919 | wpa_Result.eap_type = 0; | 1919 | wpa_Result.eap_type = 0; |
1920 | wpa_Result.authenticated = FALSE; | 1920 | wpa_Result.authenticated = false; |
1921 | pDevice->fWPA_Authened = FALSE; | 1921 | pDevice->fWPA_Authened = false; |
1922 | #endif | 1922 | #endif |
1923 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "call device init rd0 ring\n"); | 1923 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "call device init rd0 ring\n"); |
1924 | device_init_rd0_ring(pDevice); | 1924 | device_init_rd0_ring(pDevice); |
@@ -1983,16 +1983,16 @@ DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "call device_init_registers\n"); | |||
1983 | 1983 | ||
1984 | #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT | 1984 | #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT |
1985 | /* | 1985 | /* |
1986 | pDevice->bwextstep0 = FALSE; | 1986 | pDevice->bwextstep0 = false; |
1987 | pDevice->bwextstep1 = FALSE; | 1987 | pDevice->bwextstep1 = false; |
1988 | pDevice->bwextstep2 = FALSE; | 1988 | pDevice->bwextstep2 = false; |
1989 | pDevice->bwextstep3 = FALSE; | 1989 | pDevice->bwextstep3 = false; |
1990 | */ | 1990 | */ |
1991 | pDevice->bwextcount=0; | 1991 | pDevice->bwextcount=0; |
1992 | pDevice->bWPASuppWextEnabled = FALSE; | 1992 | pDevice->bWPASuppWextEnabled = false; |
1993 | #endif | 1993 | #endif |
1994 | pDevice->byReAssocCount = 0; | 1994 | pDevice->byReAssocCount = 0; |
1995 | pDevice->bWPADEVUp = FALSE; | 1995 | pDevice->bWPADEVUp = false; |
1996 | // Patch: if WEP key already set by iwconfig but device not yet open | 1996 | // Patch: if WEP key already set by iwconfig but device not yet open |
1997 | if ((pDevice->bEncryptionEnable == true) && (pDevice->bTransmitKey == true)) { | 1997 | if ((pDevice->bEncryptionEnable == true) && (pDevice->bTransmitKey == true)) { |
1998 | KeybSetDefaultKey(&(pDevice->sKey), | 1998 | KeybSetDefaultKey(&(pDevice->sKey), |
@@ -2055,12 +2055,12 @@ static int device_close(struct net_device *dev) { | |||
2055 | tasklet_kill(&pDevice->RxMngWorkItem); | 2055 | tasklet_kill(&pDevice->RxMngWorkItem); |
2056 | #endif | 2056 | #endif |
2057 | netif_stop_queue(dev); | 2057 | netif_stop_queue(dev); |
2058 | pDevice->bCmdRunning = FALSE; | 2058 | pDevice->bCmdRunning = false; |
2059 | MACbShutdown(pDevice->PortOffset); | 2059 | MACbShutdown(pDevice->PortOffset); |
2060 | MACbSoftwareReset(pDevice->PortOffset); | 2060 | MACbSoftwareReset(pDevice->PortOffset); |
2061 | CARDbRadioPowerOff(pDevice); | 2061 | CARDbRadioPowerOff(pDevice); |
2062 | 2062 | ||
2063 | pDevice->bLinkPass = FALSE; | 2063 | pDevice->bLinkPass = false; |
2064 | memset(pMgmt->abyCurrBSSID, 0, 6); | 2064 | memset(pMgmt->abyCurrBSSID, 0, 6); |
2065 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 2065 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
2066 | device_free_td0_ring(pDevice); | 2066 | device_free_td0_ring(pDevice); |
@@ -2124,7 +2124,7 @@ BOOL device_dma0_xmit(PSDevice pDevice, struct sk_buff *skb, unsigned int uNodeI | |||
2124 | unsigned int cbFrameBodySize; | 2124 | unsigned int cbFrameBodySize; |
2125 | unsigned int uMACfragNum; | 2125 | unsigned int uMACfragNum; |
2126 | unsigned char byPktType; | 2126 | unsigned char byPktType; |
2127 | BOOL bNeedEncryption = FALSE; | 2127 | BOOL bNeedEncryption = false; |
2128 | PSKeyItem pTransmitKey = NULL; | 2128 | PSKeyItem pTransmitKey = NULL; |
2129 | unsigned int cbHeaderSize; | 2129 | unsigned int cbHeaderSize; |
2130 | unsigned int ii; | 2130 | unsigned int ii; |
@@ -2134,20 +2134,20 @@ BOOL device_dma0_xmit(PSDevice pDevice, struct sk_buff *skb, unsigned int uNodeI | |||
2134 | 2134 | ||
2135 | if (pDevice->bStopTx0Pkt == true) { | 2135 | if (pDevice->bStopTx0Pkt == true) { |
2136 | dev_kfree_skb_irq(skb); | 2136 | dev_kfree_skb_irq(skb); |
2137 | return FALSE; | 2137 | return false; |
2138 | }; | 2138 | }; |
2139 | 2139 | ||
2140 | if (AVAIL_TD(pDevice, TYPE_TXDMA0) <= 0) { | 2140 | if (AVAIL_TD(pDevice, TYPE_TXDMA0) <= 0) { |
2141 | dev_kfree_skb_irq(skb); | 2141 | dev_kfree_skb_irq(skb); |
2142 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_dma0_xmit, td0 <=0\n"); | 2142 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_dma0_xmit, td0 <=0\n"); |
2143 | return FALSE; | 2143 | return false; |
2144 | } | 2144 | } |
2145 | 2145 | ||
2146 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { | 2146 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { |
2147 | if (pDevice->uAssocCount == 0) { | 2147 | if (pDevice->uAssocCount == 0) { |
2148 | dev_kfree_skb_irq(skb); | 2148 | dev_kfree_skb_irq(skb); |
2149 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_dma0_xmit, assocCount = 0\n"); | 2149 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_dma0_xmit, assocCount = 0\n"); |
2150 | return FALSE; | 2150 | return false; |
2151 | } | 2151 | } |
2152 | } | 2152 | } |
2153 | 2153 | ||
@@ -2166,7 +2166,7 @@ BOOL device_dma0_xmit(PSDevice pDevice, struct sk_buff *skb, unsigned int uNodeI | |||
2166 | 2166 | ||
2167 | if ( uMACfragNum > AVAIL_TD(pDevice, TYPE_TXDMA0)) { | 2167 | if ( uMACfragNum > AVAIL_TD(pDevice, TYPE_TXDMA0)) { |
2168 | dev_kfree_skb_irq(skb); | 2168 | dev_kfree_skb_irq(skb); |
2169 | return FALSE; | 2169 | return false; |
2170 | } | 2170 | } |
2171 | byPktType = (unsigned char)pDevice->byPacketType; | 2171 | byPktType = (unsigned char)pDevice->byPacketType; |
2172 | 2172 | ||
@@ -2239,7 +2239,7 @@ BOOL device_dma0_xmit(PSDevice pDevice, struct sk_buff *skb, unsigned int uNodeI | |||
2239 | MACbPSWakeup(pDevice->PortOffset); | 2239 | MACbPSWakeup(pDevice->PortOffset); |
2240 | } | 2240 | } |
2241 | 2241 | ||
2242 | pDevice->bPWBitOn = FALSE; | 2242 | pDevice->bPWBitOn = false; |
2243 | 2243 | ||
2244 | pLastTD = pHeadTD; | 2244 | pLastTD = pHeadTD; |
2245 | for (ii = 0; ii < uMACfragNum; ii++) { | 2245 | for (ii = 0; ii < uMACfragNum; ii++) { |
@@ -2279,19 +2279,19 @@ static int device_xmit(struct sk_buff *skb, struct net_device *dev) { | |||
2279 | unsigned int cbFrameBodySize; | 2279 | unsigned int cbFrameBodySize; |
2280 | unsigned char byPktType; | 2280 | unsigned char byPktType; |
2281 | unsigned int cbHeaderSize; | 2281 | unsigned int cbHeaderSize; |
2282 | BOOL bNeedEncryption = FALSE; | 2282 | BOOL bNeedEncryption = false; |
2283 | PSKeyItem pTransmitKey = NULL; | 2283 | PSKeyItem pTransmitKey = NULL; |
2284 | SKeyItem STempKey; | 2284 | SKeyItem STempKey; |
2285 | unsigned int ii; | 2285 | unsigned int ii; |
2286 | BOOL bTKIP_UseGTK = FALSE; | 2286 | BOOL bTKIP_UseGTK = false; |
2287 | BOOL bNeedDeAuth = FALSE; | 2287 | BOOL bNeedDeAuth = false; |
2288 | unsigned char *pbyBSSID; | 2288 | unsigned char *pbyBSSID; |
2289 | BOOL bNodeExist = FALSE; | 2289 | BOOL bNodeExist = false; |
2290 | 2290 | ||
2291 | 2291 | ||
2292 | 2292 | ||
2293 | spin_lock_irq(&pDevice->lock); | 2293 | spin_lock_irq(&pDevice->lock); |
2294 | if (pDevice->bLinkPass == FALSE) { | 2294 | if (pDevice->bLinkPass == false) { |
2295 | dev_kfree_skb_irq(skb); | 2295 | dev_kfree_skb_irq(skb); |
2296 | spin_unlock_irq(&pDevice->lock); | 2296 | spin_unlock_irq(&pDevice->lock); |
2297 | return 0; | 2297 | return 0; |
@@ -2346,7 +2346,7 @@ static int device_xmit(struct sk_buff *skb, struct net_device *dev) { | |||
2346 | } | 2346 | } |
2347 | } | 2347 | } |
2348 | 2348 | ||
2349 | if (bNodeExist == FALSE) { | 2349 | if (bNodeExist == false) { |
2350 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_DEBUG"Unknown STA not found in node DB \n"); | 2350 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_DEBUG"Unknown STA not found in node DB \n"); |
2351 | dev_kfree_skb_irq(skb); | 2351 | dev_kfree_skb_irq(skb); |
2352 | spin_unlock_irq(&pDevice->lock); | 2352 | spin_unlock_irq(&pDevice->lock); |
@@ -2375,7 +2375,7 @@ static int device_xmit(struct sk_buff *skb, struct net_device *dev) { | |||
2375 | (pDevice->pMgmt->eCurrState == WMAC_STATE_ASSOC)) { | 2375 | (pDevice->pMgmt->eCurrState == WMAC_STATE_ASSOC)) { |
2376 | pbyBSSID = pDevice->abyBSSID; | 2376 | pbyBSSID = pDevice->abyBSSID; |
2377 | // get pairwise key | 2377 | // get pairwise key |
2378 | if (KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, PAIRWISE_KEY, &pTransmitKey) == FALSE) { | 2378 | if (KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, PAIRWISE_KEY, &pTransmitKey) == false) { |
2379 | // get group key | 2379 | // get group key |
2380 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == true) { | 2380 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == true) { |
2381 | bTKIP_UseGTK = true; | 2381 | bTKIP_UseGTK = true; |
@@ -2400,7 +2400,7 @@ static int device_xmit(struct sk_buff *skb, struct net_device *dev) { | |||
2400 | } | 2400 | } |
2401 | // get group key | 2401 | // get group key |
2402 | pbyBSSID = pDevice->abyBroadcastAddr; | 2402 | pbyBSSID = pDevice->abyBroadcastAddr; |
2403 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == FALSE) { | 2403 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == false) { |
2404 | pTransmitKey = NULL; | 2404 | pTransmitKey = NULL; |
2405 | if (pDevice->pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) { | 2405 | if (pDevice->pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) { |
2406 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_DEBUG"IBSS and KEY is NULL. [%d]\n", pDevice->pMgmt->eCurrMode); | 2406 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_DEBUG"IBSS and KEY is NULL. [%d]\n", pDevice->pMgmt->eCurrMode); |
@@ -2411,7 +2411,7 @@ static int device_xmit(struct sk_buff *skb, struct net_device *dev) { | |||
2411 | bTKIP_UseGTK = true; | 2411 | bTKIP_UseGTK = true; |
2412 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_DEBUG"Get GTK.\n"); | 2412 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_DEBUG"Get GTK.\n"); |
2413 | } | 2413 | } |
2414 | } while(FALSE); | 2414 | } while(false); |
2415 | } | 2415 | } |
2416 | 2416 | ||
2417 | if (pDevice->bEnableHostWEP) { | 2417 | if (pDevice->bEnableHostWEP) { |
@@ -2538,7 +2538,7 @@ pDevice->byTopCCKBasicRate,pDevice->byTopOFDMBasicRate); | |||
2538 | if (bNeedEncryption == true) { | 2538 | if (bNeedEncryption == true) { |
2539 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"ntohs Pkt Type=%04x\n", ntohs(pDevice->sTxEthHeader.wType)); | 2539 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"ntohs Pkt Type=%04x\n", ntohs(pDevice->sTxEthHeader.wType)); |
2540 | if ((pDevice->sTxEthHeader.wType) == TYPE_PKT_802_1x) { | 2540 | if ((pDevice->sTxEthHeader.wType) == TYPE_PKT_802_1x) { |
2541 | bNeedEncryption = FALSE; | 2541 | bNeedEncryption = false; |
2542 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Pkt Type=%04x\n", (pDevice->sTxEthHeader.wType)); | 2542 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Pkt Type=%04x\n", (pDevice->sTxEthHeader.wType)); |
2543 | if ((pDevice->pMgmt->eCurrMode == WMAC_MODE_ESS_STA) && (pDevice->pMgmt->eCurrState == WMAC_STATE_ASSOC)) { | 2543 | if ((pDevice->pMgmt->eCurrMode == WMAC_MODE_ESS_STA) && (pDevice->pMgmt->eCurrState == WMAC_STATE_ASSOC)) { |
2544 | if (pTransmitKey == NULL) { | 2544 | if (pTransmitKey == NULL) { |
@@ -2596,7 +2596,7 @@ pDevice->byTopCCKBasicRate,pDevice->byTopOFDMBasicRate); | |||
2596 | // Disable PS | 2596 | // Disable PS |
2597 | MACbPSWakeup(pDevice->PortOffset); | 2597 | MACbPSWakeup(pDevice->PortOffset); |
2598 | } | 2598 | } |
2599 | pDevice->bPWBitOn = FALSE; | 2599 | pDevice->bPWBitOn = false; |
2600 | 2600 | ||
2601 | pLastTD = pHeadTD; | 2601 | pLastTD = pHeadTD; |
2602 | for (ii = 0; ii < uMACfragNum; ii++) { | 2602 | for (ii = 0; ii < uMACfragNum; ii++) { |
@@ -2638,7 +2638,7 @@ pDevice->byTopCCKBasicRate,pDevice->byTopOFDMBasicRate); | |||
2638 | unsigned char Packet_Type; //802.1x Authentication | 2638 | unsigned char Packet_Type; //802.1x Authentication |
2639 | unsigned char Descriptor_type; | 2639 | unsigned char Descriptor_type; |
2640 | unsigned short Key_info; | 2640 | unsigned short Key_info; |
2641 | BOOL bTxeapol_key = FALSE; | 2641 | BOOL bTxeapol_key = false; |
2642 | Protocol_Version = skb->data[ETH_HLEN]; | 2642 | Protocol_Version = skb->data[ETH_HLEN]; |
2643 | Packet_Type = skb->data[ETH_HLEN+1]; | 2643 | Packet_Type = skb->data[ETH_HLEN+1]; |
2644 | Descriptor_type = skb->data[ETH_HLEN+1+1+2]; | 2644 | Descriptor_type = skb->data[ETH_HLEN+1+1+2]; |
@@ -2773,7 +2773,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { | |||
2773 | } | 2773 | } |
2774 | if (pDevice->dwIsr & ISR_MEASUREEND) { | 2774 | if (pDevice->dwIsr & ISR_MEASUREEND) { |
2775 | // 802.11h measure end | 2775 | // 802.11h measure end |
2776 | pDevice->bMeasureInProgress = FALSE; | 2776 | pDevice->bMeasureInProgress = false; |
2777 | VNSvOutPortB(pDevice->PortOffset + MAC_REG_RCR, pDevice->byOrgRCR); | 2777 | VNSvOutPortB(pDevice->PortOffset + MAC_REG_RCR, pDevice->byOrgRCR); |
2778 | MACvSelectPage1(pDevice->PortOffset); | 2778 | MACvSelectPage1(pDevice->PortOffset); |
2779 | VNSvOutPortD(pDevice->PortOffset + MAC_REG_MAR0, pDevice->dwOrgMAR0); | 2779 | VNSvOutPortD(pDevice->PortOffset + MAC_REG_MAR0, pDevice->dwOrgMAR0); |
@@ -2801,7 +2801,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { | |||
2801 | if (pDevice->dwIsr & ISR_QUIETSTART) { | 2801 | if (pDevice->dwIsr & ISR_QUIETSTART) { |
2802 | do { | 2802 | do { |
2803 | ; | 2803 | ; |
2804 | } while (CARDbStartQuiet(pDevice) == FALSE); | 2804 | } while (CARDbStartQuiet(pDevice) == false); |
2805 | } | 2805 | } |
2806 | } | 2806 | } |
2807 | 2807 | ||
@@ -2809,7 +2809,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { | |||
2809 | if (pDevice->bEnableFirstQuiet == true) { | 2809 | if (pDevice->bEnableFirstQuiet == true) { |
2810 | pDevice->byQuietStartCount--; | 2810 | pDevice->byQuietStartCount--; |
2811 | if (pDevice->byQuietStartCount == 0) { | 2811 | if (pDevice->byQuietStartCount == 0) { |
2812 | pDevice->bEnableFirstQuiet = FALSE; | 2812 | pDevice->bEnableFirstQuiet = false; |
2813 | MACvSelectPage1(pDevice->PortOffset); | 2813 | MACvSelectPage1(pDevice->PortOffset); |
2814 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_MSRCTL, (MSRCTL_QUIETTXCHK | MSRCTL_QUIETEN)); | 2814 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_MSRCTL, (MSRCTL_QUIETTXCHK | MSRCTL_QUIETEN)); |
2815 | MACvSelectPage0(pDevice->PortOffset); | 2815 | MACvSelectPage0(pDevice->PortOffset); |
@@ -2819,7 +2819,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { | |||
2819 | (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE)) { | 2819 | (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE)) { |
2820 | pDevice->byChannelSwitchCount--; | 2820 | pDevice->byChannelSwitchCount--; |
2821 | if (pDevice->byChannelSwitchCount == 0) { | 2821 | if (pDevice->byChannelSwitchCount == 0) { |
2822 | pDevice->bChannelSwitch = FALSE; | 2822 | pDevice->bChannelSwitch = false; |
2823 | set_channel(pDevice, pDevice->byNewChannel); | 2823 | set_channel(pDevice, pDevice->byNewChannel); |
2824 | VNTWIFIbChannelSwitch(pDevice->pMgmt, pDevice->byNewChannel); | 2824 | VNTWIFIbChannelSwitch(pDevice->pMgmt, pDevice->byNewChannel); |
2825 | MACvSelectPage1(pDevice->PortOffset); | 2825 | MACvSelectPage1(pDevice->PortOffset); |
@@ -2830,7 +2830,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { | |||
2830 | } | 2830 | } |
2831 | } | 2831 | } |
2832 | if (pDevice->eOPMode == OP_MODE_ADHOC) { | 2832 | if (pDevice->eOPMode == OP_MODE_ADHOC) { |
2833 | //pDevice->bBeaconSent = FALSE; | 2833 | //pDevice->bBeaconSent = false; |
2834 | } else { | 2834 | } else { |
2835 | if ((pDevice->bUpdateBBVGA) && (pDevice->bLinkPass == true) && (pDevice->uCurrRSSI != 0)) { | 2835 | if ((pDevice->bUpdateBBVGA) && (pDevice->bLinkPass == true) && (pDevice->uCurrRSSI != 0)) { |
2836 | long ldBm; | 2836 | long ldBm; |
@@ -2861,7 +2861,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { | |||
2861 | } | 2861 | } |
2862 | } | 2862 | } |
2863 | 2863 | ||
2864 | pDevice->bBeaconSent = FALSE; | 2864 | pDevice->bBeaconSent = false; |
2865 | if (pDevice->bEnablePSMode) { | 2865 | if (pDevice->bEnablePSMode) { |
2866 | PSbIsNextTBTTWakeUp((void *)pDevice); | 2866 | PSbIsNextTBTTWakeUp((void *)pDevice); |
2867 | }; | 2867 | }; |
@@ -2882,14 +2882,14 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { | |||
2882 | if (pDevice->dwIsr & ISR_BNTX) { | 2882 | if (pDevice->dwIsr & ISR_BNTX) { |
2883 | 2883 | ||
2884 | if (pDevice->eOPMode == OP_MODE_ADHOC) { | 2884 | if (pDevice->eOPMode == OP_MODE_ADHOC) { |
2885 | pDevice->bIsBeaconBufReadySet = FALSE; | 2885 | pDevice->bIsBeaconBufReadySet = false; |
2886 | pDevice->cbBeaconBufReadySetCnt = 0; | 2886 | pDevice->cbBeaconBufReadySetCnt = 0; |
2887 | }; | 2887 | }; |
2888 | 2888 | ||
2889 | if (pDevice->eOPMode == OP_MODE_AP) { | 2889 | if (pDevice->eOPMode == OP_MODE_AP) { |
2890 | if(pMgmt->byDTIMCount > 0) { | 2890 | if(pMgmt->byDTIMCount > 0) { |
2891 | pMgmt->byDTIMCount --; | 2891 | pMgmt->byDTIMCount --; |
2892 | pMgmt->sNodeDBTable[0].bRxPSPoll = FALSE; | 2892 | pMgmt->sNodeDBTable[0].bRxPSPoll = false; |
2893 | } | 2893 | } |
2894 | else { | 2894 | else { |
2895 | if(pMgmt->byDTIMCount == 0) { | 2895 | if(pMgmt->byDTIMCount == 0) { |
@@ -2905,7 +2905,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { | |||
2905 | if (pDevice->bChannelSwitch == true) { | 2905 | if (pDevice->bChannelSwitch == true) { |
2906 | pDevice->byChannelSwitchCount--; | 2906 | pDevice->byChannelSwitchCount--; |
2907 | if (pDevice->byChannelSwitchCount == 0) { | 2907 | if (pDevice->byChannelSwitchCount == 0) { |
2908 | pDevice->bChannelSwitch = FALSE; | 2908 | pDevice->bChannelSwitch = false; |
2909 | set_channel(pDevice, pDevice->byNewChannel); | 2909 | set_channel(pDevice, pDevice->byNewChannel); |
2910 | VNTWIFIbChannelSwitch(pDevice->pMgmt, pDevice->byNewChannel); | 2910 | VNTWIFIbChannelSwitch(pDevice->pMgmt, pDevice->byNewChannel); |
2911 | MACvSelectPage1(pDevice->PortOffset); | 2911 | MACvSelectPage1(pDevice->PortOffset); |
@@ -3559,7 +3559,7 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { | |||
3559 | else { | 3559 | else { |
3560 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Commit the settings\n"); | 3560 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Commit the settings\n"); |
3561 | spin_lock_irq(&pDevice->lock); | 3561 | spin_lock_irq(&pDevice->lock); |
3562 | pDevice->bLinkPass = FALSE; | 3562 | pDevice->bLinkPass = false; |
3563 | memset(pMgmt->abyCurrBSSID, 0, 6); | 3563 | memset(pMgmt->abyCurrBSSID, 0, 6); |
3564 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 3564 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
3565 | netif_stop_queue(pDevice->dev); | 3565 | netif_stop_queue(pDevice->dev); |
@@ -3571,7 +3571,7 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { | |||
3571 | bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL); | 3571 | bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL); |
3572 | spin_unlock_irq(&pDevice->lock); | 3572 | spin_unlock_irq(&pDevice->lock); |
3573 | } | 3573 | } |
3574 | pDevice->bCommit = FALSE; | 3574 | pDevice->bCommit = false; |
3575 | } | 3575 | } |
3576 | 3576 | ||
3577 | return rc; | 3577 | return rc; |
@@ -3681,10 +3681,10 @@ viawget_suspend(struct pci_dev *pcid, pm_message_t state) | |||
3681 | pDevice->cbFreeCmdQueue = CMD_Q_SIZE; | 3681 | pDevice->cbFreeCmdQueue = CMD_Q_SIZE; |
3682 | pDevice->uCmdDequeueIdx = 0; | 3682 | pDevice->uCmdDequeueIdx = 0; |
3683 | pDevice->uCmdEnqueueIdx = 0; | 3683 | pDevice->uCmdEnqueueIdx = 0; |
3684 | pDevice->bCmdRunning = FALSE; | 3684 | pDevice->bCmdRunning = false; |
3685 | MACbShutdown(pDevice->PortOffset); | 3685 | MACbShutdown(pDevice->PortOffset); |
3686 | MACvSaveContext(pDevice->PortOffset, pDevice->abyMacContext); | 3686 | MACvSaveContext(pDevice->PortOffset, pDevice->abyMacContext); |
3687 | pDevice->bLinkPass = FALSE; | 3687 | pDevice->bLinkPass = false; |
3688 | memset(pMgmt->abyCurrBSSID, 0, 6); | 3688 | memset(pMgmt->abyCurrBSSID, 0, 6); |
3689 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 3689 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
3690 | pci_disable_device(pcid); | 3690 | pci_disable_device(pcid); |
@@ -3709,8 +3709,8 @@ viawget_resume(struct pci_dev *pcid) | |||
3709 | MACvRestoreContext(pDevice->PortOffset, pDevice->abyMacContext); | 3709 | MACvRestoreContext(pDevice->PortOffset, pDevice->abyMacContext); |
3710 | device_init_registers(pDevice, DEVICE_INIT_DXPL); | 3710 | device_init_registers(pDevice, DEVICE_INIT_DXPL); |
3711 | if (pMgmt->sNodeDBTable[0].bActive == true) { // Assoc with BSS | 3711 | if (pMgmt->sNodeDBTable[0].bActive == true) { // Assoc with BSS |
3712 | pMgmt->sNodeDBTable[0].bActive = FALSE; | 3712 | pMgmt->sNodeDBTable[0].bActive = false; |
3713 | pDevice->bLinkPass = FALSE; | 3713 | pDevice->bLinkPass = false; |
3714 | if(pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) { | 3714 | if(pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) { |
3715 | // In Adhoc, BSS state set back to started. | 3715 | // In Adhoc, BSS state set back to started. |
3716 | pMgmt->eCurrState = WMAC_STATE_STARTED; | 3716 | pMgmt->eCurrState = WMAC_STATE_STARTED; |
diff --git a/drivers/staging/vt6655/dpc.c b/drivers/staging/vt6655/dpc.c index c6ca3bb58a7d..7ffd1b4d740c 100644 --- a/drivers/staging/vt6655/dpc.c +++ b/drivers/staging/vt6655/dpc.c | |||
@@ -335,8 +335,8 @@ device_receive_frame ( | |||
335 | PQWORD pqwTSFTime; | 335 | PQWORD pqwTSFTime; |
336 | unsigned short *pwFrameSize; | 336 | unsigned short *pwFrameSize; |
337 | unsigned char *pbyFrame; | 337 | unsigned char *pbyFrame; |
338 | BOOL bDeFragRx = FALSE; | 338 | BOOL bDeFragRx = false; |
339 | BOOL bIsWEP = FALSE; | 339 | BOOL bIsWEP = false; |
340 | unsigned int cbHeaderOffset; | 340 | unsigned int cbHeaderOffset; |
341 | unsigned int FrameSize; | 341 | unsigned int FrameSize; |
342 | unsigned short wEtherType = 0; | 342 | unsigned short wEtherType = 0; |
@@ -344,7 +344,7 @@ device_receive_frame ( | |||
344 | int iDANodeIndex = -1; | 344 | int iDANodeIndex = -1; |
345 | unsigned int ii; | 345 | unsigned int ii; |
346 | unsigned int cbIVOffset; | 346 | unsigned int cbIVOffset; |
347 | BOOL bExtIV = FALSE; | 347 | BOOL bExtIV = false; |
348 | unsigned char *pbyRxSts; | 348 | unsigned char *pbyRxSts; |
349 | unsigned char *pbyRxRate; | 349 | unsigned char *pbyRxRate; |
350 | unsigned char *pbySQ; | 350 | unsigned char *pbySQ; |
@@ -358,7 +358,7 @@ device_receive_frame ( | |||
358 | long ldBm = 0; | 358 | long ldBm = 0; |
359 | long ldBmThreshold = 0; | 359 | long ldBmThreshold = 0; |
360 | PS802_11Header pMACHeader; | 360 | PS802_11Header pMACHeader; |
361 | BOOL bRxeapol_key = FALSE; | 361 | BOOL bRxeapol_key = false; |
362 | 362 | ||
363 | // DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---------- device_receive_frame---\n"); | 363 | // DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---------- device_receive_frame---\n"); |
364 | 364 | ||
@@ -379,7 +379,7 @@ device_receive_frame ( | |||
379 | if ((FrameSize > 2364)||(FrameSize <= 32)) { | 379 | if ((FrameSize > 2364)||(FrameSize <= 32)) { |
380 | // Frame Size error drop this packet. | 380 | // Frame Size error drop this packet. |
381 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---------- WRONG Length 1 \n"); | 381 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---------- WRONG Length 1 \n"); |
382 | return FALSE; | 382 | return false; |
383 | } | 383 | } |
384 | 384 | ||
385 | pbyRxSts = (unsigned char *) (skb->data); | 385 | pbyRxSts = (unsigned char *) (skb->data); |
@@ -397,7 +397,7 @@ device_receive_frame ( | |||
397 | if ((FrameSize > 2346)|(FrameSize < 14)) { // Max: 2312Payload + 30HD +4CRC | 397 | if ((FrameSize > 2346)|(FrameSize < 14)) { // Max: 2312Payload + 30HD +4CRC |
398 | // Min: 14 bytes ACK | 398 | // Min: 14 bytes ACK |
399 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---------- WRONG Length 2 \n"); | 399 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---------- WRONG Length 2 \n"); |
400 | return FALSE; | 400 | return false; |
401 | } | 401 | } |
402 | //PLICE_DEBUG-> | 402 | //PLICE_DEBUG-> |
403 | #if 1 | 403 | #if 1 |
@@ -440,13 +440,13 @@ device_receive_frame ( | |||
440 | ii--; | 440 | ii--; |
441 | } | 441 | } |
442 | pDevice->dwRPIs[ii] += dwDuration; | 442 | pDevice->dwRPIs[ii] += dwDuration; |
443 | return FALSE; | 443 | return false; |
444 | } | 444 | } |
445 | 445 | ||
446 | if (!is_multicast_ether_addr(pbyFrame)) { | 446 | if (!is_multicast_ether_addr(pbyFrame)) { |
447 | if (WCTLbIsDuplicate(&(pDevice->sDupRxCache), (PS802_11Header) (skb->data + 4))) { | 447 | if (WCTLbIsDuplicate(&(pDevice->sDupRxCache), (PS802_11Header) (skb->data + 4))) { |
448 | pDevice->s802_11Counter.FrameDuplicateCount++; | 448 | pDevice->s802_11Counter.FrameDuplicateCount++; |
449 | return FALSE; | 449 | return false; |
450 | } | 450 | } |
451 | } | 451 | } |
452 | 452 | ||
@@ -456,7 +456,7 @@ device_receive_frame ( | |||
456 | 456 | ||
457 | // filter packet send from myself | 457 | // filter packet send from myself |
458 | if (!compare_ether_addr((unsigned char *)&(pDevice->sRxEthHeader.abySrcAddr[0]), pDevice->abyCurrentNetAddr)) | 458 | if (!compare_ether_addr((unsigned char *)&(pDevice->sRxEthHeader.abySrcAddr[0]), pDevice->abyCurrentNetAddr)) |
459 | return FALSE; | 459 | return false; |
460 | 460 | ||
461 | if ((pMgmt->eCurrMode == WMAC_MODE_ESS_AP) || (pMgmt->eCurrMode == WMAC_MODE_IBSS_STA)) { | 461 | if ((pMgmt->eCurrMode == WMAC_MODE_ESS_AP) || (pMgmt->eCurrMode == WMAC_MODE_IBSS_STA)) { |
462 | if (IS_CTL_PSPOLL(pbyFrame) || !IS_TYPE_CONTROL(pbyFrame)) { | 462 | if (IS_CTL_PSPOLL(pbyFrame) || !IS_TYPE_CONTROL(pbyFrame)) { |
@@ -471,13 +471,13 @@ device_receive_frame ( | |||
471 | 471 | ||
472 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { | 472 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { |
473 | if (s_bAPModeRxCtl(pDevice, pbyFrame, iSANodeIndex) == true) { | 473 | if (s_bAPModeRxCtl(pDevice, pbyFrame, iSANodeIndex) == true) { |
474 | return FALSE; | 474 | return false; |
475 | } | 475 | } |
476 | } | 476 | } |
477 | 477 | ||
478 | 478 | ||
479 | if (IS_FC_WEP(pbyFrame)) { | 479 | if (IS_FC_WEP(pbyFrame)) { |
480 | BOOL bRxDecryOK = FALSE; | 480 | BOOL bRxDecryOK = false; |
481 | 481 | ||
482 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"rx WEP pkt\n"); | 482 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"rx WEP pkt\n"); |
483 | bIsWEP = true; | 483 | bIsWEP = true; |
@@ -532,11 +532,11 @@ device_receive_frame ( | |||
532 | // pDevice->s802_11Counter.WEPICVErrorCount.QuadPart++; | 532 | // pDevice->s802_11Counter.WEPICVErrorCount.QuadPart++; |
533 | } | 533 | } |
534 | } | 534 | } |
535 | return FALSE; | 535 | return false; |
536 | } | 536 | } |
537 | } else { | 537 | } else { |
538 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"WEP Func Fail\n"); | 538 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"WEP Func Fail\n"); |
539 | return FALSE; | 539 | return false; |
540 | } | 540 | } |
541 | if ((pKey != NULL) && (pKey->byCipherSuite == KEY_CTL_CCMP)) | 541 | if ((pKey != NULL) && (pKey->byCipherSuite == KEY_CTL_CCMP)) |
542 | FrameSize -= 8; // Message Integrity Code | 542 | FrameSize -= 8; // Message Integrity Code |
@@ -564,13 +564,13 @@ device_receive_frame ( | |||
564 | 564 | ||
565 | } | 565 | } |
566 | else { | 566 | else { |
567 | return FALSE; | 567 | return false; |
568 | } | 568 | } |
569 | } | 569 | } |
570 | 570 | ||
571 | 571 | ||
572 | // Management & Control frame Handle | 572 | // Management & Control frame Handle |
573 | if ((IS_TYPE_DATA((skb->data+4))) == FALSE) { | 573 | if ((IS_TYPE_DATA((skb->data+4))) == false) { |
574 | // Handle Control & Manage Frame | 574 | // Handle Control & Manage Frame |
575 | 575 | ||
576 | if (IS_TYPE_MGMT((skb->data+4))) { | 576 | if (IS_TYPE_MGMT((skb->data+4))) { |
@@ -635,7 +635,7 @@ device_receive_frame ( | |||
635 | else { | 635 | else { |
636 | // Control Frame | 636 | // Control Frame |
637 | }; | 637 | }; |
638 | return FALSE; | 638 | return false; |
639 | } | 639 | } |
640 | else { | 640 | else { |
641 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { | 641 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { |
@@ -647,12 +647,12 @@ device_receive_frame ( | |||
647 | pDevice->dev->name); | 647 | pDevice->dev->name); |
648 | } | 648 | } |
649 | } | 649 | } |
650 | return FALSE; | 650 | return false; |
651 | } | 651 | } |
652 | } | 652 | } |
653 | else { | 653 | else { |
654 | // discard DATA packet while not associate || BSSID error | 654 | // discard DATA packet while not associate || BSSID error |
655 | if ((pDevice->bLinkPass == FALSE) || | 655 | if ((pDevice->bLinkPass == false) || |
656 | !(*pbyRsr & RSR_BSSIDOK)) { | 656 | !(*pbyRsr & RSR_BSSIDOK)) { |
657 | if (bDeFragRx) { | 657 | if (bDeFragRx) { |
658 | if (!device_alloc_frag_buf(pDevice, &pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx])) { | 658 | if (!device_alloc_frag_buf(pDevice, &pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx])) { |
@@ -660,7 +660,7 @@ device_receive_frame ( | |||
660 | pDevice->dev->name); | 660 | pDevice->dev->name); |
661 | } | 661 | } |
662 | } | 662 | } |
663 | return FALSE; | 663 | return false; |
664 | } | 664 | } |
665 | //mike add:station mode check eapol-key challenge---> | 665 | //mike add:station mode check eapol-key challenge---> |
666 | { | 666 | { |
@@ -697,7 +697,7 @@ device_receive_frame ( | |||
697 | } | 697 | } |
698 | else { | 698 | else { |
699 | if (pDevice->pMgmt->bInTIMWake == true) { | 699 | if (pDevice->pMgmt->bInTIMWake == true) { |
700 | pDevice->pMgmt->bInTIMWake = FALSE; | 700 | pDevice->pMgmt->bInTIMWake = false; |
701 | } | 701 | } |
702 | } | 702 | } |
703 | }; | 703 | }; |
@@ -766,7 +766,7 @@ device_receive_frame ( | |||
766 | } | 766 | } |
767 | // check if 802.1x authorized | 767 | // check if 802.1x authorized |
768 | if (!(pMgmt->sNodeDBTable[iSANodeIndex].dwFlags & WLAN_STA_AUTHORIZED)) | 768 | if (!(pMgmt->sNodeDBTable[iSANodeIndex].dwFlags & WLAN_STA_AUTHORIZED)) |
769 | return FALSE; | 769 | return false; |
770 | } | 770 | } |
771 | 771 | ||
772 | 772 | ||
@@ -826,7 +826,7 @@ device_receive_frame ( | |||
826 | if ((cpu_to_le32(*pdwMIC_L) != dwLocalMIC_L) || (cpu_to_le32(*pdwMIC_R) != dwLocalMIC_R) || | 826 | if ((cpu_to_le32(*pdwMIC_L) != dwLocalMIC_L) || (cpu_to_le32(*pdwMIC_R) != dwLocalMIC_R) || |
827 | (pDevice->bRxMICFail == true)) { | 827 | (pDevice->bRxMICFail == true)) { |
828 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"MIC comparison is fail!\n"); | 828 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"MIC comparison is fail!\n"); |
829 | pDevice->bRxMICFail = FALSE; | 829 | pDevice->bRxMICFail = false; |
830 | //pDevice->s802_11Counter.TKIPLocalMICFailures.QuadPart++; | 830 | //pDevice->s802_11Counter.TKIPLocalMICFailures.QuadPart++; |
831 | pDevice->s802_11Counter.TKIPLocalMICFailures++; | 831 | pDevice->s802_11Counter.TKIPLocalMICFailures++; |
832 | if (bDeFragRx) { | 832 | if (bDeFragRx) { |
@@ -886,7 +886,7 @@ device_receive_frame ( | |||
886 | pDevice->skb = dev_alloc_skb((int)pDevice->rx_buf_sz); | 886 | pDevice->skb = dev_alloc_skb((int)pDevice->rx_buf_sz); |
887 | }; | 887 | }; |
888 | 888 | ||
889 | return FALSE; | 889 | return false; |
890 | 890 | ||
891 | } | 891 | } |
892 | } | 892 | } |
@@ -930,7 +930,7 @@ device_receive_frame ( | |||
930 | pDevice->dev->name); | 930 | pDevice->dev->name); |
931 | } | 931 | } |
932 | } | 932 | } |
933 | return FALSE; | 933 | return false; |
934 | } | 934 | } |
935 | } | 935 | } |
936 | } | 936 | } |
@@ -949,7 +949,7 @@ device_receive_frame ( | |||
949 | 949 | ||
950 | // Null data, framesize = 14 | 950 | // Null data, framesize = 14 |
951 | if (FrameSize < 15) | 951 | if (FrameSize < 15) |
952 | return FALSE; | 952 | return false; |
953 | 953 | ||
954 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { | 954 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { |
955 | if (s_bAPModeRxData(pDevice, | 955 | if (s_bAPModeRxData(pDevice, |
@@ -958,7 +958,7 @@ device_receive_frame ( | |||
958 | cbHeaderOffset, | 958 | cbHeaderOffset, |
959 | iSANodeIndex, | 959 | iSANodeIndex, |
960 | iDANodeIndex | 960 | iDANodeIndex |
961 | ) == FALSE) { | 961 | ) == false) { |
962 | 962 | ||
963 | if (bDeFragRx) { | 963 | if (bDeFragRx) { |
964 | if (!device_alloc_frag_buf(pDevice, &pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx])) { | 964 | if (!device_alloc_frag_buf(pDevice, &pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx])) { |
@@ -966,10 +966,10 @@ device_receive_frame ( | |||
966 | pDevice->dev->name); | 966 | pDevice->dev->name); |
967 | } | 967 | } |
968 | } | 968 | } |
969 | return FALSE; | 969 | return false; |
970 | } | 970 | } |
971 | 971 | ||
972 | // if(pDevice->bRxMICFail == FALSE) { | 972 | // if(pDevice->bRxMICFail == false) { |
973 | // for (ii =0; ii < 100; ii++) | 973 | // for (ii =0; ii < 100; ii++) |
974 | // printk(" %02x", *(skb->data + ii)); | 974 | // printk(" %02x", *(skb->data + ii)); |
975 | // printk("\n"); | 975 | // printk("\n"); |
@@ -996,7 +996,7 @@ device_receive_frame ( | |||
996 | pDevice->dev->name); | 996 | pDevice->dev->name); |
997 | } | 997 | } |
998 | } | 998 | } |
999 | return FALSE; | 999 | return false; |
1000 | } | 1000 | } |
1001 | } | 1001 | } |
1002 | */ | 1002 | */ |
@@ -1011,7 +1011,7 @@ device_receive_frame ( | |||
1011 | DBG_PRT(MSG_LEVEL_ERR,KERN_ERR "%s: can not alloc more frag bufs\n", | 1011 | DBG_PRT(MSG_LEVEL_ERR,KERN_ERR "%s: can not alloc more frag bufs\n", |
1012 | pDevice->dev->name); | 1012 | pDevice->dev->name); |
1013 | } | 1013 | } |
1014 | return FALSE; | 1014 | return false; |
1015 | } | 1015 | } |
1016 | 1016 | ||
1017 | return true; | 1017 | return true; |
@@ -1074,7 +1074,7 @@ static BOOL s_bAPModeRxCtl ( | |||
1074 | // check Data PS state | 1074 | // check Data PS state |
1075 | // if PW bit off, send out all PS bufferring packets. | 1075 | // if PW bit off, send out all PS bufferring packets. |
1076 | if (!IS_FC_POWERMGT(pbyFrame)) { | 1076 | if (!IS_FC_POWERMGT(pbyFrame)) { |
1077 | pMgmt->sNodeDBTable[iSANodeIndex].bPSEnable = FALSE; | 1077 | pMgmt->sNodeDBTable[iSANodeIndex].bPSEnable = false; |
1078 | pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = true; | 1078 | pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = true; |
1079 | bScheduleCommand((void *)pDevice, WLAN_CMD_RX_PSPOLL, NULL); | 1079 | bScheduleCommand((void *)pDevice, WLAN_CMD_RX_PSPOLL, NULL); |
1080 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 2\n"); | 1080 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 2\n"); |
@@ -1090,7 +1090,7 @@ static BOOL s_bAPModeRxCtl ( | |||
1090 | else { | 1090 | else { |
1091 | // clear all pending PS frame. | 1091 | // clear all pending PS frame. |
1092 | if (pMgmt->sNodeDBTable[iSANodeIndex].wEnQueueCnt > 0) { | 1092 | if (pMgmt->sNodeDBTable[iSANodeIndex].wEnQueueCnt > 0) { |
1093 | pMgmt->sNodeDBTable[iSANodeIndex].bPSEnable = FALSE; | 1093 | pMgmt->sNodeDBTable[iSANodeIndex].bPSEnable = false; |
1094 | pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = true; | 1094 | pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = true; |
1095 | bScheduleCommand((void *)pDevice, WLAN_CMD_RX_PSPOLL, NULL); | 1095 | bScheduleCommand((void *)pDevice, WLAN_CMD_RX_PSPOLL, NULL); |
1096 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 3\n"); | 1096 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 3\n"); |
@@ -1138,7 +1138,7 @@ static BOOL s_bAPModeRxCtl ( | |||
1138 | } | 1138 | } |
1139 | } | 1139 | } |
1140 | } | 1140 | } |
1141 | return FALSE; | 1141 | return false; |
1142 | 1142 | ||
1143 | } | 1143 | } |
1144 | 1144 | ||
@@ -1221,7 +1221,7 @@ static BOOL s_bHandleRxEncryption ( | |||
1221 | } else if (pDevice->bLinkPass == true) { | 1221 | } else if (pDevice->bLinkPass == true) { |
1222 | // pDevice->s802_11Counter.DecryptFailureCount.QuadPart++; | 1222 | // pDevice->s802_11Counter.DecryptFailureCount.QuadPart++; |
1223 | } | 1223 | } |
1224 | return FALSE; | 1224 | return false; |
1225 | } | 1225 | } |
1226 | if (byDecMode != pKey->byCipherSuite) { | 1226 | if (byDecMode != pKey->byCipherSuite) { |
1227 | if (byDecMode == KEY_CTL_WEP) { | 1227 | if (byDecMode == KEY_CTL_WEP) { |
@@ -1230,7 +1230,7 @@ static BOOL s_bHandleRxEncryption ( | |||
1230 | // pDevice->s802_11Counter.DecryptFailureCount.QuadPart++; | 1230 | // pDevice->s802_11Counter.DecryptFailureCount.QuadPart++; |
1231 | } | 1231 | } |
1232 | *pKeyOut = NULL; | 1232 | *pKeyOut = NULL; |
1233 | return FALSE; | 1233 | return false; |
1234 | } | 1234 | } |
1235 | if (byDecMode == KEY_CTL_WEP) { | 1235 | if (byDecMode == KEY_CTL_WEP) { |
1236 | // handle WEP | 1236 | // handle WEP |
@@ -1336,7 +1336,7 @@ static BOOL s_bHostWepRxEncryption ( | |||
1336 | } else if (pDevice->bLinkPass == true) { | 1336 | } else if (pDevice->bLinkPass == true) { |
1337 | // pDevice->s802_11Counter.DecryptFailureCount.QuadPart++; | 1337 | // pDevice->s802_11Counter.DecryptFailureCount.QuadPart++; |
1338 | } | 1338 | } |
1339 | return FALSE; | 1339 | return false; |
1340 | } | 1340 | } |
1341 | 1341 | ||
1342 | if (byDecMode == KEY_CTL_WEP) { | 1342 | if (byDecMode == KEY_CTL_WEP) { |
@@ -1344,7 +1344,7 @@ static BOOL s_bHostWepRxEncryption ( | |||
1344 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"byDecMode == KEY_CTL_WEP \n"); | 1344 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"byDecMode == KEY_CTL_WEP \n"); |
1345 | if ((pDevice->byLocalID <= REV_ID_VT3253_A1) || | 1345 | if ((pDevice->byLocalID <= REV_ID_VT3253_A1) || |
1346 | (((PSKeyTable)(pKey->pvKeyTable))->bSoftWEP == true) || | 1346 | (((PSKeyTable)(pKey->pvKeyTable))->bSoftWEP == true) || |
1347 | (bOnFly == FALSE)) { | 1347 | (bOnFly == false)) { |
1348 | // Software WEP | 1348 | // Software WEP |
1349 | // 1. 3253A | 1349 | // 1. 3253A |
1350 | // 2. WEP 256 | 1350 | // 2. WEP 256 |
@@ -1377,7 +1377,7 @@ static BOOL s_bHostWepRxEncryption ( | |||
1377 | 1377 | ||
1378 | if (byDecMode == KEY_CTL_TKIP) { | 1378 | if (byDecMode == KEY_CTL_TKIP) { |
1379 | 1379 | ||
1380 | if ((pDevice->byLocalID <= REV_ID_VT3253_A1) || (bOnFly == FALSE)) { | 1380 | if ((pDevice->byLocalID <= REV_ID_VT3253_A1) || (bOnFly == false)) { |
1381 | // Software TKIP | 1381 | // Software TKIP |
1382 | // 1. 3253 A | 1382 | // 1. 3253 A |
1383 | // 2. NotOnFly | 1383 | // 2. NotOnFly |
@@ -1397,7 +1397,7 @@ static BOOL s_bHostWepRxEncryption ( | |||
1397 | } | 1397 | } |
1398 | 1398 | ||
1399 | if (byDecMode == KEY_CTL_CCMP) { | 1399 | if (byDecMode == KEY_CTL_CCMP) { |
1400 | if (bOnFly == FALSE) { | 1400 | if (bOnFly == false) { |
1401 | // Software CCMP | 1401 | // Software CCMP |
1402 | // NotOnFly | 1402 | // NotOnFly |
1403 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"soft KEY_CTL_CCMP\n"); | 1403 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"soft KEY_CTL_CCMP\n"); |
@@ -1429,8 +1429,8 @@ static BOOL s_bAPModeRxData ( | |||
1429 | ) | 1429 | ) |
1430 | { | 1430 | { |
1431 | PSMgmtObject pMgmt = pDevice->pMgmt; | 1431 | PSMgmtObject pMgmt = pDevice->pMgmt; |
1432 | BOOL bRelayAndForward = FALSE; | 1432 | BOOL bRelayAndForward = false; |
1433 | BOOL bRelayOnly = FALSE; | 1433 | BOOL bRelayOnly = false; |
1434 | unsigned char byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80}; | 1434 | unsigned char byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80}; |
1435 | unsigned short wAID; | 1435 | unsigned short wAID; |
1436 | 1436 | ||
@@ -1438,7 +1438,7 @@ static BOOL s_bAPModeRxData ( | |||
1438 | struct sk_buff* skbcpy = NULL; | 1438 | struct sk_buff* skbcpy = NULL; |
1439 | 1439 | ||
1440 | if (FrameSize > CB_MAX_BUF_SIZE) | 1440 | if (FrameSize > CB_MAX_BUF_SIZE) |
1441 | return FALSE; | 1441 | return false; |
1442 | // check DA | 1442 | // check DA |
1443 | if(is_multicast_ether_addr((unsigned char *)(skb->data+cbHeaderOffset))) { | 1443 | if(is_multicast_ether_addr((unsigned char *)(skb->data+cbHeaderOffset))) { |
1444 | if (pMgmt->sNodeDBTable[0].bPSEnable) { | 1444 | if (pMgmt->sNodeDBTable[0].bPSEnable) { |
@@ -1499,11 +1499,11 @@ static BOOL s_bAPModeRxData ( | |||
1499 | } | 1499 | } |
1500 | 1500 | ||
1501 | if (bRelayOnly) | 1501 | if (bRelayOnly) |
1502 | return FALSE; | 1502 | return false; |
1503 | } | 1503 | } |
1504 | // none associate, don't forward | 1504 | // none associate, don't forward |
1505 | if (pDevice->uAssocCount == 0) | 1505 | if (pDevice->uAssocCount == 0) |
1506 | return FALSE; | 1506 | return false; |
1507 | 1507 | ||
1508 | return true; | 1508 | return true; |
1509 | } | 1509 | } |
diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c index 865e0f64d95a..89e3d48b4262 100644 --- a/drivers/staging/vt6655/hostap.c +++ b/drivers/staging/vt6655/hostap.c | |||
@@ -154,9 +154,9 @@ static int hostap_disable_hostapd(PSDevice pDevice, int rtnl_locked) | |||
154 | } | 154 | } |
155 | kfree(pDevice->apdev); | 155 | kfree(pDevice->apdev); |
156 | pDevice->apdev = NULL; | 156 | pDevice->apdev = NULL; |
157 | pDevice->bEnable8021x = FALSE; | 157 | pDevice->bEnable8021x = false; |
158 | pDevice->bEnableHostWEP = FALSE; | 158 | pDevice->bEnableHostWEP = false; |
159 | pDevice->bEncryptionEnable = FALSE; | 159 | pDevice->bEncryptionEnable = false; |
160 | 160 | ||
161 | //4.2007-0118-03,<Add> by EinsnLiu | 161 | //4.2007-0118-03,<Add> by EinsnLiu |
162 | //execute some clear work | 162 | //execute some clear work |
@@ -255,7 +255,7 @@ static int hostap_add_sta(PSDevice pDevice, | |||
255 | pMgmt->sNodeDBTable[uNodeIndex].wCapInfo = param->u.add_sta.capability; | 255 | pMgmt->sNodeDBTable[uNodeIndex].wCapInfo = param->u.add_sta.capability; |
256 | // TODO listenInterval | 256 | // TODO listenInterval |
257 | // pMgmt->sNodeDBTable[uNodeIndex].wListenInterval = 1; | 257 | // pMgmt->sNodeDBTable[uNodeIndex].wListenInterval = 1; |
258 | pMgmt->sNodeDBTable[uNodeIndex].bPSEnable = FALSE; | 258 | pMgmt->sNodeDBTable[uNodeIndex].bPSEnable = false; |
259 | pMgmt->sNodeDBTable[uNodeIndex].bySuppRate = param->u.add_sta.tx_supp_rates; | 259 | pMgmt->sNodeDBTable[uNodeIndex].bySuppRate = param->u.add_sta.tx_supp_rates; |
260 | 260 | ||
261 | // set max tx rate | 261 | // set max tx rate |
@@ -328,7 +328,7 @@ static int hostap_get_info_sta(PSDevice pDevice, | |||
328 | * pDevice - | 328 | * pDevice - |
329 | * param - | 329 | * param - |
330 | * Out: | 330 | * Out: |
331 | * true, FALSE | 331 | * true, false |
332 | * | 332 | * |
333 | * Return Value: | 333 | * Return Value: |
334 | * | 334 | * |
@@ -479,7 +479,7 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
479 | int ret = 0; | 479 | int ret = 0; |
480 | int iNodeIndex = -1; | 480 | int iNodeIndex = -1; |
481 | int ii; | 481 | int ii; |
482 | BOOL bKeyTableFull = FALSE; | 482 | BOOL bKeyTableFull = false; |
483 | unsigned short wKeyCtl = 0; | 483 | unsigned short wKeyCtl = 0; |
484 | 484 | ||
485 | 485 | ||
@@ -509,7 +509,7 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
509 | iNodeIndex = 0; | 509 | iNodeIndex = 0; |
510 | 510 | ||
511 | } else { | 511 | } else { |
512 | if (BSSDBbIsSTAInNodeDB(pMgmt, param->sta_addr, &iNodeIndex) == FALSE) { | 512 | if (BSSDBbIsSTAInNodeDB(pMgmt, param->sta_addr, &iNodeIndex) == false) { |
513 | param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ADDR; | 513 | param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ADDR; |
514 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " HOSTAP_CRYPT_ERR_UNKNOWN_ADDR\n"); | 514 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " HOSTAP_CRYPT_ERR_UNKNOWN_ADDR\n"); |
515 | return -EINVAL; | 515 | return -EINVAL; |
@@ -524,10 +524,10 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
524 | if (KeybRemoveKey(&(pDevice->sKey), | 524 | if (KeybRemoveKey(&(pDevice->sKey), |
525 | param->sta_addr, | 525 | param->sta_addr, |
526 | pMgmt->sNodeDBTable[iNodeIndex].dwKeyIndex, | 526 | pMgmt->sNodeDBTable[iNodeIndex].dwKeyIndex, |
527 | pDevice->PortOffset) == FALSE) { | 527 | pDevice->PortOffset) == false) { |
528 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "KeybRemoveKey fail \n"); | 528 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "KeybRemoveKey fail \n"); |
529 | } | 529 | } |
530 | pMgmt->sNodeDBTable[iNodeIndex].bOnFly = FALSE; | 530 | pMgmt->sNodeDBTable[iNodeIndex].bOnFly = false; |
531 | } | 531 | } |
532 | pMgmt->sNodeDBTable[iNodeIndex].byKeyIndex = 0; | 532 | pMgmt->sNodeDBTable[iNodeIndex].byKeyIndex = 0; |
533 | pMgmt->sNodeDBTable[iNodeIndex].dwKeyIndex = 0; | 533 | pMgmt->sNodeDBTable[iNodeIndex].dwKeyIndex = 0; |
@@ -562,7 +562,7 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
562 | 562 | ||
563 | if (param->u.crypt.alg == WPA_ALG_WEP) { | 563 | if (param->u.crypt.alg == WPA_ALG_WEP) { |
564 | 564 | ||
565 | if ((pDevice->bEnable8021x == FALSE) || (iNodeIndex == 0)) { | 565 | if ((pDevice->bEnable8021x == false) || (iNodeIndex == 0)) { |
566 | KeybSetDefaultKey(&(pDevice->sKey), | 566 | KeybSetDefaultKey(&(pDevice->sKey), |
567 | dwKeyIndex & ~(BIT30 | USE_KEYRSC), | 567 | dwKeyIndex & ~(BIT30 | USE_KEYRSC), |
568 | param->u.crypt.key_len, | 568 | param->u.crypt.key_len, |
@@ -589,7 +589,7 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
589 | 589 | ||
590 | } else { | 590 | } else { |
591 | // Key Table Full | 591 | // Key Table Full |
592 | pMgmt->sNodeDBTable[iNodeIndex].bOnFly = FALSE; | 592 | pMgmt->sNodeDBTable[iNodeIndex].bOnFly = false; |
593 | bKeyTableFull = true; | 593 | bKeyTableFull = true; |
594 | } | 594 | } |
595 | } | 595 | } |
@@ -658,7 +658,7 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
658 | 658 | ||
659 | } else { | 659 | } else { |
660 | // Key Table Full | 660 | // Key Table Full |
661 | pMgmt->sNodeDBTable[iNodeIndex].bOnFly = FALSE; | 661 | pMgmt->sNodeDBTable[iNodeIndex].bOnFly = false; |
662 | bKeyTableFull = true; | 662 | bKeyTableFull = true; |
663 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " Key Table Full\n"); | 663 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " Key Table Full\n"); |
664 | } | 664 | } |
@@ -727,7 +727,7 @@ static int hostap_get_encryption(PSDevice pDevice, | |||
727 | param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff) { | 727 | param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff) { |
728 | iNodeIndex = 0; | 728 | iNodeIndex = 0; |
729 | } else { | 729 | } else { |
730 | if (BSSDBbIsSTAInNodeDB(pMgmt, param->sta_addr, &iNodeIndex) == FALSE) { | 730 | if (BSSDBbIsSTAInNodeDB(pMgmt, param->sta_addr, &iNodeIndex) == false) { |
731 | param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ADDR; | 731 | param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ADDR; |
732 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "hostap_get_encryption: HOSTAP_CRYPT_ERR_UNKNOWN_ADDR\n"); | 732 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "hostap_get_encryption: HOSTAP_CRYPT_ERR_UNKNOWN_ADDR\n"); |
733 | return -EINVAL; | 733 | return -EINVAL; |
diff --git a/drivers/staging/vt6655/ioctl.c b/drivers/staging/vt6655/ioctl.c index e0812af27106..5624a41e3d5e 100644 --- a/drivers/staging/vt6655/ioctl.c +++ b/drivers/staging/vt6655/ioctl.c | |||
@@ -105,11 +105,11 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
105 | vMgrTimerInit(pDevice); | 105 | vMgrTimerInit(pDevice); |
106 | MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); | 106 | MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); |
107 | add_timer(&pMgmt->sTimerSecondCallback); | 107 | add_timer(&pMgmt->sTimerSecondCallback); |
108 | pDevice->bMACSuspend = FALSE; | 108 | pDevice->bMACSuspend = false; |
109 | } | 109 | } |
110 | spin_lock_irq(&pDevice->lock); | 110 | spin_lock_irq(&pDevice->lock); |
111 | if (memcmp(pMgmt->abyCurrBSSID, &abyNullAddr[0], 6) == 0) | 111 | if (memcmp(pMgmt->abyCurrBSSID, &abyNullAddr[0], 6) == 0) |
112 | BSSvClearBSSList((void *)pDevice, FALSE); | 112 | BSSvClearBSSList((void *)pDevice, false); |
113 | else | 113 | else |
114 | BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass); | 114 | BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass); |
115 | 115 | ||
@@ -180,7 +180,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
180 | vMgrTimerInit(pDevice); | 180 | vMgrTimerInit(pDevice); |
181 | MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); | 181 | MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); |
182 | add_timer(&pMgmt->sTimerSecondCallback); | 182 | add_timer(&pMgmt->sTimerSecondCallback); |
183 | pDevice->bMACSuspend = FALSE; | 183 | pDevice->bMACSuspend = false; |
184 | } | 184 | } |
185 | 185 | ||
186 | if (copy_from_user(&sJoinCmd, pReq->data, sizeof(SCmdBSSJoin))) { | 186 | if (copy_from_user(&sJoinCmd, pReq->data, sizeof(SCmdBSSJoin))) { |
@@ -216,7 +216,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
216 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Share Key \n"); | 216 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Share Key \n"); |
217 | } | 217 | } |
218 | else { | 218 | else { |
219 | pMgmt->bShareKeyAlgorithm = FALSE; | 219 | pMgmt->bShareKeyAlgorithm = false; |
220 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Open System \n"); | 220 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Open System \n"); |
221 | } | 221 | } |
222 | pDevice->uChannel = sJoinCmd.uChannel; | 222 | pDevice->uChannel = sJoinCmd.uChannel; |
@@ -236,7 +236,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
236 | break; | 236 | break; |
237 | }; | 237 | }; |
238 | if (sWEPCmd.bEnableWep != true) { | 238 | if (sWEPCmd.bEnableWep != true) { |
239 | pDevice->bEncryptionEnable = FALSE; | 239 | pDevice->bEncryptionEnable = false; |
240 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; | 240 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; |
241 | MACvDisableDefaultKey(pDevice->PortOffset); | 241 | MACvDisableDefaultKey(pDevice->PortOffset); |
242 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "WEP function disable. \n"); | 242 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "WEP function disable. \n"); |
@@ -295,7 +295,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
295 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" Link Success ! \n"); | 295 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" Link Success ! \n"); |
296 | } | 296 | } |
297 | else { | 297 | else { |
298 | sLinkStatus.bLink = FALSE; | 298 | sLinkStatus.bLink = false; |
299 | } | 299 | } |
300 | if (copy_to_user(pReq->data, &sLinkStatus, sizeof(SCmdLinkStatus))) { | 300 | if (copy_to_user(pReq->data, &sLinkStatus, sizeof(SCmdLinkStatus))) { |
301 | result = -EFAULT; | 301 | result = -EFAULT; |
@@ -356,7 +356,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
356 | pList->sBSSIDList[ii].bWEPOn = true; | 356 | pList->sBSSIDList[ii].bWEPOn = true; |
357 | } | 357 | } |
358 | else { | 358 | else { |
359 | pList->sBSSIDList[ii].bWEPOn = FALSE; | 359 | pList->sBSSIDList[ii].bWEPOn = false; |
360 | } | 360 | } |
361 | ii ++; | 361 | ii ++; |
362 | if (ii >= pList->uItem) | 362 | if (ii >= pList->uItem) |
@@ -391,15 +391,15 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
391 | netif_stop_queue(pDevice->dev); | 391 | netif_stop_queue(pDevice->dev); |
392 | 392 | ||
393 | spin_lock_irq(&pDevice->lock); | 393 | spin_lock_irq(&pDevice->lock); |
394 | if (pDevice->bRadioOff == FALSE) { | 394 | if (pDevice->bRadioOff == false) { |
395 | CARDbRadioPowerOff(pDevice); | 395 | CARDbRadioPowerOff(pDevice); |
396 | } | 396 | } |
397 | pDevice->bLinkPass = FALSE; | 397 | pDevice->bLinkPass = false; |
398 | memset(pMgmt->abyCurrBSSID, 0, 6); | 398 | memset(pMgmt->abyCurrBSSID, 0, 6); |
399 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 399 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
400 | del_timer(&pDevice->sTimerCommand); | 400 | del_timer(&pDevice->sTimerCommand); |
401 | del_timer(&pMgmt->sTimerSecondCallback); | 401 | del_timer(&pMgmt->sTimerSecondCallback); |
402 | pDevice->bCmdRunning = FALSE; | 402 | pDevice->bCmdRunning = false; |
403 | pDevice->bMACSuspend = true; | 403 | pDevice->bMACSuspend = true; |
404 | MACvIntDisable(pDevice->PortOffset); | 404 | MACvIntDisable(pDevice->PortOffset); |
405 | spin_unlock_irq(&pDevice->lock); | 405 | spin_unlock_irq(&pDevice->lock); |
@@ -416,7 +416,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
416 | vMgrTimerInit(pDevice); | 416 | vMgrTimerInit(pDevice); |
417 | MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); | 417 | MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); |
418 | add_timer(&pMgmt->sTimerSecondCallback); | 418 | add_timer(&pMgmt->sTimerSecondCallback); |
419 | pDevice->bMACSuspend = FALSE; | 419 | pDevice->bMACSuspend = false; |
420 | } | 420 | } |
421 | break; | 421 | break; |
422 | 422 | ||
@@ -462,7 +462,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
462 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Enable 802.1x\n"); | 462 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Enable 802.1x\n"); |
463 | } | 463 | } |
464 | else { | 464 | else { |
465 | pDevice->bEnable8021x = FALSE; | 465 | pDevice->bEnable8021x = false; |
466 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Disable 802.1x\n"); | 466 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Disable 802.1x\n"); |
467 | } | 467 | } |
468 | 468 | ||
@@ -482,7 +482,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
482 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Enable HostWEP\n"); | 482 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Enable HostWEP\n"); |
483 | } | 483 | } |
484 | else { | 484 | else { |
485 | pDevice->bEnableHostWEP = FALSE; | 485 | pDevice->bEnableHostWEP = false; |
486 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Disable HostWEP\n"); | 486 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Disable HostWEP\n"); |
487 | } | 487 | } |
488 | 488 | ||
@@ -502,7 +502,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
502 | } | 502 | } |
503 | else { | 503 | else { |
504 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "close wpadev\n"); | 504 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "close wpadev\n"); |
505 | pDevice->bWPADEVUp = FALSE; | 505 | pDevice->bWPADEVUp = false; |
506 | } | 506 | } |
507 | 507 | ||
508 | break; | 508 | break; |
@@ -559,7 +559,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
559 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Share Key \n"); | 559 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Share Key \n"); |
560 | } | 560 | } |
561 | else { | 561 | else { |
562 | pMgmt->bShareKeyAlgorithm = FALSE; | 562 | pMgmt->bShareKeyAlgorithm = false; |
563 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Open System \n"); | 563 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Open System \n"); |
564 | } | 564 | } |
565 | memcpy(pMgmt->abyIBSSSuppRates, abySuppRates, 6); | 565 | memcpy(pMgmt->abyIBSSSuppRates, abySuppRates, 6); |
@@ -672,8 +672,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
672 | wpa_Result.proto = 0; | 672 | wpa_Result.proto = 0; |
673 | wpa_Result.key_mgmt = 0; | 673 | wpa_Result.key_mgmt = 0; |
674 | wpa_Result.eap_type = 0; | 674 | wpa_Result.eap_type = 0; |
675 | wpa_Result.authenticated = FALSE; | 675 | wpa_Result.authenticated = false; |
676 | pDevice->fWPA_Authened = FALSE; | 676 | pDevice->fWPA_Authened = false; |
677 | if (copy_from_user(&wpa_Result, pReq->data, sizeof(wpa_Result))) { | 677 | if (copy_from_user(&wpa_Result, pReq->data, sizeof(wpa_Result))) { |
678 | result = -EFAULT; | 678 | result = -EFAULT; |
679 | break; | 679 | break; |
@@ -700,7 +700,7 @@ if(wpa_Result.authenticated==true) { | |||
700 | //printk("wpa-->proto=%d\n",wpa_Result.proto); | 700 | //printk("wpa-->proto=%d\n",wpa_Result.proto); |
701 | //printk("wpa-->key-mgmt=%d\n",wpa_Result.key_mgmt); | 701 | //printk("wpa-->key-mgmt=%d\n",wpa_Result.key_mgmt); |
702 | //printk("wpa-->eap_type=%d\n",wpa_Result.eap_type); | 702 | //printk("wpa-->eap_type=%d\n",wpa_Result.eap_type); |
703 | //printk("wpa-->authenticated is %s\n",(wpa_Result.authenticated==true)?"true":"FALSE"); | 703 | //printk("wpa-->authenticated is %s\n",(wpa_Result.authenticated==true)?"true":"false"); |
704 | 704 | ||
705 | pReq->wResult = 0; | 705 | pReq->wResult = 0; |
706 | break; | 706 | break; |
diff --git a/drivers/staging/vt6655/iwctl.c b/drivers/staging/vt6655/iwctl.c index 7aca978cbd0d..43227617aabe 100644 --- a/drivers/staging/vt6655/iwctl.c +++ b/drivers/staging/vt6655/iwctl.c | |||
@@ -751,7 +751,7 @@ int iwctl_giwap(struct net_device *dev, | |||
751 | 751 | ||
752 | memcpy(wrq->sa_data, pMgmt->abyCurrBSSID, 6); | 752 | memcpy(wrq->sa_data, pMgmt->abyCurrBSSID, 6); |
753 | //2008-0410,<Modify> by Einsn Liu | 753 | //2008-0410,<Modify> by Einsn Liu |
754 | if ((pDevice->bLinkPass == FALSE) && (pMgmt->eCurrMode != WMAC_MODE_ESS_AP)) | 754 | if ((pDevice->bLinkPass == false) && (pMgmt->eCurrMode != WMAC_MODE_ESS_AP)) |
755 | memset(wrq->sa_data, 0, 6); | 755 | memset(wrq->sa_data, 0, 6); |
756 | 756 | ||
757 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { | 757 | if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) { |
@@ -834,7 +834,7 @@ int iwctl_siwessid(struct net_device *dev, | |||
834 | 834 | ||
835 | 835 | ||
836 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWESSID \n"); | 836 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWESSID \n"); |
837 | pDevice->fWPA_Authened = FALSE; | 837 | pDevice->fWPA_Authened = false; |
838 | if (pMgmt->eScanState == WMAC_IS_SCANNING) { | 838 | if (pMgmt->eScanState == WMAC_IS_SCANNING) { |
839 | // In scanning.. | 839 | // In scanning.. |
840 | printk("SIOCSIWESSID(??)-->In scanning...\n"); | 840 | printk("SIOCSIWESSID(??)-->In scanning...\n"); |
@@ -1044,7 +1044,7 @@ int iwctl_siwrate(struct net_device *dev, | |||
1044 | 1044 | ||
1045 | } | 1045 | } |
1046 | else { | 1046 | else { |
1047 | pDevice->bFixRate = FALSE; | 1047 | pDevice->bFixRate = false; |
1048 | pDevice->uConnectionRate = 13; | 1048 | pDevice->uConnectionRate = 13; |
1049 | printk("auto rate:connection_rate is 13\n"); | 1049 | printk("auto rate:connection_rate is 13\n"); |
1050 | } | 1050 | } |
@@ -1377,7 +1377,7 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){ | |||
1377 | }else if(index>0){ | 1377 | }else if(index>0){ |
1378 | //when the length is 0 the request only changes the default transmit key index | 1378 | //when the length is 0 the request only changes the default transmit key index |
1379 | //check the new key has a non zero lenget | 1379 | //check the new key has a non zero lenget |
1380 | if(pDevice->bEncryptionEnable==FALSE) | 1380 | if(pDevice->bEncryptionEnable==false) |
1381 | { | 1381 | { |
1382 | rc = -EINVAL; | 1382 | rc = -EINVAL; |
1383 | return rc; | 1383 | return rc; |
@@ -1396,10 +1396,10 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){ | |||
1396 | 1396 | ||
1397 | }else {//disable the key | 1397 | }else {//disable the key |
1398 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Disable WEP function\n"); | 1398 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Disable WEP function\n"); |
1399 | if(pDevice->bEncryptionEnable==FALSE) | 1399 | if(pDevice->bEncryptionEnable==false) |
1400 | return 0; | 1400 | return 0; |
1401 | pMgmt->bShareKeyAlgorithm = FALSE; | 1401 | pMgmt->bShareKeyAlgorithm = false; |
1402 | pDevice->bEncryptionEnable = FALSE; | 1402 | pDevice->bEncryptionEnable = false; |
1403 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; | 1403 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; |
1404 | if (pDevice->flags & DEVICE_FLAGS_OPENED) { | 1404 | if (pDevice->flags & DEVICE_FLAGS_OPENED) { |
1405 | spin_lock_irq(&pDevice->lock); | 1405 | spin_lock_irq(&pDevice->lock); |
@@ -1479,8 +1479,8 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){ | |||
1479 | if(wrq->flags & IW_ENCODE_DISABLED){ | 1479 | if(wrq->flags & IW_ENCODE_DISABLED){ |
1480 | 1480 | ||
1481 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Disable WEP function\n"); | 1481 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Disable WEP function\n"); |
1482 | pMgmt->bShareKeyAlgorithm = FALSE; | 1482 | pMgmt->bShareKeyAlgorithm = false; |
1483 | pDevice->bEncryptionEnable = FALSE; | 1483 | pDevice->bEncryptionEnable = false; |
1484 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; | 1484 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; |
1485 | if (pDevice->flags & DEVICE_FLAGS_OPENED) { | 1485 | if (pDevice->flags & DEVICE_FLAGS_OPENED) { |
1486 | spin_lock_irq(&pDevice->lock); | 1486 | spin_lock_irq(&pDevice->lock); |
@@ -1497,7 +1497,7 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){ | |||
1497 | } | 1497 | } |
1498 | if(wrq->flags & IW_ENCODE_OPEN) { | 1498 | if(wrq->flags & IW_ENCODE_OPEN) { |
1499 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Enable WEP & Open System\n"); | 1499 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Enable WEP & Open System\n"); |
1500 | pMgmt->bShareKeyAlgorithm = FALSE; | 1500 | pMgmt->bShareKeyAlgorithm = false; |
1501 | } | 1501 | } |
1502 | return rc; | 1502 | return rc; |
1503 | } | 1503 | } |
@@ -1763,7 +1763,7 @@ int iwctl_siwauth(struct net_device *dev, | |||
1763 | wpa_version = wrq->value; | 1763 | wpa_version = wrq->value; |
1764 | if(wrq->value == IW_AUTH_WPA_VERSION_DISABLED) { | 1764 | if(wrq->value == IW_AUTH_WPA_VERSION_DISABLED) { |
1765 | PRINT_K("iwctl_siwauth:set WPADEV to disable at 1??????\n"); | 1765 | PRINT_K("iwctl_siwauth:set WPADEV to disable at 1??????\n"); |
1766 | //pDevice->bWPADevEnable = FALSE; | 1766 | //pDevice->bWPADevEnable = false; |
1767 | } | 1767 | } |
1768 | else if(wrq->value == IW_AUTH_WPA_VERSION_WPA) { | 1768 | else if(wrq->value == IW_AUTH_WPA_VERSION_WPA) { |
1769 | PRINT_K("iwctl_siwauth:set WPADEV to WPA1******\n"); | 1769 | PRINT_K("iwctl_siwauth:set WPADEV to WPA1******\n"); |
@@ -1818,7 +1818,7 @@ int iwctl_siwauth(struct net_device *dev, | |||
1818 | break; | 1818 | break; |
1819 | case IW_AUTH_80211_AUTH_ALG: | 1819 | case IW_AUTH_80211_AUTH_ALG: |
1820 | if(wrq->value==IW_AUTH_ALG_OPEN_SYSTEM){ | 1820 | if(wrq->value==IW_AUTH_ALG_OPEN_SYSTEM){ |
1821 | pMgmt->bShareKeyAlgorithm=FALSE; | 1821 | pMgmt->bShareKeyAlgorithm=false; |
1822 | }else if(wrq->value==IW_AUTH_ALG_SHARED_KEY){ | 1822 | }else if(wrq->value==IW_AUTH_ALG_SHARED_KEY){ |
1823 | pMgmt->bShareKeyAlgorithm=true; | 1823 | pMgmt->bShareKeyAlgorithm=true; |
1824 | } | 1824 | } |
@@ -1833,13 +1833,13 @@ int iwctl_siwauth(struct net_device *dev, | |||
1833 | break; | 1833 | break; |
1834 | case IW_AUTH_PRIVACY_INVOKED: | 1834 | case IW_AUTH_PRIVACY_INVOKED: |
1835 | pDevice->bEncryptionEnable = !!wrq->value; | 1835 | pDevice->bEncryptionEnable = !!wrq->value; |
1836 | if(pDevice->bEncryptionEnable == FALSE){ | 1836 | if(pDevice->bEncryptionEnable == false){ |
1837 | wpa_version = 0; | 1837 | wpa_version = 0; |
1838 | pairwise = 0; | 1838 | pairwise = 0; |
1839 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; | 1839 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; |
1840 | pMgmt->bShareKeyAlgorithm = FALSE; | 1840 | pMgmt->bShareKeyAlgorithm = false; |
1841 | pMgmt->eAuthenMode = FALSE; | 1841 | pMgmt->eAuthenMode = false; |
1842 | //pDevice->bWPADevEnable = FALSE; | 1842 | //pDevice->bWPADevEnable = false; |
1843 | } | 1843 | } |
1844 | 1844 | ||
1845 | break; | 1845 | break; |
@@ -1852,9 +1852,9 @@ int iwctl_siwauth(struct net_device *dev, | |||
1852 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pairwise = %d\n",pairwise); | 1852 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pairwise = %d\n",pairwise); |
1853 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->eEncryptionStatus = %d\n",pDevice->eEncryptionStatus); | 1853 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->eEncryptionStatus = %d\n",pDevice->eEncryptionStatus); |
1854 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pMgmt->eAuthenMode = %d\n",pMgmt->eAuthenMode); | 1854 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pMgmt->eAuthenMode = %d\n",pMgmt->eAuthenMode); |
1855 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pMgmt->bShareKeyAlgorithm = %s\n",pMgmt->bShareKeyAlgorithm?"true":"FALSE"); | 1855 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pMgmt->bShareKeyAlgorithm = %s\n",pMgmt->bShareKeyAlgorithm?"true":"false"); |
1856 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->bEncryptionEnable = %s\n",pDevice->bEncryptionEnable?"true":"FALSE"); | 1856 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->bEncryptionEnable = %s\n",pDevice->bEncryptionEnable?"true":"false"); |
1857 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->bWPADevEnable = %s\n",pDevice->bWPADevEnable?"true":"FALSE"); | 1857 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pDevice->bWPADevEnable = %s\n",pDevice->bWPADevEnable?"true":"false"); |
1858 | */ | 1858 | */ |
1859 | return ret; | 1859 | return ret; |
1860 | } | 1860 | } |
diff --git a/drivers/staging/vt6655/key.c b/drivers/staging/vt6655/key.c index d61b493b19c6..67b07208215a 100644 --- a/drivers/staging/vt6655/key.c +++ b/drivers/staging/vt6655/key.c | |||
@@ -65,16 +65,16 @@ s_vCheckKeyTableValid (PSKeyManagement pTable, unsigned long dwIoBase) | |||
65 | 65 | ||
66 | for (i=0;i<MAX_KEY_TABLE;i++) { | 66 | for (i=0;i<MAX_KEY_TABLE;i++) { |
67 | if ((pTable->KeyTable[i].bInUse == true) && | 67 | if ((pTable->KeyTable[i].bInUse == true) && |
68 | (pTable->KeyTable[i].PairwiseKey.bKeyValid == FALSE) && | 68 | (pTable->KeyTable[i].PairwiseKey.bKeyValid == false) && |
69 | (pTable->KeyTable[i].GroupKey[0].bKeyValid == FALSE) && | 69 | (pTable->KeyTable[i].GroupKey[0].bKeyValid == false) && |
70 | (pTable->KeyTable[i].GroupKey[1].bKeyValid == FALSE) && | 70 | (pTable->KeyTable[i].GroupKey[1].bKeyValid == false) && |
71 | (pTable->KeyTable[i].GroupKey[2].bKeyValid == FALSE) && | 71 | (pTable->KeyTable[i].GroupKey[2].bKeyValid == false) && |
72 | (pTable->KeyTable[i].GroupKey[3].bKeyValid == FALSE) | 72 | (pTable->KeyTable[i].GroupKey[3].bKeyValid == false) |
73 | ) { | 73 | ) { |
74 | 74 | ||
75 | pTable->KeyTable[i].bInUse = FALSE; | 75 | pTable->KeyTable[i].bInUse = false; |
76 | pTable->KeyTable[i].wKeyCtl = 0; | 76 | pTable->KeyTable[i].wKeyCtl = 0; |
77 | pTable->KeyTable[i].bSoftWEP = FALSE; | 77 | pTable->KeyTable[i].bSoftWEP = false; |
78 | MACvDisableKeyEntry(dwIoBase, i); | 78 | MACvDisableKeyEntry(dwIoBase, i); |
79 | } | 79 | } |
80 | } | 80 | } |
@@ -102,16 +102,16 @@ void KeyvInitTable (PSKeyManagement pTable, unsigned long dwIoBase) | |||
102 | int jj; | 102 | int jj; |
103 | 103 | ||
104 | for (i=0;i<MAX_KEY_TABLE;i++) { | 104 | for (i=0;i<MAX_KEY_TABLE;i++) { |
105 | pTable->KeyTable[i].bInUse = FALSE; | 105 | pTable->KeyTable[i].bInUse = false; |
106 | pTable->KeyTable[i].PairwiseKey.bKeyValid = FALSE; | 106 | pTable->KeyTable[i].PairwiseKey.bKeyValid = false; |
107 | pTable->KeyTable[i].PairwiseKey.pvKeyTable = (void *)&pTable->KeyTable[i]; | 107 | pTable->KeyTable[i].PairwiseKey.pvKeyTable = (void *)&pTable->KeyTable[i]; |
108 | for (jj=0; jj < MAX_GROUP_KEY; jj++) { | 108 | for (jj=0; jj < MAX_GROUP_KEY; jj++) { |
109 | pTable->KeyTable[i].GroupKey[jj].bKeyValid = FALSE; | 109 | pTable->KeyTable[i].GroupKey[jj].bKeyValid = false; |
110 | pTable->KeyTable[i].GroupKey[jj].pvKeyTable = (void *)&pTable->KeyTable[i]; | 110 | pTable->KeyTable[i].GroupKey[jj].pvKeyTable = (void *)&pTable->KeyTable[i]; |
111 | } | 111 | } |
112 | pTable->KeyTable[i].wKeyCtl = 0; | 112 | pTable->KeyTable[i].wKeyCtl = 0; |
113 | pTable->KeyTable[i].dwGTKeyIndex = 0; | 113 | pTable->KeyTable[i].dwGTKeyIndex = 0; |
114 | pTable->KeyTable[i].bSoftWEP = FALSE; | 114 | pTable->KeyTable[i].bSoftWEP = false; |
115 | MACvDisableKeyEntry(dwIoBase, i); | 115 | MACvDisableKeyEntry(dwIoBase, i); |
116 | } | 116 | } |
117 | } | 117 | } |
@@ -128,7 +128,7 @@ void KeyvInitTable (PSKeyManagement pTable, unsigned long dwIoBase) | |||
128 | * Out: | 128 | * Out: |
129 | * pKey - Key return | 129 | * pKey - Key return |
130 | * | 130 | * |
131 | * Return Value: true if found otherwise FALSE | 131 | * Return Value: true if found otherwise false |
132 | * | 132 | * |
133 | */ | 133 | */ |
134 | BOOL KeybGetKey ( | 134 | BOOL KeybGetKey ( |
@@ -152,7 +152,7 @@ BOOL KeybGetKey ( | |||
152 | return (true); | 152 | return (true); |
153 | } | 153 | } |
154 | else { | 154 | else { |
155 | return (FALSE); | 155 | return (false); |
156 | } | 156 | } |
157 | } else if (dwKeyIndex < MAX_GROUP_KEY) { | 157 | } else if (dwKeyIndex < MAX_GROUP_KEY) { |
158 | if (pTable->KeyTable[i].GroupKey[dwKeyIndex].bKeyValid == true) { | 158 | if (pTable->KeyTable[i].GroupKey[dwKeyIndex].bKeyValid == true) { |
@@ -160,15 +160,15 @@ BOOL KeybGetKey ( | |||
160 | return (true); | 160 | return (true); |
161 | } | 161 | } |
162 | else { | 162 | else { |
163 | return (FALSE); | 163 | return (false); |
164 | } | 164 | } |
165 | } | 165 | } |
166 | else { | 166 | else { |
167 | return (FALSE); | 167 | return (false); |
168 | } | 168 | } |
169 | } | 169 | } |
170 | } | 170 | } |
171 | return (FALSE); | 171 | return (false); |
172 | } | 172 | } |
173 | 173 | ||
174 | 174 | ||
@@ -186,7 +186,7 @@ BOOL KeybGetKey ( | |||
186 | * Out: | 186 | * Out: |
187 | * none | 187 | * none |
188 | * | 188 | * |
189 | * Return Value: true if success otherwise FALSE | 189 | * Return Value: true if success otherwise false |
190 | * | 190 | * |
191 | */ | 191 | */ |
192 | BOOL KeybSetKey ( | 192 | BOOL KeybSetKey ( |
@@ -210,7 +210,7 @@ BOOL KeybSetKey ( | |||
210 | 210 | ||
211 | j = (MAX_KEY_TABLE-1); | 211 | j = (MAX_KEY_TABLE-1); |
212 | for (i=0;i<(MAX_KEY_TABLE-1);i++) { | 212 | for (i=0;i<(MAX_KEY_TABLE-1);i++) { |
213 | if ((pTable->KeyTable[i].bInUse == FALSE) && | 213 | if ((pTable->KeyTable[i].bInUse == false) && |
214 | (j == (MAX_KEY_TABLE-1))) { | 214 | (j == (MAX_KEY_TABLE-1))) { |
215 | // found empty table | 215 | // found empty table |
216 | j = i; | 216 | j = i; |
@@ -227,7 +227,7 @@ BOOL KeybSetKey ( | |||
227 | } else { | 227 | } else { |
228 | // Group key | 228 | // Group key |
229 | if ((dwKeyIndex & 0x000000FF) >= MAX_GROUP_KEY) | 229 | if ((dwKeyIndex & 0x000000FF) >= MAX_GROUP_KEY) |
230 | return (FALSE); | 230 | return (false); |
231 | pKey = &(pTable->KeyTable[i].GroupKey[dwKeyIndex & 0x000000FF]); | 231 | pKey = &(pTable->KeyTable[i].GroupKey[dwKeyIndex & 0x000000FF]); |
232 | if ((dwKeyIndex & TRANSMIT_KEY) != 0) { | 232 | if ((dwKeyIndex & TRANSMIT_KEY) != 0) { |
233 | // Group transmit key | 233 | // Group transmit key |
@@ -292,7 +292,7 @@ BOOL KeybSetKey ( | |||
292 | } else { | 292 | } else { |
293 | // Group key | 293 | // Group key |
294 | if ((dwKeyIndex & 0x000000FF) >= MAX_GROUP_KEY) | 294 | if ((dwKeyIndex & 0x000000FF) >= MAX_GROUP_KEY) |
295 | return (FALSE); | 295 | return (false); |
296 | pKey = &(pTable->KeyTable[j].GroupKey[dwKeyIndex & 0x000000FF]); | 296 | pKey = &(pTable->KeyTable[j].GroupKey[dwKeyIndex & 0x000000FF]); |
297 | if ((dwKeyIndex & TRANSMIT_KEY) != 0) { | 297 | if ((dwKeyIndex & TRANSMIT_KEY) != 0) { |
298 | // Group transmit key | 298 | // Group transmit key |
@@ -344,7 +344,7 @@ BOOL KeybSetKey ( | |||
344 | 344 | ||
345 | return (true); | 345 | return (true); |
346 | } | 346 | } |
347 | return (FALSE); | 347 | return (false); |
348 | } | 348 | } |
349 | 349 | ||
350 | 350 | ||
@@ -359,7 +359,7 @@ BOOL KeybSetKey ( | |||
359 | * Out: | 359 | * Out: |
360 | * none | 360 | * none |
361 | * | 361 | * |
362 | * Return Value: true if success otherwise FALSE | 362 | * Return Value: true if success otherwise false |
363 | * | 363 | * |
364 | */ | 364 | */ |
365 | BOOL KeybRemoveKey ( | 365 | BOOL KeybRemoveKey ( |
@@ -375,14 +375,14 @@ BOOL KeybRemoveKey ( | |||
375 | // dealte all key | 375 | // dealte all key |
376 | if ((dwKeyIndex & PAIRWISE_KEY) != 0) { | 376 | if ((dwKeyIndex & PAIRWISE_KEY) != 0) { |
377 | for (i=0;i<MAX_KEY_TABLE;i++) { | 377 | for (i=0;i<MAX_KEY_TABLE;i++) { |
378 | pTable->KeyTable[i].PairwiseKey.bKeyValid = FALSE; | 378 | pTable->KeyTable[i].PairwiseKey.bKeyValid = false; |
379 | } | 379 | } |
380 | s_vCheckKeyTableValid(pTable, dwIoBase); | 380 | s_vCheckKeyTableValid(pTable, dwIoBase); |
381 | return true; | 381 | return true; |
382 | } | 382 | } |
383 | else if ((dwKeyIndex & 0x000000FF) < MAX_GROUP_KEY) { | 383 | else if ((dwKeyIndex & 0x000000FF) < MAX_GROUP_KEY) { |
384 | for (i=0;i<MAX_KEY_TABLE;i++) { | 384 | for (i=0;i<MAX_KEY_TABLE;i++) { |
385 | pTable->KeyTable[i].GroupKey[dwKeyIndex & 0x000000FF].bKeyValid = FALSE; | 385 | pTable->KeyTable[i].GroupKey[dwKeyIndex & 0x000000FF].bKeyValid = false; |
386 | if ((dwKeyIndex & 0x7FFFFFFF) == (pTable->KeyTable[i].dwGTKeyIndex & 0x7FFFFFFF)) { | 386 | if ((dwKeyIndex & 0x7FFFFFFF) == (pTable->KeyTable[i].dwGTKeyIndex & 0x7FFFFFFF)) { |
387 | // remove Group transmit key | 387 | // remove Group transmit key |
388 | pTable->KeyTable[i].dwGTKeyIndex = 0; | 388 | pTable->KeyTable[i].dwGTKeyIndex = 0; |
@@ -392,7 +392,7 @@ BOOL KeybRemoveKey ( | |||
392 | return true; | 392 | return true; |
393 | } | 393 | } |
394 | else { | 394 | else { |
395 | return FALSE; | 395 | return false; |
396 | } | 396 | } |
397 | } | 397 | } |
398 | 398 | ||
@@ -400,12 +400,12 @@ BOOL KeybRemoveKey ( | |||
400 | if ((pTable->KeyTable[i].bInUse == true) && | 400 | if ((pTable->KeyTable[i].bInUse == true) && |
401 | !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) { | 401 | !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) { |
402 | if ((dwKeyIndex & PAIRWISE_KEY) != 0) { | 402 | if ((dwKeyIndex & PAIRWISE_KEY) != 0) { |
403 | pTable->KeyTable[i].PairwiseKey.bKeyValid = FALSE; | 403 | pTable->KeyTable[i].PairwiseKey.bKeyValid = false; |
404 | s_vCheckKeyTableValid(pTable, dwIoBase); | 404 | s_vCheckKeyTableValid(pTable, dwIoBase); |
405 | return (true); | 405 | return (true); |
406 | } | 406 | } |
407 | else if ((dwKeyIndex & 0x000000FF) < MAX_GROUP_KEY) { | 407 | else if ((dwKeyIndex & 0x000000FF) < MAX_GROUP_KEY) { |
408 | pTable->KeyTable[i].GroupKey[dwKeyIndex & 0x000000FF].bKeyValid = FALSE; | 408 | pTable->KeyTable[i].GroupKey[dwKeyIndex & 0x000000FF].bKeyValid = false; |
409 | if ((dwKeyIndex & 0x7FFFFFFF) == (pTable->KeyTable[i].dwGTKeyIndex & 0x7FFFFFFF)) { | 409 | if ((dwKeyIndex & 0x7FFFFFFF) == (pTable->KeyTable[i].dwGTKeyIndex & 0x7FFFFFFF)) { |
410 | // remove Group transmit key | 410 | // remove Group transmit key |
411 | pTable->KeyTable[i].dwGTKeyIndex = 0; | 411 | pTable->KeyTable[i].dwGTKeyIndex = 0; |
@@ -414,11 +414,11 @@ BOOL KeybRemoveKey ( | |||
414 | return (true); | 414 | return (true); |
415 | } | 415 | } |
416 | else { | 416 | else { |
417 | return (FALSE); | 417 | return (false); |
418 | } | 418 | } |
419 | } | 419 | } |
420 | } | 420 | } |
421 | return (FALSE); | 421 | return (false); |
422 | } | 422 | } |
423 | 423 | ||
424 | 424 | ||
@@ -432,7 +432,7 @@ BOOL KeybRemoveKey ( | |||
432 | * Out: | 432 | * Out: |
433 | * none | 433 | * none |
434 | * | 434 | * |
435 | * Return Value: true if success otherwise FALSE | 435 | * Return Value: true if success otherwise false |
436 | * | 436 | * |
437 | */ | 437 | */ |
438 | BOOL KeybRemoveAllKey ( | 438 | BOOL KeybRemoveAllKey ( |
@@ -446,16 +446,16 @@ BOOL KeybRemoveAllKey ( | |||
446 | for (i=0;i<MAX_KEY_TABLE;i++) { | 446 | for (i=0;i<MAX_KEY_TABLE;i++) { |
447 | if ((pTable->KeyTable[i].bInUse == true) && | 447 | if ((pTable->KeyTable[i].bInUse == true) && |
448 | !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) { | 448 | !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) { |
449 | pTable->KeyTable[i].PairwiseKey.bKeyValid = FALSE; | 449 | pTable->KeyTable[i].PairwiseKey.bKeyValid = false; |
450 | for(u=0;u<MAX_GROUP_KEY;u++) { | 450 | for(u=0;u<MAX_GROUP_KEY;u++) { |
451 | pTable->KeyTable[i].GroupKey[u].bKeyValid = FALSE; | 451 | pTable->KeyTable[i].GroupKey[u].bKeyValid = false; |
452 | } | 452 | } |
453 | pTable->KeyTable[i].dwGTKeyIndex = 0; | 453 | pTable->KeyTable[i].dwGTKeyIndex = 0; |
454 | s_vCheckKeyTableValid(pTable, dwIoBase); | 454 | s_vCheckKeyTableValid(pTable, dwIoBase); |
455 | return (true); | 455 | return (true); |
456 | } | 456 | } |
457 | } | 457 | } |
458 | return (FALSE); | 458 | return (false); |
459 | } | 459 | } |
460 | 460 | ||
461 | /* | 461 | /* |
@@ -467,7 +467,7 @@ BOOL KeybRemoveAllKey ( | |||
467 | * Out: | 467 | * Out: |
468 | * none | 468 | * none |
469 | * | 469 | * |
470 | * Return Value: true if success otherwise FALSE | 470 | * Return Value: true if success otherwise false |
471 | * | 471 | * |
472 | */ | 472 | */ |
473 | void KeyvRemoveWEPKey ( | 473 | void KeyvRemoveWEPKey ( |
@@ -480,7 +480,7 @@ void KeyvRemoveWEPKey ( | |||
480 | if ((dwKeyIndex & 0x000000FF) < MAX_GROUP_KEY) { | 480 | if ((dwKeyIndex & 0x000000FF) < MAX_GROUP_KEY) { |
481 | if (pTable->KeyTable[MAX_KEY_TABLE-1].bInUse == true) { | 481 | if (pTable->KeyTable[MAX_KEY_TABLE-1].bInUse == true) { |
482 | if (pTable->KeyTable[MAX_KEY_TABLE-1].GroupKey[dwKeyIndex & 0x000000FF].byCipherSuite == KEY_CTL_WEP) { | 482 | if (pTable->KeyTable[MAX_KEY_TABLE-1].GroupKey[dwKeyIndex & 0x000000FF].byCipherSuite == KEY_CTL_WEP) { |
483 | pTable->KeyTable[MAX_KEY_TABLE-1].GroupKey[dwKeyIndex & 0x000000FF].bKeyValid = FALSE; | 483 | pTable->KeyTable[MAX_KEY_TABLE-1].GroupKey[dwKeyIndex & 0x000000FF].bKeyValid = false; |
484 | if ((dwKeyIndex & 0x7FFFFFFF) == (pTable->KeyTable[MAX_KEY_TABLE-1].dwGTKeyIndex & 0x7FFFFFFF)) { | 484 | if ((dwKeyIndex & 0x7FFFFFFF) == (pTable->KeyTable[MAX_KEY_TABLE-1].dwGTKeyIndex & 0x7FFFFFFF)) { |
485 | // remove Group transmit key | 485 | // remove Group transmit key |
486 | pTable->KeyTable[MAX_KEY_TABLE-1].dwGTKeyIndex = 0; | 486 | pTable->KeyTable[MAX_KEY_TABLE-1].dwGTKeyIndex = 0; |
@@ -514,7 +514,7 @@ void KeyvRemoveAllWEPKey ( | |||
514 | * Out: | 514 | * Out: |
515 | * pKey - Key return | 515 | * pKey - Key return |
516 | * | 516 | * |
517 | * Return Value: true if found otherwise FALSE | 517 | * Return Value: true if found otherwise false |
518 | * | 518 | * |
519 | */ | 519 | */ |
520 | BOOL KeybGetTransmitKey ( | 520 | BOOL KeybGetTransmitKey ( |
@@ -547,14 +547,14 @@ BOOL KeybGetTransmitKey ( | |||
547 | return (true); | 547 | return (true); |
548 | } | 548 | } |
549 | else { | 549 | else { |
550 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"PairwiseKey.bKeyValid == FALSE\n"); | 550 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"PairwiseKey.bKeyValid == false\n"); |
551 | return (FALSE); | 551 | return (false); |
552 | } | 552 | } |
553 | } // End of Type == PAIRWISE | 553 | } // End of Type == PAIRWISE |
554 | else { | 554 | else { |
555 | if (pTable->KeyTable[i].dwGTKeyIndex == 0) { | 555 | if (pTable->KeyTable[i].dwGTKeyIndex == 0) { |
556 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"ERROR: dwGTKeyIndex == 0 !!!\n"); | 556 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"ERROR: dwGTKeyIndex == 0 !!!\n"); |
557 | return FALSE; | 557 | return false; |
558 | } | 558 | } |
559 | if (pTable->KeyTable[i].GroupKey[(pTable->KeyTable[i].dwGTKeyIndex&0x000000FF)].bKeyValid == true) { | 559 | if (pTable->KeyTable[i].GroupKey[(pTable->KeyTable[i].dwGTKeyIndex&0x000000FF)].bKeyValid == true) { |
560 | *pKey = &(pTable->KeyTable[i].GroupKey[(pTable->KeyTable[i].dwGTKeyIndex&0x000000FF)]); | 560 | *pKey = &(pTable->KeyTable[i].GroupKey[(pTable->KeyTable[i].dwGTKeyIndex&0x000000FF)]); |
@@ -570,8 +570,8 @@ BOOL KeybGetTransmitKey ( | |||
570 | return (true); | 570 | return (true); |
571 | } | 571 | } |
572 | else { | 572 | else { |
573 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"GroupKey.bKeyValid == FALSE\n"); | 573 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"GroupKey.bKeyValid == false\n"); |
574 | return (FALSE); | 574 | return (false); |
575 | } | 575 | } |
576 | } // End of Type = GROUP | 576 | } // End of Type = GROUP |
577 | } // BSSID match | 577 | } // BSSID match |
@@ -581,7 +581,7 @@ BOOL KeybGetTransmitKey ( | |||
581 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"%02x ", *(pbyBSSID+ii)); | 581 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"%02x ", *(pbyBSSID+ii)); |
582 | } | 582 | } |
583 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"\n"); | 583 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"\n"); |
584 | return (FALSE); | 584 | return (false); |
585 | } | 585 | } |
586 | 586 | ||
587 | 587 | ||
@@ -594,7 +594,7 @@ BOOL KeybGetTransmitKey ( | |||
594 | * Out: | 594 | * Out: |
595 | * none | 595 | * none |
596 | * | 596 | * |
597 | * Return Value: true if found otherwise FALSE | 597 | * Return Value: true if found otherwise false |
598 | * | 598 | * |
599 | */ | 599 | */ |
600 | BOOL KeybCheckPairewiseKey ( | 600 | BOOL KeybCheckPairewiseKey ( |
@@ -612,7 +612,7 @@ BOOL KeybCheckPairewiseKey ( | |||
612 | return (true); | 612 | return (true); |
613 | } | 613 | } |
614 | } | 614 | } |
615 | return (FALSE); | 615 | return (false); |
616 | } | 616 | } |
617 | 617 | ||
618 | /* | 618 | /* |
@@ -628,7 +628,7 @@ BOOL KeybCheckPairewiseKey ( | |||
628 | * Out: | 628 | * Out: |
629 | * none | 629 | * none |
630 | * | 630 | * |
631 | * Return Value: true if success otherwise FALSE | 631 | * Return Value: true if success otherwise false |
632 | * | 632 | * |
633 | */ | 633 | */ |
634 | BOOL KeybSetDefaultKey ( | 634 | BOOL KeybSetDefaultKey ( |
@@ -650,9 +650,9 @@ BOOL KeybSetDefaultKey ( | |||
650 | 650 | ||
651 | 651 | ||
652 | if ((dwKeyIndex & PAIRWISE_KEY) != 0) { // Pairwise key | 652 | if ((dwKeyIndex & PAIRWISE_KEY) != 0) { // Pairwise key |
653 | return (FALSE); | 653 | return (false); |
654 | } else if ((dwKeyIndex & 0x000000FF) >= MAX_GROUP_KEY) { | 654 | } else if ((dwKeyIndex & 0x000000FF) >= MAX_GROUP_KEY) { |
655 | return (FALSE); | 655 | return (false); |
656 | } | 656 | } |
657 | 657 | ||
658 | pTable->KeyTable[MAX_KEY_TABLE-1].bInUse = true; | 658 | pTable->KeyTable[MAX_KEY_TABLE-1].bInUse = true; |
@@ -678,7 +678,7 @@ BOOL KeybSetDefaultKey ( | |||
678 | pTable->KeyTable[MAX_KEY_TABLE-1].wKeyCtl |= 0x4000; // disable on-fly disable address match | 678 | pTable->KeyTable[MAX_KEY_TABLE-1].wKeyCtl |= 0x4000; // disable on-fly disable address match |
679 | pTable->KeyTable[MAX_KEY_TABLE-1].bSoftWEP = true; | 679 | pTable->KeyTable[MAX_KEY_TABLE-1].bSoftWEP = true; |
680 | } else { | 680 | } else { |
681 | if (pTable->KeyTable[MAX_KEY_TABLE-1].bSoftWEP == FALSE) | 681 | if (pTable->KeyTable[MAX_KEY_TABLE-1].bSoftWEP == false) |
682 | pTable->KeyTable[MAX_KEY_TABLE-1].wKeyCtl |= 0xC000; // enable on-fly disable address match | 682 | pTable->KeyTable[MAX_KEY_TABLE-1].wKeyCtl |= 0xC000; // enable on-fly disable address match |
683 | } | 683 | } |
684 | 684 | ||
@@ -735,7 +735,7 @@ BOOL KeybSetDefaultKey ( | |||
735 | * Out: | 735 | * Out: |
736 | * none | 736 | * none |
737 | * | 737 | * |
738 | * Return Value: true if success otherwise FALSE | 738 | * Return Value: true if success otherwise false |
739 | * | 739 | * |
740 | */ | 740 | */ |
741 | BOOL KeybSetAllGroupKey ( | 741 | BOOL KeybSetAllGroupKey ( |
@@ -758,9 +758,9 @@ BOOL KeybSetAllGroupKey ( | |||
758 | 758 | ||
759 | 759 | ||
760 | if ((dwKeyIndex & PAIRWISE_KEY) != 0) { // Pairwise key | 760 | if ((dwKeyIndex & PAIRWISE_KEY) != 0) { // Pairwise key |
761 | return (FALSE); | 761 | return (false); |
762 | } else if ((dwKeyIndex & 0x000000FF) >= MAX_GROUP_KEY) { | 762 | } else if ((dwKeyIndex & 0x000000FF) >= MAX_GROUP_KEY) { |
763 | return (FALSE); | 763 | return (false); |
764 | } | 764 | } |
765 | 765 | ||
766 | for (i=0; i < MAX_KEY_TABLE-1; i++) { | 766 | for (i=0; i < MAX_KEY_TABLE-1; i++) { |
diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c index 4f46f488f793..afeccd2449ef 100644 --- a/drivers/staging/vt6655/mac.c +++ b/drivers/staging/vt6655/mac.c | |||
@@ -137,7 +137,7 @@ void MACvReadAllRegs (unsigned long dwIoBase, unsigned char *pbyMacRegs) | |||
137 | * Out: | 137 | * Out: |
138 | * none | 138 | * none |
139 | * | 139 | * |
140 | * Return Value: true if all test bits On; otherwise FALSE | 140 | * Return Value: true if all test bits On; otherwise false |
141 | * | 141 | * |
142 | */ | 142 | */ |
143 | BOOL MACbIsRegBitsOn (unsigned long dwIoBase, unsigned char byRegOfs, unsigned char byTestBits) | 143 | BOOL MACbIsRegBitsOn (unsigned long dwIoBase, unsigned char byRegOfs, unsigned char byTestBits) |
@@ -160,7 +160,7 @@ BOOL MACbIsRegBitsOn (unsigned long dwIoBase, unsigned char byRegOfs, unsigned c | |||
160 | * Out: | 160 | * Out: |
161 | * none | 161 | * none |
162 | * | 162 | * |
163 | * Return Value: true if all test bits Off; otherwise FALSE | 163 | * Return Value: true if all test bits Off; otherwise false |
164 | * | 164 | * |
165 | */ | 165 | */ |
166 | BOOL MACbIsRegBitsOff (unsigned long dwIoBase, unsigned char byRegOfs, unsigned char byTestBits) | 166 | BOOL MACbIsRegBitsOff (unsigned long dwIoBase, unsigned char byRegOfs, unsigned char byTestBits) |
@@ -181,7 +181,7 @@ BOOL MACbIsRegBitsOff (unsigned long dwIoBase, unsigned char byRegOfs, unsigned | |||
181 | * Out: | 181 | * Out: |
182 | * none | 182 | * none |
183 | * | 183 | * |
184 | * Return Value: true if interrupt is disable; otherwise FALSE | 184 | * Return Value: true if interrupt is disable; otherwise false |
185 | * | 185 | * |
186 | */ | 186 | */ |
187 | BOOL MACbIsIntDisable (unsigned long dwIoBase) | 187 | BOOL MACbIsIntDisable (unsigned long dwIoBase) |
@@ -190,7 +190,7 @@ BOOL MACbIsIntDisable (unsigned long dwIoBase) | |||
190 | 190 | ||
191 | VNSvInPortD(dwIoBase + MAC_REG_IMR, &dwData); | 191 | VNSvInPortD(dwIoBase + MAC_REG_IMR, &dwData); |
192 | if (dwData != 0) | 192 | if (dwData != 0) |
193 | return FALSE; | 193 | return false; |
194 | 194 | ||
195 | return true; | 195 | return true; |
196 | } | 196 | } |
@@ -556,7 +556,7 @@ void MACvSetLoopbackMode (unsigned long dwIoBase, unsigned char byLoopbackMode) | |||
556 | * Out: | 556 | * Out: |
557 | * none | 557 | * none |
558 | * | 558 | * |
559 | * Return Value: true if in Loopback mode; otherwise FALSE | 559 | * Return Value: true if in Loopback mode; otherwise false |
560 | * | 560 | * |
561 | */ | 561 | */ |
562 | BOOL MACbIsInLoopbackMode (unsigned long dwIoBase) | 562 | BOOL MACbIsInLoopbackMode (unsigned long dwIoBase) |
@@ -566,7 +566,7 @@ BOOL MACbIsInLoopbackMode (unsigned long dwIoBase) | |||
566 | VNSvInPortB(dwIoBase + MAC_REG_TEST, &byOrgValue); | 566 | VNSvInPortB(dwIoBase + MAC_REG_TEST, &byOrgValue); |
567 | if (byOrgValue & (TEST_LBINT | TEST_LBEXT)) | 567 | if (byOrgValue & (TEST_LBINT | TEST_LBEXT)) |
568 | return true; | 568 | return true; |
569 | return FALSE; | 569 | return false; |
570 | } | 570 | } |
571 | 571 | ||
572 | /* | 572 | /* |
@@ -725,7 +725,7 @@ void MACvRestoreContext (unsigned long dwIoBase, unsigned char *pbyCxtBuf) | |||
725 | * Out: | 725 | * Out: |
726 | * none | 726 | * none |
727 | * | 727 | * |
728 | * Return Value: true if all values are the same; otherwise FALSE | 728 | * Return Value: true if all values are the same; otherwise false |
729 | * | 729 | * |
730 | */ | 730 | */ |
731 | BOOL MACbCompareContext (unsigned long dwIoBase, unsigned char *pbyCxtBuf) | 731 | BOOL MACbCompareContext (unsigned long dwIoBase, unsigned char *pbyCxtBuf) |
@@ -733,27 +733,27 @@ BOOL MACbCompareContext (unsigned long dwIoBase, unsigned char *pbyCxtBuf) | |||
733 | unsigned long dwData; | 733 | unsigned long dwData; |
734 | 734 | ||
735 | // compare MAC context to determine if this is a power lost init, | 735 | // compare MAC context to determine if this is a power lost init, |
736 | // return true for power remaining init, return FALSE for power lost init | 736 | // return true for power remaining init, return false for power lost init |
737 | 737 | ||
738 | // compare CURR_RX_DESC_ADDR, CURR_TX_DESC_ADDR | 738 | // compare CURR_RX_DESC_ADDR, CURR_TX_DESC_ADDR |
739 | VNSvInPortD(dwIoBase + MAC_REG_TXDMAPTR0, &dwData); | 739 | VNSvInPortD(dwIoBase + MAC_REG_TXDMAPTR0, &dwData); |
740 | if (dwData != *(unsigned long *)(pbyCxtBuf + MAC_REG_TXDMAPTR0)) { | 740 | if (dwData != *(unsigned long *)(pbyCxtBuf + MAC_REG_TXDMAPTR0)) { |
741 | return FALSE; | 741 | return false; |
742 | } | 742 | } |
743 | 743 | ||
744 | VNSvInPortD(dwIoBase + MAC_REG_AC0DMAPTR, &dwData); | 744 | VNSvInPortD(dwIoBase + MAC_REG_AC0DMAPTR, &dwData); |
745 | if (dwData != *(unsigned long *)(pbyCxtBuf + MAC_REG_AC0DMAPTR)) { | 745 | if (dwData != *(unsigned long *)(pbyCxtBuf + MAC_REG_AC0DMAPTR)) { |
746 | return FALSE; | 746 | return false; |
747 | } | 747 | } |
748 | 748 | ||
749 | VNSvInPortD(dwIoBase + MAC_REG_RXDMAPTR0, &dwData); | 749 | VNSvInPortD(dwIoBase + MAC_REG_RXDMAPTR0, &dwData); |
750 | if (dwData != *(unsigned long *)(pbyCxtBuf + MAC_REG_RXDMAPTR0)) { | 750 | if (dwData != *(unsigned long *)(pbyCxtBuf + MAC_REG_RXDMAPTR0)) { |
751 | return FALSE; | 751 | return false; |
752 | } | 752 | } |
753 | 753 | ||
754 | VNSvInPortD(dwIoBase + MAC_REG_RXDMAPTR1, &dwData); | 754 | VNSvInPortD(dwIoBase + MAC_REG_RXDMAPTR1, &dwData); |
755 | if (dwData != *(unsigned long *)(pbyCxtBuf + MAC_REG_RXDMAPTR1)) { | 755 | if (dwData != *(unsigned long *)(pbyCxtBuf + MAC_REG_RXDMAPTR1)) { |
756 | return FALSE; | 756 | return false; |
757 | } | 757 | } |
758 | 758 | ||
759 | 759 | ||
@@ -770,7 +770,7 @@ BOOL MACbCompareContext (unsigned long dwIoBase, unsigned char *pbyCxtBuf) | |||
770 | * Out: | 770 | * Out: |
771 | * none | 771 | * none |
772 | * | 772 | * |
773 | * Return Value: true if Reset Success; otherwise FALSE | 773 | * Return Value: true if Reset Success; otherwise false |
774 | * | 774 | * |
775 | */ | 775 | */ |
776 | BOOL MACbSoftwareReset (unsigned long dwIoBase) | 776 | BOOL MACbSoftwareReset (unsigned long dwIoBase) |
@@ -788,7 +788,7 @@ BOOL MACbSoftwareReset (unsigned long dwIoBase) | |||
788 | break; | 788 | break; |
789 | } | 789 | } |
790 | if (ww == W_MAX_TIMEOUT) | 790 | if (ww == W_MAX_TIMEOUT) |
791 | return FALSE; | 791 | return false; |
792 | return true; | 792 | return true; |
793 | 793 | ||
794 | } | 794 | } |
@@ -803,7 +803,7 @@ BOOL MACbSoftwareReset (unsigned long dwIoBase) | |||
803 | * Out: | 803 | * Out: |
804 | * none | 804 | * none |
805 | * | 805 | * |
806 | * Return Value: true if success; otherwise FALSE | 806 | * Return Value: true if success; otherwise false |
807 | * | 807 | * |
808 | */ | 808 | */ |
809 | BOOL MACbSafeSoftwareReset (unsigned long dwIoBase) | 809 | BOOL MACbSafeSoftwareReset (unsigned long dwIoBase) |
@@ -836,7 +836,7 @@ BOOL MACbSafeSoftwareReset (unsigned long dwIoBase) | |||
836 | * Out: | 836 | * Out: |
837 | * none | 837 | * none |
838 | * | 838 | * |
839 | * Return Value: true if success; otherwise FALSE | 839 | * Return Value: true if success; otherwise false |
840 | * | 840 | * |
841 | */ | 841 | */ |
842 | BOOL MACbSafeRxOff (unsigned long dwIoBase) | 842 | BOOL MACbSafeRxOff (unsigned long dwIoBase) |
@@ -858,7 +858,7 @@ BOOL MACbSafeRxOff (unsigned long dwIoBase) | |||
858 | if (ww == W_MAX_TIMEOUT) { | 858 | if (ww == W_MAX_TIMEOUT) { |
859 | DBG_PORT80(0x10); | 859 | DBG_PORT80(0x10); |
860 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x10)\n"); | 860 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x10)\n"); |
861 | return(FALSE); | 861 | return(false); |
862 | } | 862 | } |
863 | for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { | 863 | for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { |
864 | VNSvInPortD(dwIoBase + MAC_REG_RXDMACTL1, &dwData); | 864 | VNSvInPortD(dwIoBase + MAC_REG_RXDMACTL1, &dwData); |
@@ -868,7 +868,7 @@ BOOL MACbSafeRxOff (unsigned long dwIoBase) | |||
868 | if (ww == W_MAX_TIMEOUT) { | 868 | if (ww == W_MAX_TIMEOUT) { |
869 | DBG_PORT80(0x11); | 869 | DBG_PORT80(0x11); |
870 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x11)\n"); | 870 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x11)\n"); |
871 | return(FALSE); | 871 | return(false); |
872 | } | 872 | } |
873 | 873 | ||
874 | // try to safe shutdown RX | 874 | // try to safe shutdown RX |
@@ -882,7 +882,7 @@ BOOL MACbSafeRxOff (unsigned long dwIoBase) | |||
882 | if (ww == W_MAX_TIMEOUT) { | 882 | if (ww == W_MAX_TIMEOUT) { |
883 | DBG_PORT80(0x12); | 883 | DBG_PORT80(0x12); |
884 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x12)\n"); | 884 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x12)\n"); |
885 | return(FALSE); | 885 | return(false); |
886 | } | 886 | } |
887 | return true; | 887 | return true; |
888 | } | 888 | } |
@@ -897,7 +897,7 @@ BOOL MACbSafeRxOff (unsigned long dwIoBase) | |||
897 | * Out: | 897 | * Out: |
898 | * none | 898 | * none |
899 | * | 899 | * |
900 | * Return Value: true if success; otherwise FALSE | 900 | * Return Value: true if success; otherwise false |
901 | * | 901 | * |
902 | */ | 902 | */ |
903 | BOOL MACbSafeTxOff (unsigned long dwIoBase) | 903 | BOOL MACbSafeTxOff (unsigned long dwIoBase) |
@@ -921,7 +921,7 @@ BOOL MACbSafeTxOff (unsigned long dwIoBase) | |||
921 | if (ww == W_MAX_TIMEOUT) { | 921 | if (ww == W_MAX_TIMEOUT) { |
922 | DBG_PORT80(0x20); | 922 | DBG_PORT80(0x20); |
923 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x20)\n"); | 923 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x20)\n"); |
924 | return(FALSE); | 924 | return(false); |
925 | } | 925 | } |
926 | for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { | 926 | for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { |
927 | VNSvInPortD(dwIoBase + MAC_REG_AC0DMACTL, &dwData); | 927 | VNSvInPortD(dwIoBase + MAC_REG_AC0DMACTL, &dwData); |
@@ -931,7 +931,7 @@ BOOL MACbSafeTxOff (unsigned long dwIoBase) | |||
931 | if (ww == W_MAX_TIMEOUT) { | 931 | if (ww == W_MAX_TIMEOUT) { |
932 | DBG_PORT80(0x21); | 932 | DBG_PORT80(0x21); |
933 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x21)\n"); | 933 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x21)\n"); |
934 | return(FALSE); | 934 | return(false); |
935 | } | 935 | } |
936 | 936 | ||
937 | // try to safe shutdown TX | 937 | // try to safe shutdown TX |
@@ -946,7 +946,7 @@ BOOL MACbSafeTxOff (unsigned long dwIoBase) | |||
946 | if (ww == W_MAX_TIMEOUT) { | 946 | if (ww == W_MAX_TIMEOUT) { |
947 | DBG_PORT80(0x24); | 947 | DBG_PORT80(0x24); |
948 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x24)\n"); | 948 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x24)\n"); |
949 | return(FALSE); | 949 | return(false); |
950 | } | 950 | } |
951 | return true; | 951 | return true; |
952 | } | 952 | } |
@@ -961,24 +961,24 @@ BOOL MACbSafeTxOff (unsigned long dwIoBase) | |||
961 | * Out: | 961 | * Out: |
962 | * none | 962 | * none |
963 | * | 963 | * |
964 | * Return Value: true if success; otherwise FALSE | 964 | * Return Value: true if success; otherwise false |
965 | * | 965 | * |
966 | */ | 966 | */ |
967 | BOOL MACbSafeStop (unsigned long dwIoBase) | 967 | BOOL MACbSafeStop (unsigned long dwIoBase) |
968 | { | 968 | { |
969 | MACvRegBitsOff(dwIoBase, MAC_REG_TCR, TCR_AUTOBCNTX); | 969 | MACvRegBitsOff(dwIoBase, MAC_REG_TCR, TCR_AUTOBCNTX); |
970 | 970 | ||
971 | if (MACbSafeRxOff(dwIoBase) == FALSE) { | 971 | if (MACbSafeRxOff(dwIoBase) == false) { |
972 | DBG_PORT80(0xA1); | 972 | DBG_PORT80(0xA1); |
973 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" MACbSafeRxOff == FALSE)\n"); | 973 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" MACbSafeRxOff == false)\n"); |
974 | MACbSafeSoftwareReset(dwIoBase); | 974 | MACbSafeSoftwareReset(dwIoBase); |
975 | return FALSE; | 975 | return false; |
976 | } | 976 | } |
977 | if (MACbSafeTxOff(dwIoBase) == FALSE) { | 977 | if (MACbSafeTxOff(dwIoBase) == false) { |
978 | DBG_PORT80(0xA2); | 978 | DBG_PORT80(0xA2); |
979 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" MACbSafeTxOff == FALSE)\n"); | 979 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" MACbSafeTxOff == false)\n"); |
980 | MACbSafeSoftwareReset(dwIoBase); | 980 | MACbSafeSoftwareReset(dwIoBase); |
981 | return FALSE; | 981 | return false; |
982 | } | 982 | } |
983 | 983 | ||
984 | MACvRegBitsOff(dwIoBase, MAC_REG_HOSTCR, HOSTCR_MACEN); | 984 | MACvRegBitsOff(dwIoBase, MAC_REG_HOSTCR, HOSTCR_MACEN); |
@@ -996,7 +996,7 @@ BOOL MACbSafeStop (unsigned long dwIoBase) | |||
996 | * Out: | 996 | * Out: |
997 | * none | 997 | * none |
998 | * | 998 | * |
999 | * Return Value: true if success; otherwise FALSE | 999 | * Return Value: true if success; otherwise false |
1000 | * | 1000 | * |
1001 | */ | 1001 | */ |
1002 | BOOL MACbShutdown (unsigned long dwIoBase) | 1002 | BOOL MACbShutdown (unsigned long dwIoBase) |
@@ -1007,7 +1007,7 @@ BOOL MACbShutdown (unsigned long dwIoBase) | |||
1007 | // stop the adapter | 1007 | // stop the adapter |
1008 | if (!MACbSafeStop(dwIoBase)) { | 1008 | if (!MACbSafeStop(dwIoBase)) { |
1009 | MACvSetLoopbackMode(dwIoBase, MAC_LB_NONE); | 1009 | MACvSetLoopbackMode(dwIoBase, MAC_LB_NONE); |
1010 | return FALSE; | 1010 | return false; |
1011 | } | 1011 | } |
1012 | MACvSetLoopbackMode(dwIoBase, MAC_LB_NONE); | 1012 | MACvSetLoopbackMode(dwIoBase, MAC_LB_NONE); |
1013 | return true; | 1013 | return true; |
@@ -1342,7 +1342,7 @@ unsigned int ww = 0; | |||
1342 | if (ww == W_MAX_TIMEOUT) { | 1342 | if (ww == W_MAX_TIMEOUT) { |
1343 | DBG_PORT80(0x29); | 1343 | DBG_PORT80(0x29); |
1344 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x29)\n"); | 1344 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x29)\n"); |
1345 | return FALSE; | 1345 | return false; |
1346 | } | 1346 | } |
1347 | return true; | 1347 | return true; |
1348 | } | 1348 | } |
@@ -1435,7 +1435,7 @@ BOOL MACbPSWakeup (unsigned long dwIoBase) | |||
1435 | if (ww == W_MAX_TIMEOUT) { | 1435 | if (ww == W_MAX_TIMEOUT) { |
1436 | DBG_PORT80(0x36); | 1436 | DBG_PORT80(0x36); |
1437 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x33)\n"); | 1437 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" DBG_PORT80(0x33)\n"); |
1438 | return FALSE; | 1438 | return false; |
1439 | } | 1439 | } |
1440 | return true; | 1440 | return true; |
1441 | } | 1441 | } |
diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c index f191f8771410..cadd12e7eb24 100644 --- a/drivers/staging/vt6655/power.c +++ b/drivers/staging/vt6655/power.c | |||
@@ -161,12 +161,12 @@ PSvDisablePowerSaving( | |||
161 | // set always listen beacon | 161 | // set always listen beacon |
162 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_ALBCN); | 162 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_ALBCN); |
163 | 163 | ||
164 | pDevice->bEnablePSMode = FALSE; | 164 | pDevice->bEnablePSMode = false; |
165 | 165 | ||
166 | if (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE) { | 166 | if (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE) { |
167 | PSbSendNullPacket(pDevice); | 167 | PSbSendNullPacket(pDevice); |
168 | } | 168 | } |
169 | pDevice->bPWBitOn = FALSE; | 169 | pDevice->bPWBitOn = false; |
170 | return; | 170 | return; |
171 | } | 171 | } |
172 | 172 | ||
@@ -178,7 +178,7 @@ PSvDisablePowerSaving( | |||
178 | * | 178 | * |
179 | * Return Value: | 179 | * Return Value: |
180 | * true, if power down success | 180 | * true, if power down success |
181 | * FALSE, if fail | 181 | * false, if fail |
182 | -*/ | 182 | -*/ |
183 | 183 | ||
184 | 184 | ||
@@ -200,12 +200,12 @@ PSbConsiderPowerDown( | |||
200 | if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) { | 200 | if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) { |
201 | // check if in TIM wake period | 201 | // check if in TIM wake period |
202 | if (pMgmt->bInTIMWake) | 202 | if (pMgmt->bInTIMWake) |
203 | return FALSE; | 203 | return false; |
204 | } | 204 | } |
205 | 205 | ||
206 | // check scan state | 206 | // check scan state |
207 | if (pDevice->bCmdRunning) | 207 | if (pDevice->bCmdRunning) |
208 | return FALSE; | 208 | return false; |
209 | 209 | ||
210 | // Froce PSEN on | 210 | // Froce PSEN on |
211 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_PSEN); | 211 | MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_PSEN); |
@@ -213,20 +213,20 @@ PSbConsiderPowerDown( | |||
213 | // check if all TD are empty, | 213 | // check if all TD are empty, |
214 | for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx ++) { | 214 | for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx ++) { |
215 | if (pDevice->iTDUsed[uIdx] != 0) | 215 | if (pDevice->iTDUsed[uIdx] != 0) |
216 | return FALSE; | 216 | return false; |
217 | } | 217 | } |
218 | 218 | ||
219 | // check if rx isr is clear | 219 | // check if rx isr is clear |
220 | if (bCheckRxDMA && | 220 | if (bCheckRxDMA && |
221 | ((pDevice->dwIsr& ISR_RXDMA0) != 0) && | 221 | ((pDevice->dwIsr& ISR_RXDMA0) != 0) && |
222 | ((pDevice->dwIsr & ISR_RXDMA1) != 0)){ | 222 | ((pDevice->dwIsr & ISR_RXDMA1) != 0)){ |
223 | return FALSE; | 223 | return false; |
224 | }; | 224 | }; |
225 | 225 | ||
226 | if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) { | 226 | if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) { |
227 | if (bCheckCountToWakeUp && | 227 | if (bCheckCountToWakeUp && |
228 | (pMgmt->wCountToWakeUp == 0 || pMgmt->wCountToWakeUp == 1)) { | 228 | (pMgmt->wCountToWakeUp == 0 || pMgmt->wCountToWakeUp == 1)) { |
229 | return FALSE; | 229 | return false; |
230 | } | 230 | } |
231 | } | 231 | } |
232 | 232 | ||
@@ -307,23 +307,23 @@ PSbSendNullPacket( | |||
307 | unsigned int uIdx; | 307 | unsigned int uIdx; |
308 | 308 | ||
309 | 309 | ||
310 | if (pDevice->bLinkPass == FALSE) { | 310 | if (pDevice->bLinkPass == false) { |
311 | return FALSE; | 311 | return false; |
312 | } | 312 | } |
313 | #ifdef TxInSleep | 313 | #ifdef TxInSleep |
314 | if ((pDevice->bEnablePSMode == FALSE) && | 314 | if ((pDevice->bEnablePSMode == false) && |
315 | (pDevice->fTxDataInSleep == FALSE)){ | 315 | (pDevice->fTxDataInSleep == false)){ |
316 | return FALSE; | 316 | return false; |
317 | } | 317 | } |
318 | #else | 318 | #else |
319 | if (pDevice->bEnablePSMode == FALSE) { | 319 | if (pDevice->bEnablePSMode == false) { |
320 | return FALSE; | 320 | return false; |
321 | } | 321 | } |
322 | #endif | 322 | #endif |
323 | if (pDevice->bEnablePSMode) { | 323 | if (pDevice->bEnablePSMode) { |
324 | for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx ++) { | 324 | for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx ++) { |
325 | if (pDevice->iTDUsed[uIdx] != 0) | 325 | if (pDevice->iTDUsed[uIdx] != 0) |
326 | return FALSE; | 326 | return false; |
327 | } | 327 | } |
328 | } | 328 | } |
329 | 329 | ||
@@ -361,7 +361,7 @@ PSbSendNullPacket( | |||
361 | // send the frame | 361 | // send the frame |
362 | if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING) { | 362 | if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING) { |
363 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Send Null Packet failed !\n"); | 363 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Send Null Packet failed !\n"); |
364 | return FALSE; | 364 | return false; |
365 | } | 365 | } |
366 | else { | 366 | else { |
367 | 367 | ||
@@ -390,7 +390,7 @@ PSbIsNextTBTTWakeUp( | |||
390 | 390 | ||
391 | PSDevice pDevice = (PSDevice)hDeviceContext; | 391 | PSDevice pDevice = (PSDevice)hDeviceContext; |
392 | PSMgmtObject pMgmt = pDevice->pMgmt; | 392 | PSMgmtObject pMgmt = pDevice->pMgmt; |
393 | BOOL bWakeUp = FALSE; | 393 | BOOL bWakeUp = false; |
394 | 394 | ||
395 | if (pMgmt->wListenInterval >= 2) { | 395 | if (pMgmt->wListenInterval >= 2) { |
396 | if (pMgmt->wCountToWakeUp == 0) { | 396 | if (pMgmt->wCountToWakeUp == 0) { |
diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c index 6069d4aa86b3..eb75548e21ac 100644 --- a/drivers/staging/vt6655/rf.c +++ b/drivers/staging/vt6655/rf.c | |||
@@ -471,7 +471,7 @@ const unsigned long dwAL7230ChannelTable2[CB_MAX_CHANNEL] = { | |||
471 | * Out: | 471 | * Out: |
472 | * none | 472 | * none |
473 | * | 473 | * |
474 | * Return Value: true if succeeded; FALSE if failed. | 474 | * Return Value: true if succeeded; false if failed. |
475 | * | 475 | * |
476 | */ | 476 | */ |
477 | BOOL s_bAL7230Init (unsigned long dwIoBase) | 477 | BOOL s_bAL7230Init (unsigned long dwIoBase) |
@@ -552,7 +552,7 @@ BOOL s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
552 | * Out: | 552 | * Out: |
553 | * none | 553 | * none |
554 | * | 554 | * |
555 | * Return Value: true if succeeded; FALSE if failed. | 555 | * Return Value: true if succeeded; false if failed. |
556 | * | 556 | * |
557 | */ | 557 | */ |
558 | 558 | ||
@@ -567,7 +567,7 @@ BOOL s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
567 | * Out: | 567 | * Out: |
568 | * none | 568 | * none |
569 | * | 569 | * |
570 | * Return Value: true if succeeded; FALSE if failed. | 570 | * Return Value: true if succeeded; false if failed. |
571 | * | 571 | * |
572 | */ | 572 | */ |
573 | 573 | ||
@@ -585,7 +585,7 @@ BOOL s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
585 | * Out: | 585 | * Out: |
586 | * none | 586 | * none |
587 | * | 587 | * |
588 | * Return Value: true if succeeded; FALSE if failed. | 588 | * Return Value: true if succeeded; false if failed. |
589 | * | 589 | * |
590 | */ | 590 | */ |
591 | 591 | ||
@@ -599,7 +599,7 @@ BOOL s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
599 | * Out: | 599 | * Out: |
600 | * none | 600 | * none |
601 | * | 601 | * |
602 | * Return Value: true if succeeded; FALSE if failed. | 602 | * Return Value: true if succeeded; false if failed. |
603 | * | 603 | * |
604 | */ | 604 | */ |
605 | 605 | ||
@@ -619,7 +619,7 @@ BOOL s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
619 | * Out: | 619 | * Out: |
620 | * none | 620 | * none |
621 | * | 621 | * |
622 | * Return Value: true if succeeded; FALSE if failed. | 622 | * Return Value: true if succeeded; false if failed. |
623 | * | 623 | * |
624 | */ | 624 | */ |
625 | BOOL IFRFbWriteEmbeded (unsigned long dwIoBase, unsigned long dwData) | 625 | BOOL IFRFbWriteEmbeded (unsigned long dwIoBase, unsigned long dwData) |
@@ -638,7 +638,7 @@ BOOL IFRFbWriteEmbeded (unsigned long dwIoBase, unsigned long dwData) | |||
638 | 638 | ||
639 | if (ww == W_MAX_TIMEOUT) { | 639 | if (ww == W_MAX_TIMEOUT) { |
640 | // DBG_PORT80_ALWAYS(0x32); | 640 | // DBG_PORT80_ALWAYS(0x32); |
641 | return FALSE; | 641 | return false; |
642 | } | 642 | } |
643 | return true; | 643 | return true; |
644 | } | 644 | } |
@@ -654,7 +654,7 @@ BOOL IFRFbWriteEmbeded (unsigned long dwIoBase, unsigned long dwData) | |||
654 | * Out: | 654 | * Out: |
655 | * none | 655 | * none |
656 | * | 656 | * |
657 | * Return Value: true if succeeded; FALSE if failed. | 657 | * Return Value: true if succeeded; false if failed. |
658 | * | 658 | * |
659 | */ | 659 | */ |
660 | 660 | ||
@@ -668,7 +668,7 @@ BOOL IFRFbWriteEmbeded (unsigned long dwIoBase, unsigned long dwData) | |||
668 | * Out: | 668 | * Out: |
669 | * none | 669 | * none |
670 | * | 670 | * |
671 | * Return Value: true if succeeded; FALSE if failed. | 671 | * Return Value: true if succeeded; false if failed. |
672 | * | 672 | * |
673 | */ | 673 | */ |
674 | 674 | ||
@@ -681,7 +681,7 @@ BOOL IFRFbWriteEmbeded (unsigned long dwIoBase, unsigned long dwData) | |||
681 | * Out: | 681 | * Out: |
682 | * none | 682 | * none |
683 | * | 683 | * |
684 | * Return Value: true if succeeded; FALSE if failed. | 684 | * Return Value: true if succeeded; false if failed. |
685 | * | 685 | * |
686 | */ | 686 | */ |
687 | BOOL RFbAL2230Init (unsigned long dwIoBase) | 687 | BOOL RFbAL2230Init (unsigned long dwIoBase) |
@@ -761,7 +761,7 @@ BOOL RFbAL2230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
761 | * Out: | 761 | * Out: |
762 | * none | 762 | * none |
763 | * | 763 | * |
764 | * Return Value: true if succeeded; FALSE if failed. | 764 | * Return Value: true if succeeded; false if failed. |
765 | * | 765 | * |
766 | */ | 766 | */ |
767 | 767 | ||
@@ -776,7 +776,7 @@ BOOL RFbAL2230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
776 | * Out: | 776 | * Out: |
777 | * none | 777 | * none |
778 | * | 778 | * |
779 | * Return Value: true if succeeded; FALSE if failed. | 779 | * Return Value: true if succeeded; false if failed. |
780 | * | 780 | * |
781 | */ | 781 | */ |
782 | 782 | ||
@@ -790,7 +790,7 @@ BOOL RFbAL2230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
790 | * Out: | 790 | * Out: |
791 | * none | 791 | * none |
792 | * | 792 | * |
793 | * Return Value: true if succeeded; FALSE if failed. | 793 | * Return Value: true if succeeded; false if failed. |
794 | * | 794 | * |
795 | */ | 795 | */ |
796 | 796 | ||
@@ -804,7 +804,7 @@ BOOL RFbAL2230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) | |||
804 | * Out: | 804 | * Out: |
805 | * none | 805 | * none |
806 | * | 806 | * |
807 | * Return Value: true if succeeded; FALSE if failed. | 807 | * Return Value: true if succeeded; false if failed. |
808 | * | 808 | * |
809 | */ | 809 | */ |
810 | BOOL RFbInit ( | 810 | BOOL RFbInit ( |
@@ -826,7 +826,7 @@ BOOL bResult = true; | |||
826 | bResult = true; | 826 | bResult = true; |
827 | break; | 827 | break; |
828 | default : | 828 | default : |
829 | bResult = FALSE; | 829 | bResult = false; |
830 | break; | 830 | break; |
831 | } | 831 | } |
832 | return bResult; | 832 | return bResult; |
@@ -842,7 +842,7 @@ BOOL bResult = true; | |||
842 | * Out: | 842 | * Out: |
843 | * none | 843 | * none |
844 | * | 844 | * |
845 | * Return Value: true if succeeded; FALSE if failed. | 845 | * Return Value: true if succeeded; false if failed. |
846 | * | 846 | * |
847 | */ | 847 | */ |
848 | BOOL RFbShutDown ( | 848 | BOOL RFbShutDown ( |
@@ -872,7 +872,7 @@ BOOL bResult = true; | |||
872 | * Out: | 872 | * Out: |
873 | * none | 873 | * none |
874 | * | 874 | * |
875 | * Return Value: true if succeeded; FALSE if failed. | 875 | * Return Value: true if succeeded; false if failed. |
876 | * | 876 | * |
877 | */ | 877 | */ |
878 | BOOL RFbSelectChannel (unsigned long dwIoBase, unsigned char byRFType, unsigned char byChannel) | 878 | BOOL RFbSelectChannel (unsigned long dwIoBase, unsigned char byRFType, unsigned char byChannel) |
@@ -893,7 +893,7 @@ BOOL bResult = true; | |||
893 | bResult = true; | 893 | bResult = true; |
894 | break; | 894 | break; |
895 | default: | 895 | default: |
896 | bResult = FALSE; | 896 | bResult = false; |
897 | break; | 897 | break; |
898 | } | 898 | } |
899 | return bResult; | 899 | return bResult; |
@@ -923,12 +923,12 @@ BOOL RFvWriteWakeProgSyn (unsigned long dwIoBase, unsigned char byRFType, unsign | |||
923 | case RF_AL2230S: | 923 | case RF_AL2230S: |
924 | 924 | ||
925 | if (uChannel > CB_MAX_CHANNEL_24G) | 925 | if (uChannel > CB_MAX_CHANNEL_24G) |
926 | return FALSE; | 926 | return false; |
927 | 927 | ||
928 | byInitCount = CB_AL2230_INIT_SEQ + 2; // Init Reg + Channel Reg (2) | 928 | byInitCount = CB_AL2230_INIT_SEQ + 2; // Init Reg + Channel Reg (2) |
929 | bySleepCount = 0; | 929 | bySleepCount = 0; |
930 | if (byInitCount > (MISCFIFO_SYNDATASIZE - bySleepCount)) { | 930 | if (byInitCount > (MISCFIFO_SYNDATASIZE - bySleepCount)) { |
931 | return FALSE; | 931 | return false; |
932 | } | 932 | } |
933 | 933 | ||
934 | for (ii = 0; ii < CB_AL2230_INIT_SEQ; ii++ ) { | 934 | for (ii = 0; ii < CB_AL2230_INIT_SEQ; ii++ ) { |
@@ -945,7 +945,7 @@ BOOL RFvWriteWakeProgSyn (unsigned long dwIoBase, unsigned char byRFType, unsign | |||
945 | byInitCount = CB_AL7230_INIT_SEQ + 3; // Init Reg + Channel Reg (3) | 945 | byInitCount = CB_AL7230_INIT_SEQ + 3; // Init Reg + Channel Reg (3) |
946 | bySleepCount = 0; | 946 | bySleepCount = 0; |
947 | if (byInitCount > (MISCFIFO_SYNDATASIZE - bySleepCount)) { | 947 | if (byInitCount > (MISCFIFO_SYNDATASIZE - bySleepCount)) { |
948 | return FALSE; | 948 | return false; |
949 | } | 949 | } |
950 | 950 | ||
951 | if (uChannel <= CB_MAX_CHANNEL_24G) | 951 | if (uChannel <= CB_MAX_CHANNEL_24G) |
@@ -974,7 +974,7 @@ BOOL RFvWriteWakeProgSyn (unsigned long dwIoBase, unsigned char byRFType, unsign | |||
974 | break; | 974 | break; |
975 | 975 | ||
976 | default: | 976 | default: |
977 | return FALSE; | 977 | return false; |
978 | break; | 978 | break; |
979 | } | 979 | } |
980 | 980 | ||
@@ -993,7 +993,7 @@ BOOL RFvWriteWakeProgSyn (unsigned long dwIoBase, unsigned char byRFType, unsign | |||
993 | * Out: | 993 | * Out: |
994 | * none | 994 | * none |
995 | * | 995 | * |
996 | * Return Value: true if succeeded; FALSE if failed. | 996 | * Return Value: true if succeeded; false if failed. |
997 | * | 997 | * |
998 | */ | 998 | */ |
999 | BOOL RFbSetPower ( | 999 | BOOL RFbSetPower ( |
@@ -1011,7 +1011,7 @@ unsigned char byPwrdBm = 0; | |||
1011 | return true; | 1011 | return true; |
1012 | } | 1012 | } |
1013 | if ((uCH < 1) || (uCH > CB_MAX_CHANNEL)) { | 1013 | if ((uCH < 1) || (uCH > CB_MAX_CHANNEL)) { |
1014 | return FALSE; | 1014 | return false; |
1015 | } | 1015 | } |
1016 | 1016 | ||
1017 | switch (uRATE) { | 1017 | switch (uRATE) { |
@@ -1131,7 +1131,7 @@ unsigned char byPwrdBm = 0; | |||
1131 | * Out: | 1131 | * Out: |
1132 | * none | 1132 | * none |
1133 | * | 1133 | * |
1134 | * Return Value: true if succeeded; FALSE if failed. | 1134 | * Return Value: true if succeeded; false if failed. |
1135 | * | 1135 | * |
1136 | */ | 1136 | */ |
1137 | 1137 | ||
@@ -1145,7 +1145,7 @@ BOOL bResult = true; | |||
1145 | unsigned long dwMax7230Pwr = 0; | 1145 | unsigned long dwMax7230Pwr = 0; |
1146 | 1146 | ||
1147 | if (byPwr >= pDevice->byMaxPwrLevel) { | 1147 | if (byPwr >= pDevice->byMaxPwrLevel) { |
1148 | return (FALSE); | 1148 | return (false); |
1149 | } | 1149 | } |
1150 | switch (pDevice->byRFType) { | 1150 | switch (pDevice->byRFType) { |
1151 | 1151 | ||
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index fa0b8ef8db12..91c9a0d0b639 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c | |||
@@ -603,7 +603,7 @@ s_uGetDataDuration ( | |||
603 | break; | 603 | break; |
604 | } | 604 | } |
605 | 605 | ||
606 | ASSERT(FALSE); | 606 | ASSERT(false); |
607 | return 0; | 607 | return 0; |
608 | } | 608 | } |
609 | 609 | ||
@@ -1156,7 +1156,7 @@ s_vGenerateTxParameter ( | |||
1156 | { | 1156 | { |
1157 | unsigned int cbMACHdLen = WLAN_HDR_ADDR3_LEN; //24 | 1157 | unsigned int cbMACHdLen = WLAN_HDR_ADDR3_LEN; //24 |
1158 | unsigned short wFifoCtl; | 1158 | unsigned short wFifoCtl; |
1159 | BOOL bDisCRC = FALSE; | 1159 | BOOL bDisCRC = false; |
1160 | unsigned char byFBOption = AUTO_FB_NONE; | 1160 | unsigned char byFBOption = AUTO_FB_NONE; |
1161 | // unsigned short wCurrentRate = pDevice->wCurrentRate; | 1161 | // unsigned short wCurrentRate = pDevice->wCurrentRate; |
1162 | 1162 | ||
@@ -1340,7 +1340,7 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
1340 | unsigned long *pdwMIC_L; | 1340 | unsigned long *pdwMIC_L; |
1341 | unsigned long *pdwMIC_R; | 1341 | unsigned long *pdwMIC_R; |
1342 | unsigned long dwSafeMIC_L, dwSafeMIC_R; //Fix "Last Frag Size" < "MIC length". | 1342 | unsigned long dwSafeMIC_L, dwSafeMIC_R; //Fix "Last Frag Size" < "MIC length". |
1343 | BOOL bMIC2Frag = FALSE; | 1343 | BOOL bMIC2Frag = false; |
1344 | unsigned int uMICFragLen = 0; | 1344 | unsigned int uMICFragLen = 0; |
1345 | unsigned int uMACfragNum = 1; | 1345 | unsigned int uMACfragNum = 1; |
1346 | unsigned int uPadding = 0; | 1346 | unsigned int uPadding = 0; |
@@ -1362,7 +1362,7 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
1362 | unsigned short wTxBufSize; // FFinfo size | 1362 | unsigned short wTxBufSize; // FFinfo size |
1363 | unsigned int uTotalCopyLength = 0; | 1363 | unsigned int uTotalCopyLength = 0; |
1364 | unsigned char byFBOption = AUTO_FB_NONE; | 1364 | unsigned char byFBOption = AUTO_FB_NONE; |
1365 | BOOL bIsWEP256 = FALSE; | 1365 | BOOL bIsWEP256 = false; |
1366 | PSMgmtObject pMgmt = pDevice->pMgmt; | 1366 | PSMgmtObject pMgmt = pDevice->pMgmt; |
1367 | 1367 | ||
1368 | 1368 | ||
@@ -1373,7 +1373,7 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
1373 | (pDevice->eOPMode == OP_MODE_AP)) { | 1373 | (pDevice->eOPMode == OP_MODE_AP)) { |
1374 | 1374 | ||
1375 | if (is_multicast_ether_addr(&(psEthHeader->abyDstAddr[0]))) | 1375 | if (is_multicast_ether_addr(&(psEthHeader->abyDstAddr[0]))) |
1376 | bNeedACK = FALSE; | 1376 | bNeedACK = false; |
1377 | else | 1377 | else |
1378 | bNeedACK = true; | 1378 | bNeedACK = true; |
1379 | bIsAdhoc = true; | 1379 | bIsAdhoc = true; |
@@ -1381,7 +1381,7 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
1381 | else { | 1381 | else { |
1382 | // MSDUs in Infra mode always need ACK | 1382 | // MSDUs in Infra mode always need ACK |
1383 | bNeedACK = true; | 1383 | bNeedACK = true; |
1384 | bIsAdhoc = FALSE; | 1384 | bIsAdhoc = false; |
1385 | } | 1385 | } |
1386 | 1386 | ||
1387 | if (pDevice->bLongHeader) | 1387 | if (pDevice->bLongHeader) |
@@ -1418,11 +1418,11 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
1418 | 1418 | ||
1419 | cbFrameSize = cbMACHdLen + cbIVlen + (cbFrameBodySize + cbMIClen) + cbICVlen + cbFCSlen; | 1419 | cbFrameSize = cbMACHdLen + cbIVlen + (cbFrameBodySize + cbMIClen) + cbICVlen + cbFCSlen; |
1420 | 1420 | ||
1421 | if ((bNeedACK == FALSE) || | 1421 | if ((bNeedACK == false) || |
1422 | (cbFrameSize < pDevice->wRTSThreshold) || | 1422 | (cbFrameSize < pDevice->wRTSThreshold) || |
1423 | ((cbFrameSize >= pDevice->wFragmentationThreshold) && (pDevice->wFragmentationThreshold <= pDevice->wRTSThreshold)) | 1423 | ((cbFrameSize >= pDevice->wFragmentationThreshold) && (pDevice->wFragmentationThreshold <= pDevice->wRTSThreshold)) |
1424 | ) { | 1424 | ) { |
1425 | bRTS = FALSE; | 1425 | bRTS = false; |
1426 | } | 1426 | } |
1427 | else { | 1427 | else { |
1428 | bRTS = true; | 1428 | bRTS = true; |
@@ -1549,7 +1549,7 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
1549 | pbyPayloadHead = (unsigned char *)(pbyMacHdr + cbMACHdLen + uPadding + cbIVlen); | 1549 | pbyPayloadHead = (unsigned char *)(pbyMacHdr + cbMACHdLen + uPadding + cbIVlen); |
1550 | pbyIVHead = (unsigned char *)(pbyMacHdr + cbMACHdLen + uPadding); | 1550 | pbyIVHead = (unsigned char *)(pbyMacHdr + cbMACHdLen + uPadding); |
1551 | 1551 | ||
1552 | if ((cbFrameSize > pDevice->wFragmentationThreshold) && (bNeedACK == true) && (bIsWEP256 == FALSE)) { | 1552 | if ((cbFrameSize > pDevice->wFragmentationThreshold) && (bNeedACK == true) && (bIsWEP256 == false)) { |
1553 | // Fragmentation | 1553 | // Fragmentation |
1554 | // FragThreshold = Fragment size(Hdr+(IV)+fragment payload+(MIC)+(ICV)+FCS) | 1554 | // FragThreshold = Fragment size(Hdr+(IV)+fragment payload+(MIC)+(ICV)+FCS) |
1555 | cbFragmentSize = pDevice->wFragmentationThreshold; | 1555 | cbFragmentSize = pDevice->wFragmentationThreshold; |
@@ -1718,7 +1718,7 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
1718 | memcpy(pbyBuffer, (void *)psTxBufHd, uLength); | 1718 | memcpy(pbyBuffer, (void *)psTxBufHd, uLength); |
1719 | 1719 | ||
1720 | // Copy the Packet into a tx Buffer | 1720 | // Copy the Packet into a tx Buffer |
1721 | if (bMIC2Frag == FALSE) { | 1721 | if (bMIC2Frag == false) { |
1722 | 1722 | ||
1723 | memcpy((pbyBuffer + uLength), | 1723 | memcpy((pbyBuffer + uLength), |
1724 | (pPacket + 14 + uTotalCopyLength), | 1724 | (pPacket + 14 + uTotalCopyLength), |
@@ -1732,7 +1732,7 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
1732 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"LAST: uMICFragLen:%d, cbLastFragPayloadSize:%d, uTmpLen:%d\n", | 1732 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"LAST: uMICFragLen:%d, cbLastFragPayloadSize:%d, uTmpLen:%d\n", |
1733 | uMICFragLen, cbLastFragPayloadSize, uTmpLen); | 1733 | uMICFragLen, cbLastFragPayloadSize, uTmpLen); |
1734 | 1734 | ||
1735 | if (bMIC2Frag == FALSE) { | 1735 | if (bMIC2Frag == false) { |
1736 | if (uTmpLen != 0) | 1736 | if (uTmpLen != 0) |
1737 | MIC_vAppend((pbyBuffer + uLength), uTmpLen); | 1737 | MIC_vAppend((pbyBuffer + uLength), uTmpLen); |
1738 | pdwMIC_L = (unsigned long *)(pbyBuffer + uLength + uTmpLen); | 1738 | pdwMIC_L = (unsigned long *)(pbyBuffer + uLength + uTmpLen); |
@@ -2020,7 +2020,7 @@ s_cbFillTxBufHead(PSDevice pDevice, unsigned char byPktType, unsigned char *pbyT | |||
2020 | if (pDevice->bTxMICFail == true) { | 2020 | if (pDevice->bTxMICFail == true) { |
2021 | *pdwMIC_L = 0; | 2021 | *pdwMIC_L = 0; |
2022 | *pdwMIC_R = 0; | 2022 | *pdwMIC_R = 0; |
2023 | pDevice->bTxMICFail = FALSE; | 2023 | pDevice->bTxMICFail = false; |
2024 | } | 2024 | } |
2025 | 2025 | ||
2026 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"uLength: %d, %d\n", uLength, cbFrameBodySize); | 2026 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"uLength: %d, %d\n", uLength, cbFrameBodySize); |
@@ -2089,7 +2089,7 @@ vGenerateFIFOHeader(PSDevice pDevice, unsigned char byPktType, unsigned char *pb | |||
2089 | if ((pDevice->eOPMode == OP_MODE_ADHOC) || | 2089 | if ((pDevice->eOPMode == OP_MODE_ADHOC) || |
2090 | (pDevice->eOPMode == OP_MODE_AP)) { | 2090 | (pDevice->eOPMode == OP_MODE_AP)) { |
2091 | if (is_multicast_ether_addr(&(psEthHeader->abyDstAddr[0]))) { | 2091 | if (is_multicast_ether_addr(&(psEthHeader->abyDstAddr[0]))) { |
2092 | bNeedACK = FALSE; | 2092 | bNeedACK = false; |
2093 | pTxBufHead->wFIFOCtl = pTxBufHead->wFIFOCtl & (~FIFOCTL_NEEDACK); | 2093 | pTxBufHead->wFIFOCtl = pTxBufHead->wFIFOCtl & (~FIFOCTL_NEEDACK); |
2094 | } | 2094 | } |
2095 | else { | 2095 | else { |
@@ -2102,7 +2102,7 @@ vGenerateFIFOHeader(PSDevice pDevice, unsigned char byPktType, unsigned char *pb | |||
2102 | // MSDUs in Infra mode always need ACK | 2102 | // MSDUs in Infra mode always need ACK |
2103 | bNeedACK = true; | 2103 | bNeedACK = true; |
2104 | pTxBufHead->wFIFOCtl |= FIFOCTL_NEEDACK; | 2104 | pTxBufHead->wFIFOCtl |= FIFOCTL_NEEDACK; |
2105 | bIsAdhoc = FALSE; | 2105 | bIsAdhoc = false; |
2106 | } | 2106 | } |
2107 | 2107 | ||
2108 | 2108 | ||
@@ -2159,7 +2159,7 @@ vGenerateFIFOHeader(PSDevice pDevice, unsigned char byPktType, unsigned char *pb | |||
2159 | } | 2159 | } |
2160 | 2160 | ||
2161 | //Set FRAGCTL_WEPTYP | 2161 | //Set FRAGCTL_WEPTYP |
2162 | pDevice->bAES = FALSE; | 2162 | pDevice->bAES = false; |
2163 | 2163 | ||
2164 | //Set FRAGCTL_WEPTYP | 2164 | //Set FRAGCTL_WEPTYP |
2165 | if (pDevice->byLocalID > REV_ID_VT3253_A1) { | 2165 | if (pDevice->byLocalID > REV_ID_VT3253_A1) { |
@@ -2315,7 +2315,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2315 | unsigned int cbHeaderSize; | 2315 | unsigned int cbHeaderSize; |
2316 | unsigned int cbFrameBodySize; | 2316 | unsigned int cbFrameBodySize; |
2317 | BOOL bNeedACK; | 2317 | BOOL bNeedACK; |
2318 | BOOL bIsPSPOLL = FALSE; | 2318 | BOOL bIsPSPOLL = false; |
2319 | PSTxBufHead pTxBufHead; | 2319 | PSTxBufHead pTxBufHead; |
2320 | unsigned int cbFrameSize; | 2320 | unsigned int cbFrameSize; |
2321 | unsigned int cbIVlen = 0; | 2321 | unsigned int cbIVlen = 0; |
@@ -2389,7 +2389,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2389 | 2389 | ||
2390 | 2390 | ||
2391 | if (is_multicast_ether_addr(&(pPacket->p80211Header->sA3.abyAddr1[0]))) | 2391 | if (is_multicast_ether_addr(&(pPacket->p80211Header->sA3.abyAddr1[0]))) |
2392 | bNeedACK = FALSE; | 2392 | bNeedACK = false; |
2393 | else { | 2393 | else { |
2394 | bNeedACK = true; | 2394 | bNeedACK = true; |
2395 | pTxBufHead->wFIFOCtl |= FIFOCTL_NEEDACK; | 2395 | pTxBufHead->wFIFOCtl |= FIFOCTL_NEEDACK; |
@@ -2403,7 +2403,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2403 | //pDevice->byPreambleType = PREAMBLE_LONG; | 2403 | //pDevice->byPreambleType = PREAMBLE_LONG; |
2404 | // probe-response don't retry | 2404 | // probe-response don't retry |
2405 | //if ((pPacket->p80211Header->sA4.wFrameCtl & TYPE_SUBTYPE_MASK) == TYPE_MGMT_PROBE_RSP) { | 2405 | //if ((pPacket->p80211Header->sA4.wFrameCtl & TYPE_SUBTYPE_MASK) == TYPE_MGMT_PROBE_RSP) { |
2406 | // bNeedACK = FALSE; | 2406 | // bNeedACK = false; |
2407 | // pTxBufHead->wFIFOCtl &= (~FIFOCTL_NEEDACK); | 2407 | // pTxBufHead->wFIFOCtl &= (~FIFOCTL_NEEDACK); |
2408 | //} | 2408 | //} |
2409 | } | 2409 | } |
@@ -2423,7 +2423,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2423 | // Notes: | 2423 | // Notes: |
2424 | // Although spec says MMPDU can be fragmented; In most case, | 2424 | // Although spec says MMPDU can be fragmented; In most case, |
2425 | // no one will send a MMPDU under fragmentation. With RTS may occur. | 2425 | // no one will send a MMPDU under fragmentation. With RTS may occur. |
2426 | pDevice->bAES = FALSE; //Set FRAGCTL_WEPTYP | 2426 | pDevice->bAES = false; //Set FRAGCTL_WEPTYP |
2427 | 2427 | ||
2428 | if (WLAN_GET_FC_ISWEP(pPacket->p80211Header->sA4.wFrameCtl) != 0) { | 2428 | if (WLAN_GET_FC_ISWEP(pPacket->p80211Header->sA4.wFrameCtl) != 0) { |
2429 | if (pDevice->eEncryptionStatus == Ndis802_11Encryption1Enabled) { | 2429 | if (pDevice->eEncryptionStatus == Ndis802_11Encryption1Enabled) { |
@@ -2527,7 +2527,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2527 | (pDevice->bLinkPass == true)) { | 2527 | (pDevice->bLinkPass == true)) { |
2528 | pbyBSSID = pDevice->abyBSSID; | 2528 | pbyBSSID = pDevice->abyBSSID; |
2529 | // get pairwise key | 2529 | // get pairwise key |
2530 | if (KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, PAIRWISE_KEY, &pTransmitKey) == FALSE) { | 2530 | if (KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, PAIRWISE_KEY, &pTransmitKey) == false) { |
2531 | // get group key | 2531 | // get group key |
2532 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == true) { | 2532 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == true) { |
2533 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Get GTK.\n"); | 2533 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Get GTK.\n"); |
@@ -2540,13 +2540,13 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2540 | } | 2540 | } |
2541 | // get group key | 2541 | // get group key |
2542 | pbyBSSID = pDevice->abyBroadcastAddr; | 2542 | pbyBSSID = pDevice->abyBroadcastAddr; |
2543 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == FALSE) { | 2543 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == false) { |
2544 | pTransmitKey = NULL; | 2544 | pTransmitKey = NULL; |
2545 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"KEY is NULL. OP Mode[%d]\n", pDevice->eOPMode); | 2545 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"KEY is NULL. OP Mode[%d]\n", pDevice->eOPMode); |
2546 | } else { | 2546 | } else { |
2547 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Get GTK.\n"); | 2547 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Get GTK.\n"); |
2548 | } | 2548 | } |
2549 | } while(FALSE); | 2549 | } while(false); |
2550 | //Fill TXKEY | 2550 | //Fill TXKEY |
2551 | s_vFillTxKey(pDevice, (unsigned char *)(pTxBufHead->adwTxKey), pbyIVHead, pTransmitKey, | 2551 | s_vFillTxKey(pDevice, (unsigned char *)(pTxBufHead->adwTxKey), pbyIVHead, pTransmitKey, |
2552 | (unsigned char *)pMACHeader, (unsigned short)cbFrameBodySize, NULL); | 2552 | (unsigned char *)pMACHeader, (unsigned short)cbFrameBodySize, NULL); |
@@ -2592,7 +2592,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2592 | // Disable PS | 2592 | // Disable PS |
2593 | MACbPSWakeup(pDevice->PortOffset); | 2593 | MACbPSWakeup(pDevice->PortOffset); |
2594 | } | 2594 | } |
2595 | pDevice->bPWBitOn = FALSE; | 2595 | pDevice->bPWBitOn = false; |
2596 | 2596 | ||
2597 | wmb(); | 2597 | wmb(); |
2598 | pFrstTD->m_td0TD0.f1Owner = OWNED_BY_NIC; | 2598 | pFrstTD->m_td0TD0.f1Owner = OWNED_BY_NIC; |
@@ -2656,12 +2656,12 @@ CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2656 | //Set packet type & Get Duration | 2656 | //Set packet type & Get Duration |
2657 | if (byPktType == PK_TYPE_11A) {//0000 0000 0000 0000 | 2657 | if (byPktType == PK_TYPE_11A) {//0000 0000 0000 0000 |
2658 | pTxDataHead->wDuration = cpu_to_le16((unsigned short)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameSize, byPktType, | 2658 | pTxDataHead->wDuration = cpu_to_le16((unsigned short)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameSize, byPktType, |
2659 | wCurrentRate, FALSE, 0, 0, 1, AUTO_FB_NONE)); | 2659 | wCurrentRate, false, 0, 0, 1, AUTO_FB_NONE)); |
2660 | } | 2660 | } |
2661 | else if (byPktType == PK_TYPE_11B) {//0000 0001 0000 0000 | 2661 | else if (byPktType == PK_TYPE_11B) {//0000 0001 0000 0000 |
2662 | pTxBufHead->wFIFOCtl |= FIFOCTL_11B; | 2662 | pTxBufHead->wFIFOCtl |= FIFOCTL_11B; |
2663 | pTxDataHead->wDuration = cpu_to_le16((unsigned short)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameSize, byPktType, | 2663 | pTxDataHead->wDuration = cpu_to_le16((unsigned short)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameSize, byPktType, |
2664 | wCurrentRate, FALSE, 0, 0, 1, AUTO_FB_NONE)); | 2664 | wCurrentRate, false, 0, 0, 1, AUTO_FB_NONE)); |
2665 | } | 2665 | } |
2666 | 2666 | ||
2667 | BBvCaculateParameter(pDevice, cbFrameSize, wCurrentRate, byPktType, | 2667 | BBvCaculateParameter(pDevice, cbFrameSize, wCurrentRate, byPktType, |
@@ -2723,7 +2723,7 @@ cbGetFragCount ( | |||
2723 | if ((pDevice->eOPMode == OP_MODE_ADHOC) || | 2723 | if ((pDevice->eOPMode == OP_MODE_ADHOC) || |
2724 | (pDevice->eOPMode == OP_MODE_AP)) { | 2724 | (pDevice->eOPMode == OP_MODE_AP)) { |
2725 | if (is_multicast_ether_addr(&(psEthHeader->abyDstAddr[0]))) | 2725 | if (is_multicast_ether_addr(&(psEthHeader->abyDstAddr[0]))) |
2726 | bNeedACK = FALSE; | 2726 | bNeedACK = false; |
2727 | else | 2727 | else |
2728 | bNeedACK = true; | 2728 | bNeedACK = true; |
2729 | } | 2729 | } |
@@ -2799,7 +2799,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un | |||
2799 | unsigned int cbHeaderSize; | 2799 | unsigned int cbHeaderSize; |
2800 | unsigned int cbFrameBodySize; | 2800 | unsigned int cbFrameBodySize; |
2801 | BOOL bNeedACK; | 2801 | BOOL bNeedACK; |
2802 | BOOL bIsPSPOLL = FALSE; | 2802 | BOOL bIsPSPOLL = false; |
2803 | PSTxBufHead pTxBufHead; | 2803 | PSTxBufHead pTxBufHead; |
2804 | unsigned int cbFrameSize; | 2804 | unsigned int cbFrameSize; |
2805 | unsigned int cbIVlen = 0; | 2805 | unsigned int cbIVlen = 0; |
@@ -2822,7 +2822,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un | |||
2822 | unsigned short wCurrentRate = RATE_1M; | 2822 | unsigned short wCurrentRate = RATE_1M; |
2823 | PUWLAN_80211HDR p80211Header; | 2823 | PUWLAN_80211HDR p80211Header; |
2824 | unsigned int uNodeIndex = 0; | 2824 | unsigned int uNodeIndex = 0; |
2825 | BOOL bNodeExist = FALSE; | 2825 | BOOL bNodeExist = false; |
2826 | SKeyItem STempKey; | 2826 | SKeyItem STempKey; |
2827 | PSKeyItem pTransmitKey = NULL; | 2827 | PSKeyItem pTransmitKey = NULL; |
2828 | unsigned char *pbyIVHead; | 2828 | unsigned char *pbyIVHead; |
@@ -2898,7 +2898,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un | |||
2898 | 2898 | ||
2899 | 2899 | ||
2900 | if (is_multicast_ether_addr(&(p80211Header->sA3.abyAddr1[0]))) { | 2900 | if (is_multicast_ether_addr(&(p80211Header->sA3.abyAddr1[0]))) { |
2901 | bNeedACK = FALSE; | 2901 | bNeedACK = false; |
2902 | if (pDevice->bEnableHostWEP) { | 2902 | if (pDevice->bEnableHostWEP) { |
2903 | uNodeIndex = 0; | 2903 | uNodeIndex = 0; |
2904 | bNodeExist = true; | 2904 | bNodeExist = true; |
@@ -2922,7 +2922,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un | |||
2922 | 2922 | ||
2923 | // probe-response don't retry | 2923 | // probe-response don't retry |
2924 | //if ((p80211Header->sA4.wFrameCtl & TYPE_SUBTYPE_MASK) == TYPE_MGMT_PROBE_RSP) { | 2924 | //if ((p80211Header->sA4.wFrameCtl & TYPE_SUBTYPE_MASK) == TYPE_MGMT_PROBE_RSP) { |
2925 | // bNeedACK = FALSE; | 2925 | // bNeedACK = false; |
2926 | // pTxBufHead->wFIFOCtl &= (~FIFOCTL_NEEDACK); | 2926 | // pTxBufHead->wFIFOCtl &= (~FIFOCTL_NEEDACK); |
2927 | //} | 2927 | //} |
2928 | } | 2928 | } |
@@ -2959,7 +2959,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un | |||
2959 | // Notes: | 2959 | // Notes: |
2960 | // Although spec says MMPDU can be fragmented; In most case, | 2960 | // Although spec says MMPDU can be fragmented; In most case, |
2961 | // no one will send a MMPDU under fragmentation. With RTS may occur. | 2961 | // no one will send a MMPDU under fragmentation. With RTS may occur. |
2962 | pDevice->bAES = FALSE; //Set FRAGCTL_WEPTYP | 2962 | pDevice->bAES = false; //Set FRAGCTL_WEPTYP |
2963 | 2963 | ||
2964 | 2964 | ||
2965 | if (WLAN_GET_FC_ISWEP(p80211Header->sA4.wFrameCtl) != 0) { | 2965 | if (WLAN_GET_FC_ISWEP(p80211Header->sA4.wFrameCtl) != 0) { |
@@ -3108,7 +3108,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un | |||
3108 | if (pDevice->bTxMICFail == true) { | 3108 | if (pDevice->bTxMICFail == true) { |
3109 | *pdwMIC_L = 0; | 3109 | *pdwMIC_L = 0; |
3110 | *pdwMIC_R = 0; | 3110 | *pdwMIC_R = 0; |
3111 | pDevice->bTxMICFail = FALSE; | 3111 | pDevice->bTxMICFail = false; |
3112 | } | 3112 | } |
3113 | 3113 | ||
3114 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"uLength: %d, %d\n", uLength, cbFrameBodySize); | 3114 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"uLength: %d, %d\n", uLength, cbFrameBodySize); |
@@ -3166,7 +3166,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un | |||
3166 | // Disable PS | 3166 | // Disable PS |
3167 | MACbPSWakeup(pDevice->PortOffset); | 3167 | MACbPSWakeup(pDevice->PortOffset); |
3168 | } | 3168 | } |
3169 | pDevice->bPWBitOn = FALSE; | 3169 | pDevice->bPWBitOn = false; |
3170 | 3170 | ||
3171 | wmb(); | 3171 | wmb(); |
3172 | pFrstTD->m_td0TD0.f1Owner = OWNED_BY_NIC; | 3172 | pFrstTD->m_td0TD0.f1Owner = OWNED_BY_NIC; |
diff --git a/drivers/staging/vt6655/srom.c b/drivers/staging/vt6655/srom.c index eff1e47d07e0..a67d57facadb 100644 --- a/drivers/staging/vt6655/srom.c +++ b/drivers/staging/vt6655/srom.c | |||
@@ -122,7 +122,7 @@ unsigned char SROMbyReadEmbedded(unsigned long dwIoBase, unsigned char byContntO | |||
122 | * Out: | 122 | * Out: |
123 | * none | 123 | * none |
124 | * | 124 | * |
125 | * Return Value: true if succeeded; FALSE if failed. | 125 | * Return Value: true if succeeded; false if failed. |
126 | * | 126 | * |
127 | */ | 127 | */ |
128 | BOOL SROMbWriteEmbedded(unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byData) | 128 | BOOL SROMbWriteEmbedded(unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byData) |
@@ -157,7 +157,7 @@ BOOL SROMbWriteEmbedded(unsigned long dwIoBase, unsigned char byContntOffset, un | |||
157 | } | 157 | } |
158 | if (wNoACK == W_MAX_I2CRETRY) { | 158 | if (wNoACK == W_MAX_I2CRETRY) { |
159 | VNSvOutPortB(dwIoBase + MAC_REG_I2MCFG, byOrg); | 159 | VNSvOutPortB(dwIoBase + MAC_REG_I2MCFG, byOrg); |
160 | return FALSE; | 160 | return false; |
161 | } | 161 | } |
162 | VNSvOutPortB(dwIoBase + MAC_REG_I2MCFG, byOrg); | 162 | VNSvOutPortB(dwIoBase + MAC_REG_I2MCFG, byOrg); |
163 | return true; | 163 | return true; |
@@ -219,7 +219,7 @@ void SROMvRegBitsOff(unsigned long dwIoBase, unsigned char byContntOffset, unsig | |||
219 | * Out: | 219 | * Out: |
220 | * none | 220 | * none |
221 | * | 221 | * |
222 | * Return Value: true if all test bits on; otherwise FALSE | 222 | * Return Value: true if all test bits on; otherwise false |
223 | * | 223 | * |
224 | */ | 224 | */ |
225 | BOOL SROMbIsRegBitsOn(unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byTestBits) | 225 | BOOL SROMbIsRegBitsOn(unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byTestBits) |
@@ -242,7 +242,7 @@ BOOL SROMbIsRegBitsOn(unsigned long dwIoBase, unsigned char byContntOffset, unsi | |||
242 | * Out: | 242 | * Out: |
243 | * none | 243 | * none |
244 | * | 244 | * |
245 | * Return Value: true if all test bits off; otherwise FALSE | 245 | * Return Value: true if all test bits off; otherwise false |
246 | * | 246 | * |
247 | */ | 247 | */ |
248 | BOOL SROMbIsRegBitsOff(unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byTestBits) | 248 | BOOL SROMbIsRegBitsOff(unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byTestBits) |
@@ -386,7 +386,7 @@ void SROMvReadSubSysVenId(unsigned long dwIoBase, unsigned long *pdwSubSysVenId) | |||
386 | * Out: | 386 | * Out: |
387 | * none | 387 | * none |
388 | * | 388 | * |
389 | * Return Value: true if success; otherwise FALSE | 389 | * Return Value: true if success; otherwise false |
390 | * | 390 | * |
391 | */ | 391 | */ |
392 | BOOL SROMbAutoLoad(unsigned long dwIoBase) | 392 | BOOL SROMbAutoLoad(unsigned long dwIoBase) |
@@ -413,7 +413,7 @@ BOOL SROMbAutoLoad(unsigned long dwIoBase) | |||
413 | VNSvOutPortB(dwIoBase + MAC_REG_I2MCFG, byOrg); | 413 | VNSvOutPortB(dwIoBase + MAC_REG_I2MCFG, byOrg); |
414 | 414 | ||
415 | if (ii == EEP_MAX_CONTEXT_SIZE) | 415 | if (ii == EEP_MAX_CONTEXT_SIZE) |
416 | return FALSE; | 416 | return false; |
417 | return true; | 417 | return true; |
418 | } | 418 | } |
419 | 419 | ||
diff --git a/drivers/staging/vt6655/tether.c b/drivers/staging/vt6655/tether.c index 02d588a5112f..87a88f39cb19 100644 --- a/drivers/staging/vt6655/tether.c +++ b/drivers/staging/vt6655/tether.c | |||
@@ -93,7 +93,7 @@ unsigned char ETHbyGetHashIndexByCrc32 (unsigned char *pbyMultiAddr) | |||
93 | * Out: | 93 | * Out: |
94 | * none | 94 | * none |
95 | * | 95 | * |
96 | * Return Value: true if ok; FALSE if error. | 96 | * Return Value: true if ok; false if error. |
97 | * | 97 | * |
98 | */ | 98 | */ |
99 | BOOL ETHbIsBufferCrc32Ok (unsigned char *pbyBuffer, unsigned int cbFrameLength) | 99 | BOOL ETHbIsBufferCrc32Ok (unsigned char *pbyBuffer, unsigned int cbFrameLength) |
@@ -102,7 +102,7 @@ BOOL ETHbIsBufferCrc32Ok (unsigned char *pbyBuffer, unsigned int cbFrameLength) | |||
102 | 102 | ||
103 | dwCRC = CRCdwGetCrc32(pbyBuffer, cbFrameLength - 4); | 103 | dwCRC = CRCdwGetCrc32(pbyBuffer, cbFrameLength - 4); |
104 | if (cpu_to_le32(*((unsigned long *)(pbyBuffer + cbFrameLength - 4))) != dwCRC) { | 104 | if (cpu_to_le32(*((unsigned long *)(pbyBuffer + cbFrameLength - 4))) != dwCRC) { |
105 | return FALSE; | 105 | return false; |
106 | } | 106 | } |
107 | return true; | 107 | return true; |
108 | } | 108 | } |
diff --git a/drivers/staging/vt6655/ttype.h b/drivers/staging/vt6655/ttype.h index 67b30e0b6914..269479388024 100644 --- a/drivers/staging/vt6655/ttype.h +++ b/drivers/staging/vt6655/ttype.h | |||
@@ -39,10 +39,6 @@ | |||
39 | 39 | ||
40 | typedef int BOOL; | 40 | typedef int BOOL; |
41 | 41 | ||
42 | #if !defined(FALSE) | ||
43 | #define FALSE 0 | ||
44 | #endif | ||
45 | |||
46 | //2007-0809-01<Add>by MikeLiu | 42 | //2007-0809-01<Add>by MikeLiu |
47 | #ifndef update_BssList | 43 | #ifndef update_BssList |
48 | #define update_BssList | 44 | #define update_BssList |
diff --git a/drivers/staging/vt6655/vntwifi.c b/drivers/staging/vt6655/vntwifi.c index 796ab753d5d6..85a662cc7b2c 100644 --- a/drivers/staging/vt6655/vntwifi.c +++ b/drivers/staging/vt6655/vntwifi.c | |||
@@ -319,7 +319,7 @@ VNTWIFIvSetAuthenticationMode ( | |||
319 | (eAuthMode == WMAC_AUTH_AUTO)) { | 319 | (eAuthMode == WMAC_AUTH_AUTO)) { |
320 | pMgmt->bShareKeyAlgorithm = true; | 320 | pMgmt->bShareKeyAlgorithm = true; |
321 | } else { | 321 | } else { |
322 | pMgmt->bShareKeyAlgorithm = FALSE; | 322 | pMgmt->bShareKeyAlgorithm = false; |
323 | } | 323 | } |
324 | } | 324 | } |
325 | 325 | ||
@@ -352,7 +352,7 @@ VNTWIFIvSetEncryptionMode ( | |||
352 | (eEncryptionMode == WMAC_ENCRYPTION_AESEnabled) ) { | 352 | (eEncryptionMode == WMAC_ENCRYPTION_AESEnabled) ) { |
353 | pMgmt->bPrivacyInvoked = true; | 353 | pMgmt->bPrivacyInvoked = true; |
354 | } else { | 354 | } else { |
355 | pMgmt->bPrivacyInvoked = FALSE; | 355 | pMgmt->bPrivacyInvoked = false; |
356 | } | 356 | } |
357 | } | 357 | } |
358 | 358 | ||
@@ -371,7 +371,7 @@ VNTWIFIbConfigPhyMode ( | |||
371 | if (CARDbSetPhyParameter(pMgmt->pAdapter, ePhyType, 0, 0, NULL, NULL)==true) { | 371 | if (CARDbSetPhyParameter(pMgmt->pAdapter, ePhyType, 0, 0, NULL, NULL)==true) { |
372 | pMgmt->eCurrentPHYMode = ePhyType; | 372 | pMgmt->eCurrentPHYMode = ePhyType; |
373 | } else { | 373 | } else { |
374 | return(FALSE); | 374 | return(false); |
375 | } | 375 | } |
376 | } | 376 | } |
377 | pMgmt->eConfigPHYMode = ePhyType; | 377 | pMgmt->eConfigPHYMode = ePhyType; |
@@ -505,7 +505,7 @@ VNTWIFIvUpdateNodeTxCounter( | |||
505 | 505 | ||
506 | if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) || | 506 | if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) || |
507 | (pMgmt->eCurrMode == WMAC_MODE_ESS_AP)) { | 507 | (pMgmt->eCurrMode == WMAC_MODE_ESS_AP)) { |
508 | if (BSSDBbIsSTAInNodeDB(pMgmt, pbyDestAddress, &uNodeIndex) == FALSE) { | 508 | if (BSSDBbIsSTAInNodeDB(pMgmt, pbyDestAddress, &uNodeIndex) == false) { |
509 | return; | 509 | return; |
510 | } | 510 | } |
511 | } | 511 | } |
@@ -628,7 +628,7 @@ VNTWIFIbInit( | |||
628 | pMgmt = (PSMgmtObject)kmalloc(sizeof(SMgmtObject), (int)GFP_ATOMIC); | 628 | pMgmt = (PSMgmtObject)kmalloc(sizeof(SMgmtObject), (int)GFP_ATOMIC); |
629 | if (pMgmt == NULL) { | 629 | if (pMgmt == NULL) { |
630 | *pMgmtHandler = NULL; | 630 | *pMgmtHandler = NULL; |
631 | return FALSE; | 631 | return false; |
632 | } | 632 | } |
633 | 633 | ||
634 | memset(pMgmt, 0, sizeof(SMgmtObject)); | 634 | memset(pMgmt, 0, sizeof(SMgmtObject)); |
@@ -648,8 +648,8 @@ VNTWIFIbInit( | |||
648 | pMgmt->uCmdDequeueIdx = 0; | 648 | pMgmt->uCmdDequeueIdx = 0; |
649 | pMgmt->uCmdEnqueueIdx = 0; | 649 | pMgmt->uCmdEnqueueIdx = 0; |
650 | pMgmt->eCommandState = WLAN_CMD_STATE_IDLE; | 650 | pMgmt->eCommandState = WLAN_CMD_STATE_IDLE; |
651 | pMgmt->bCmdStop = FALSE; | 651 | pMgmt->bCmdStop = false; |
652 | pMgmt->bCmdRunning = FALSE; | 652 | pMgmt->bCmdRunning = false; |
653 | 653 | ||
654 | *pMgmtHandler = pMgmt; | 654 | *pMgmtHandler = pMgmt; |
655 | return true; | 655 | return true; |
@@ -668,7 +668,7 @@ VNTWIFIbSetPMKIDCache ( | |||
668 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; | 668 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; |
669 | 669 | ||
670 | if (ulCount > MAX_PMKID_CACHE) { | 670 | if (ulCount > MAX_PMKID_CACHE) { |
671 | return (FALSE); | 671 | return (false); |
672 | } | 672 | } |
673 | pMgmt->gsPMKIDCache.BSSIDInfoCount = ulCount; | 673 | pMgmt->gsPMKIDCache.BSSIDInfoCount = ulCount; |
674 | memcpy(pMgmt->gsPMKIDCache.BSSIDInfo, pPMKIDInfo, (ulCount*sizeof(PMKIDInfo))); | 674 | memcpy(pMgmt->gsPMKIDCache.BSSIDInfo, pPMKIDInfo, (ulCount*sizeof(PMKIDInfo))); |
@@ -779,7 +779,7 @@ VNTWIFIbChannelSwitch( | |||
779 | 779 | ||
780 | //spin_lock_irq(&pDevice->lock); | 780 | //spin_lock_irq(&pDevice->lock); |
781 | pMgmt->uCurrChannel = byNewChannel; | 781 | pMgmt->uCurrChannel = byNewChannel; |
782 | pMgmt->bSwitchChannel = FALSE; | 782 | pMgmt->bSwitchChannel = false; |
783 | //spin_unlock_irq(&pDevice->lock); | 783 | //spin_unlock_irq(&pDevice->lock); |
784 | return true; | 784 | return true; |
785 | } | 785 | } |
diff --git a/drivers/staging/vt6655/wcmd.c b/drivers/staging/vt6655/wcmd.c index eafaf535a4ce..d64e47440d57 100644 --- a/drivers/staging/vt6655/wcmd.c +++ b/drivers/staging/vt6655/wcmd.c | |||
@@ -130,7 +130,7 @@ vAdHocBeaconStop(PSDevice pDevice) | |||
130 | * or | 130 | * or |
131 | * (3.2) AdHoc channel is in A mode | 131 | * (3.2) AdHoc channel is in A mode |
132 | */ | 132 | */ |
133 | bStop = FALSE; | 133 | bStop = false; |
134 | if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && | 134 | if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && |
135 | (pMgmt->eCurrState >= WMAC_STATE_STARTED)) | 135 | (pMgmt->eCurrState >= WMAC_STATE_STARTED)) |
136 | { | 136 | { |
@@ -450,7 +450,7 @@ vCommandTimer ( | |||
450 | } | 450 | } |
451 | 451 | ||
452 | 452 | ||
453 | if ((pMgmt->b11hEnable == FALSE) || | 453 | if ((pMgmt->b11hEnable == false) || |
454 | (pMgmt->uScanChannel < CB_MAX_CHANNEL_24G)) { | 454 | (pMgmt->uScanChannel < CB_MAX_CHANNEL_24G)) { |
455 | s_vProbeChannel(pDevice); | 455 | s_vProbeChannel(pDevice); |
456 | spin_unlock_irq(&pDevice->lock); | 456 | spin_unlock_irq(&pDevice->lock); |
@@ -503,14 +503,14 @@ vCommandTimer ( | |||
503 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Send Disassociation Packet..\n"); | 503 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Send Disassociation Packet..\n"); |
504 | // reason = 8 : disassoc because sta has left | 504 | // reason = 8 : disassoc because sta has left |
505 | vMgrDisassocBeginSta((void *)pDevice, pMgmt, pMgmt->abyCurrBSSID, (8), &Status); | 505 | vMgrDisassocBeginSta((void *)pDevice, pMgmt, pMgmt->abyCurrBSSID, (8), &Status); |
506 | pDevice->bLinkPass = FALSE; | 506 | pDevice->bLinkPass = false; |
507 | // unlock command busy | 507 | // unlock command busy |
508 | pItemSSID = (PWLAN_IE_SSID)pMgmt->abyCurrSSID; | 508 | pItemSSID = (PWLAN_IE_SSID)pMgmt->abyCurrSSID; |
509 | pItemSSID->len = 0; | 509 | pItemSSID->len = 0; |
510 | memset(pItemSSID->abySSID, 0, WLAN_SSID_MAXLEN); | 510 | memset(pItemSSID->abySSID, 0, WLAN_SSID_MAXLEN); |
511 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 511 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
512 | pMgmt->sNodeDBTable[0].bActive = FALSE; | 512 | pMgmt->sNodeDBTable[0].bActive = false; |
513 | // pDevice->bBeaconBufReady = FALSE; | 513 | // pDevice->bBeaconBufReady = false; |
514 | } | 514 | } |
515 | netif_stop_queue(pDevice->dev); | 515 | netif_stop_queue(pDevice->dev); |
516 | pDevice->eCommandState = WLAN_DISASSOCIATE_WAIT; | 516 | pDevice->eCommandState = WLAN_DISASSOCIATE_WAIT; |
@@ -574,7 +574,7 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS | |||
574 | } | 574 | } |
575 | 575 | ||
576 | netif_stop_queue(pDevice->dev); | 576 | netif_stop_queue(pDevice->dev); |
577 | pDevice->bLinkPass = FALSE; | 577 | pDevice->bLinkPass = false; |
578 | } | 578 | } |
579 | // set initial state | 579 | // set initial state |
580 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 580 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
@@ -720,14 +720,14 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS | |||
720 | netif_wake_queue(pDevice->dev); | 720 | netif_wake_queue(pDevice->dev); |
721 | } | 721 | } |
722 | #ifdef TxInSleep | 722 | #ifdef TxInSleep |
723 | if(pDevice->IsTxDataTrigger != FALSE) { //TxDataTimer is not triggered at the first time | 723 | if(pDevice->IsTxDataTrigger != false) { //TxDataTimer is not triggered at the first time |
724 | // printk("Re-initial TxDataTimer****\n"); | 724 | // printk("Re-initial TxDataTimer****\n"); |
725 | del_timer(&pDevice->sTimerTxData); | 725 | del_timer(&pDevice->sTimerTxData); |
726 | init_timer(&pDevice->sTimerTxData); | 726 | init_timer(&pDevice->sTimerTxData); |
727 | pDevice->sTimerTxData.data = (unsigned long) pDevice; | 727 | pDevice->sTimerTxData.data = (unsigned long) pDevice; |
728 | pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData; | 728 | pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData; |
729 | pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback | 729 | pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback |
730 | pDevice->fTxDataInSleep = FALSE; | 730 | pDevice->fTxDataInSleep = false; |
731 | pDevice->nTxDataTimeCout = 0; | 731 | pDevice->nTxDataTimeCout = 0; |
732 | } | 732 | } |
733 | else { | 733 | else { |
@@ -771,14 +771,14 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS | |||
771 | del_timer(&pMgmt->sTimerSecondCallback); | 771 | del_timer(&pMgmt->sTimerSecondCallback); |
772 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 772 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
773 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; | 773 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; |
774 | pDevice->bLinkPass = FALSE; | 774 | pDevice->bLinkPass = false; |
775 | if (pDevice->bEnableHostWEP == true) | 775 | if (pDevice->bEnableHostWEP == true) |
776 | BSSvClearNodeDBTable(pDevice, 1); | 776 | BSSvClearNodeDBTable(pDevice, 1); |
777 | else | 777 | else |
778 | BSSvClearNodeDBTable(pDevice, 0); | 778 | BSSvClearNodeDBTable(pDevice, 0); |
779 | pDevice->uAssocCount = 0; | 779 | pDevice->uAssocCount = 0; |
780 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 780 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
781 | pDevice->bFixRate = FALSE; | 781 | pDevice->bFixRate = false; |
782 | 782 | ||
783 | vMgrCreateOwnIBSS((void *)pDevice, &Status); | 783 | vMgrCreateOwnIBSS((void *)pDevice, &Status); |
784 | if (Status != CMD_STATUS_SUCCESS){ | 784 | if (Status != CMD_STATUS_SUCCESS){ |
@@ -804,7 +804,7 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS | |||
804 | while ((skb = skb_dequeue(&pMgmt->sNodeDBTable[0].sTxPSQueue)) != NULL) { | 804 | while ((skb = skb_dequeue(&pMgmt->sNodeDBTable[0].sTxPSQueue)) != NULL) { |
805 | if (skb_queue_empty(&pMgmt->sNodeDBTable[0].sTxPSQueue)) { | 805 | if (skb_queue_empty(&pMgmt->sNodeDBTable[0].sTxPSQueue)) { |
806 | pMgmt->abyPSTxMap[0] &= ~byMask[0]; | 806 | pMgmt->abyPSTxMap[0] &= ~byMask[0]; |
807 | pDevice->bMoreData = FALSE; | 807 | pDevice->bMoreData = false; |
808 | } | 808 | } |
809 | else { | 809 | else { |
810 | pDevice->bMoreData = true; | 810 | pDevice->bMoreData = true; |
@@ -827,7 +827,7 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS | |||
827 | // clear tx map | 827 | // clear tx map |
828 | pMgmt->abyPSTxMap[pMgmt->sNodeDBTable[ii].wAID >> 3] &= | 828 | pMgmt->abyPSTxMap[pMgmt->sNodeDBTable[ii].wAID >> 3] &= |
829 | ~byMask[pMgmt->sNodeDBTable[ii].wAID & 7]; | 829 | ~byMask[pMgmt->sNodeDBTable[ii].wAID & 7]; |
830 | pDevice->bMoreData = FALSE; | 830 | pDevice->bMoreData = false; |
831 | } | 831 | } |
832 | else { | 832 | else { |
833 | pDevice->bMoreData = true; | 833 | pDevice->bMoreData = true; |
@@ -847,7 +847,7 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS | |||
847 | ~byMask[pMgmt->sNodeDBTable[ii].wAID & 7]; | 847 | ~byMask[pMgmt->sNodeDBTable[ii].wAID & 7]; |
848 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Index=%d PS queue clear \n", ii); | 848 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Index=%d PS queue clear \n", ii); |
849 | } | 849 | } |
850 | pMgmt->sNodeDBTable[ii].bRxPSPoll = FALSE; | 850 | pMgmt->sNodeDBTable[ii].bRxPSPoll = false; |
851 | } | 851 | } |
852 | } | 852 | } |
853 | 853 | ||
@@ -903,7 +903,7 @@ s_bCommandComplete ( | |||
903 | ) | 903 | ) |
904 | { | 904 | { |
905 | PWLAN_IE_SSID pSSID; | 905 | PWLAN_IE_SSID pSSID; |
906 | BOOL bRadioCmd = FALSE; | 906 | BOOL bRadioCmd = false; |
907 | //unsigned short wDeAuthenReason = 0; | 907 | //unsigned short wDeAuthenReason = 0; |
908 | BOOL bForceSCAN = true; | 908 | BOOL bForceSCAN = true; |
909 | PSMgmtObject pMgmt = pDevice->pMgmt; | 909 | PSMgmtObject pMgmt = pDevice->pMgmt; |
@@ -912,7 +912,7 @@ s_bCommandComplete ( | |||
912 | pDevice->eCommandState = WLAN_CMD_IDLE; | 912 | pDevice->eCommandState = WLAN_CMD_IDLE; |
913 | if (pDevice->cbFreeCmdQueue == CMD_Q_SIZE) { | 913 | if (pDevice->cbFreeCmdQueue == CMD_Q_SIZE) { |
914 | //Command Queue Empty | 914 | //Command Queue Empty |
915 | pDevice->bCmdRunning = FALSE; | 915 | pDevice->bCmdRunning = false; |
916 | return true; | 916 | return true; |
917 | } | 917 | } |
918 | else { | 918 | else { |
@@ -934,7 +934,7 @@ s_bCommandComplete ( | |||
934 | memset(pMgmt->abyScanSSID, 0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); | 934 | memset(pMgmt->abyScanSSID, 0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); |
935 | } | 935 | } |
936 | /* | 936 | /* |
937 | if ((bForceSCAN == FALSE) && (pDevice->bLinkPass == true)) { | 937 | if ((bForceSCAN == false) && (pDevice->bLinkPass == true)) { |
938 | if ((pSSID->len == ((PWLAN_IE_SSID)pMgmt->abyCurrSSID)->len) && | 938 | if ((pSSID->len == ((PWLAN_IE_SSID)pMgmt->abyCurrSSID)->len) && |
939 | ( !memcmp(pSSID->abySSID, ((PWLAN_IE_SSID)pMgmt->abyCurrSSID)->abySSID, pSSID->len))) { | 939 | ( !memcmp(pSSID->abySSID, ((PWLAN_IE_SSID)pMgmt->abyCurrSSID)->abySSID, pSSID->len))) { |
940 | pDevice->eCommandState = WLAN_CMD_IDLE; | 940 | pDevice->eCommandState = WLAN_CMD_IDLE; |
@@ -990,7 +990,7 @@ BOOL bScheduleCommand ( | |||
990 | 990 | ||
991 | 991 | ||
992 | if (pDevice->cbFreeCmdQueue == 0) { | 992 | if (pDevice->cbFreeCmdQueue == 0) { |
993 | return (FALSE); | 993 | return (false); |
994 | } | 994 | } |
995 | pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand; | 995 | pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand; |
996 | pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = true; | 996 | pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = true; |
@@ -1002,7 +1002,7 @@ BOOL bScheduleCommand ( | |||
1002 | case WLAN_CMD_BSSID_SCAN: | 1002 | case WLAN_CMD_BSSID_SCAN: |
1003 | memcpy(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID, | 1003 | memcpy(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID, |
1004 | pbyItem0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); | 1004 | pbyItem0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); |
1005 | pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = FALSE; | 1005 | pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = false; |
1006 | break; | 1006 | break; |
1007 | 1007 | ||
1008 | case WLAN_CMD_SSID: | 1008 | case WLAN_CMD_SSID: |
@@ -1038,7 +1038,7 @@ BOOL bScheduleCommand ( | |||
1038 | ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE); | 1038 | ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE); |
1039 | pDevice->cbFreeCmdQueue--; | 1039 | pDevice->cbFreeCmdQueue--; |
1040 | 1040 | ||
1041 | if (pDevice->bCmdRunning == FALSE) { | 1041 | if (pDevice->bCmdRunning == false) { |
1042 | s_bCommandComplete(pDevice); | 1042 | s_bCommandComplete(pDevice); |
1043 | } | 1043 | } |
1044 | else { | 1044 | else { |
@@ -1058,7 +1058,7 @@ BOOL bScheduleCommand ( | |||
1058 | * Out: | 1058 | * Out: |
1059 | * none | 1059 | * none |
1060 | * | 1060 | * |
1061 | * Return Value: true if success; otherwise FALSE | 1061 | * Return Value: true if success; otherwise false |
1062 | * | 1062 | * |
1063 | */ | 1063 | */ |
1064 | BOOL bClearBSSID_SCAN ( | 1064 | BOOL bClearBSSID_SCAN ( |
@@ -1100,8 +1100,8 @@ vResetCommandTimer( | |||
1100 | pDevice->uCmdDequeueIdx = 0; | 1100 | pDevice->uCmdDequeueIdx = 0; |
1101 | pDevice->uCmdEnqueueIdx = 0; | 1101 | pDevice->uCmdEnqueueIdx = 0; |
1102 | pDevice->eCommandState = WLAN_CMD_IDLE; | 1102 | pDevice->eCommandState = WLAN_CMD_IDLE; |
1103 | pDevice->bCmdRunning = FALSE; | 1103 | pDevice->bCmdRunning = false; |
1104 | pDevice->bCmdClear = FALSE; | 1104 | pDevice->bCmdClear = false; |
1105 | } | 1105 | } |
1106 | 1106 | ||
1107 | 1107 | ||
@@ -1135,7 +1135,7 @@ BSSvSecondTxData( | |||
1135 | // printk("mike:%s-->InSleep Tx Data Procedure\n",__FUNCTION__); | 1135 | // printk("mike:%s-->InSleep Tx Data Procedure\n",__FUNCTION__); |
1136 | pDevice->fTxDataInSleep = true; | 1136 | pDevice->fTxDataInSleep = true; |
1137 | PSbSendNullPacket(pDevice); //send null packet | 1137 | PSbSendNullPacket(pDevice); //send null packet |
1138 | pDevice->fTxDataInSleep = FALSE; | 1138 | pDevice->fTxDataInSleep = false; |
1139 | } | 1139 | } |
1140 | spin_unlock_irq(&pDevice->lock); | 1140 | spin_unlock_irq(&pDevice->lock); |
1141 | 1141 | ||
diff --git a/drivers/staging/vt6655/wctl.c b/drivers/staging/vt6655/wctl.c index d388dfd256bb..b3ef2e0d5f2b 100644 --- a/drivers/staging/vt6655/wctl.c +++ b/drivers/staging/vt6655/wctl.c | |||
@@ -53,7 +53,7 @@ | |||
53 | /* | 53 | /* |
54 | * Description: | 54 | * Description: |
55 | * Scan Rx cache. Return true if packet is duplicate, else | 55 | * Scan Rx cache. Return true if packet is duplicate, else |
56 | * inserts in receive cache and returns FALSE. | 56 | * inserts in receive cache and returns false. |
57 | * | 57 | * |
58 | * Parameters: | 58 | * Parameters: |
59 | * In: | 59 | * In: |
@@ -62,7 +62,7 @@ | |||
62 | * Out: | 62 | * Out: |
63 | * none | 63 | * none |
64 | * | 64 | * |
65 | * Return Value: true if packet duplicate; otherwise FALSE | 65 | * Return Value: true if packet duplicate; otherwise false |
66 | * | 66 | * |
67 | */ | 67 | */ |
68 | 68 | ||
@@ -91,7 +91,7 @@ BOOL WCTLbIsDuplicate (PSCache pCache, PS802_11Header pMACHeader) | |||
91 | pCacheEntry->wFmSequence = pMACHeader->wSeqCtl; | 91 | pCacheEntry->wFmSequence = pMACHeader->wSeqCtl; |
92 | memcpy(&(pCacheEntry->abyAddr2[0]), &(pMACHeader->abyAddr2[0]), ETH_ALEN); | 92 | memcpy(&(pCacheEntry->abyAddr2[0]), &(pMACHeader->abyAddr2[0]), ETH_ALEN); |
93 | ADD_ONE_WITH_WRAP_AROUND(pCache->uInPtr, DUPLICATE_RX_CACHE_LENGTH); | 93 | ADD_ONE_WITH_WRAP_AROUND(pCache->uInPtr, DUPLICATE_RX_CACHE_LENGTH); |
94 | return FALSE; | 94 | return false; |
95 | } | 95 | } |
96 | 96 | ||
97 | /* | 97 | /* |
@@ -145,7 +145,7 @@ unsigned int ii; | |||
145 | if (pDevice->cbFreeDFCB == 0) | 145 | if (pDevice->cbFreeDFCB == 0) |
146 | return(pDevice->cbDFCB); | 146 | return(pDevice->cbDFCB); |
147 | for(ii=0;ii<pDevice->cbDFCB;ii++) { | 147 | for(ii=0;ii<pDevice->cbDFCB;ii++) { |
148 | if (pDevice->sRxDFCB[ii].bInUse == FALSE) { | 148 | if (pDevice->sRxDFCB[ii].bInUse == false) { |
149 | pDevice->cbFreeDFCB--; | 149 | pDevice->cbFreeDFCB--; |
150 | pDevice->sRxDFCB[ii].uLifetime = pDevice->dwMaxReceiveLifetime; | 150 | pDevice->sRxDFCB[ii].uLifetime = pDevice->dwMaxReceiveLifetime; |
151 | pDevice->sRxDFCB[ii].bInUse = true; | 151 | pDevice->sRxDFCB[ii].bInUse = true; |
@@ -172,7 +172,7 @@ unsigned int ii; | |||
172 | * Out: | 172 | * Out: |
173 | * none | 173 | * none |
174 | * | 174 | * |
175 | * Return Value: true if it is valid fragment packet and we have resource to defragment; otherwise FALSE | 175 | * Return Value: true if it is valid fragment packet and we have resource to defragment; otherwise false |
176 | * | 176 | * |
177 | */ | 177 | */ |
178 | BOOL WCTLbHandleFragment (PSDevice pDevice, PS802_11Header pMACHeader, unsigned int cbFrameLength, BOOL bWEP, BOOL bExtIV) | 178 | BOOL WCTLbHandleFragment (PSDevice pDevice, PS802_11Header pMACHeader, unsigned int cbFrameLength, BOOL bWEP, BOOL bExtIV) |
@@ -201,7 +201,7 @@ unsigned int uHeaderSize; | |||
201 | else { | 201 | else { |
202 | pDevice->uCurrentDFCBIdx = WCTLuInsertDFCB(pDevice, pMACHeader); | 202 | pDevice->uCurrentDFCBIdx = WCTLuInsertDFCB(pDevice, pMACHeader); |
203 | if (pDevice->uCurrentDFCBIdx == pDevice->cbDFCB) { | 203 | if (pDevice->uCurrentDFCBIdx == pDevice->cbDFCB) { |
204 | return(FALSE); | 204 | return(false); |
205 | } | 205 | } |
206 | } | 206 | } |
207 | // reserve 4 byte to match MAC RX Buffer | 207 | // reserve 4 byte to match MAC RX Buffer |
@@ -211,7 +211,7 @@ unsigned int uHeaderSize; | |||
211 | pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx].pbyRxBuffer += cbFrameLength; | 211 | pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx].pbyRxBuffer += cbFrameLength; |
212 | pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx].wFragNum++; | 212 | pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx].wFragNum++; |
213 | //DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "First pDevice->uCurrentDFCBIdx= %d\n", pDevice->uCurrentDFCBIdx); | 213 | //DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "First pDevice->uCurrentDFCBIdx= %d\n", pDevice->uCurrentDFCBIdx); |
214 | return(FALSE); | 214 | return(false); |
215 | } | 215 | } |
216 | else { | 216 | else { |
217 | pDevice->uCurrentDFCBIdx = WCTLuSearchDFCB(pDevice, pMACHeader); | 217 | pDevice->uCurrentDFCBIdx = WCTLuSearchDFCB(pDevice, pMACHeader); |
@@ -229,21 +229,21 @@ unsigned int uHeaderSize; | |||
229 | else { | 229 | else { |
230 | // seq error or frag # error flush DFCB | 230 | // seq error or frag # error flush DFCB |
231 | pDevice->cbFreeDFCB++; | 231 | pDevice->cbFreeDFCB++; |
232 | pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx].bInUse = FALSE; | 232 | pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx].bInUse = false; |
233 | return(FALSE); | 233 | return(false); |
234 | } | 234 | } |
235 | } | 235 | } |
236 | else { | 236 | else { |
237 | return(FALSE); | 237 | return(false); |
238 | } | 238 | } |
239 | if (IS_LAST_FRAGMENT_PKT(pMACHeader)) { | 239 | if (IS_LAST_FRAGMENT_PKT(pMACHeader)) { |
240 | //enq defragcontrolblock | 240 | //enq defragcontrolblock |
241 | pDevice->cbFreeDFCB++; | 241 | pDevice->cbFreeDFCB++; |
242 | pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx].bInUse = FALSE; | 242 | pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx].bInUse = false; |
243 | //DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Last pDevice->uCurrentDFCBIdx= %d\n", pDevice->uCurrentDFCBIdx); | 243 | //DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Last pDevice->uCurrentDFCBIdx= %d\n", pDevice->uCurrentDFCBIdx); |
244 | return(true); | 244 | return(true); |
245 | } | 245 | } |
246 | return(FALSE); | 246 | return(false); |
247 | } | 247 | } |
248 | } | 248 | } |
249 | 249 | ||
diff --git a/drivers/staging/vt6655/wmgr.c b/drivers/staging/vt6655/wmgr.c index 2e4276486eec..b81833d8ccb8 100644 --- a/drivers/staging/vt6655/wmgr.c +++ b/drivers/staging/vt6655/wmgr.c | |||
@@ -369,7 +369,7 @@ vMgrObjectInit( | |||
369 | pMgmt->byCSSPK = KEY_CTL_NONE; | 369 | pMgmt->byCSSPK = KEY_CTL_NONE; |
370 | pMgmt->byCSSGK = KEY_CTL_NONE; | 370 | pMgmt->byCSSGK = KEY_CTL_NONE; |
371 | pMgmt->wIBSSBeaconPeriod = DEFAULT_IBSS_BI; | 371 | pMgmt->wIBSSBeaconPeriod = DEFAULT_IBSS_BI; |
372 | BSSvClearBSSList((void *)pDevice, FALSE); | 372 | BSSvClearBSSList((void *)pDevice, false); |
373 | 373 | ||
374 | return; | 374 | return; |
375 | } | 375 | } |
@@ -408,8 +408,8 @@ vMgrTimerInit( | |||
408 | pDevice->sTimerTxData.data = (unsigned long) pDevice; | 408 | pDevice->sTimerTxData.data = (unsigned long) pDevice; |
409 | pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData; | 409 | pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData; |
410 | pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback | 410 | pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback |
411 | pDevice->fTxDataInSleep = FALSE; | 411 | pDevice->fTxDataInSleep = false; |
412 | pDevice->IsTxDataTrigger = FALSE; | 412 | pDevice->IsTxDataTrigger = false; |
413 | pDevice->nTxDataTimeCout = 0; | 413 | pDevice->nTxDataTimeCout = 0; |
414 | #endif | 414 | #endif |
415 | 415 | ||
@@ -442,7 +442,7 @@ vMgrObjectReset( | |||
442 | 442 | ||
443 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; | 443 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; |
444 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 444 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
445 | pDevice->bEnablePSMode = FALSE; | 445 | pDevice->bEnablePSMode = false; |
446 | // TODO: timer | 446 | // TODO: timer |
447 | 447 | ||
448 | return; | 448 | return; |
@@ -718,7 +718,7 @@ s_vMgrRxAssocRequest( | |||
718 | pMgmt->sNodeDBTable[uNodeIndex].wCapInfo = cpu_to_le16(*sFrame.pwCapInfo); | 718 | pMgmt->sNodeDBTable[uNodeIndex].wCapInfo = cpu_to_le16(*sFrame.pwCapInfo); |
719 | pMgmt->sNodeDBTable[uNodeIndex].wListenInterval = cpu_to_le16(*sFrame.pwListenInterval); | 719 | pMgmt->sNodeDBTable[uNodeIndex].wListenInterval = cpu_to_le16(*sFrame.pwListenInterval); |
720 | pMgmt->sNodeDBTable[uNodeIndex].bPSEnable = | 720 | pMgmt->sNodeDBTable[uNodeIndex].bPSEnable = |
721 | WLAN_GET_FC_PWRMGT(sFrame.pHdr->sA3.wFrameCtl) ? true : FALSE; | 721 | WLAN_GET_FC_PWRMGT(sFrame.pHdr->sA3.wFrameCtl) ? true : false; |
722 | // Todo: check sta basic rate, if ap can't support, set status code | 722 | // Todo: check sta basic rate, if ap can't support, set status code |
723 | if (pDevice->eCurrentPHYType == PHY_TYPE_11B) { | 723 | if (pDevice->eCurrentPHYType == PHY_TYPE_11B) { |
724 | uRateLen = WLAN_RATES_MAXLEN_11B; | 724 | uRateLen = WLAN_RATES_MAXLEN_11B; |
@@ -740,7 +740,7 @@ s_vMgrRxAssocRequest( | |||
740 | RATEvParseMaxRate((void *)pDevice, | 740 | RATEvParseMaxRate((void *)pDevice, |
741 | (PWLAN_IE_SUPP_RATES)abyCurrSuppRates, | 741 | (PWLAN_IE_SUPP_RATES)abyCurrSuppRates, |
742 | (PWLAN_IE_SUPP_RATES)abyCurrExtSuppRates, | 742 | (PWLAN_IE_SUPP_RATES)abyCurrExtSuppRates, |
743 | FALSE, // do not change our basic rate | 743 | false, // do not change our basic rate |
744 | &(pMgmt->sNodeDBTable[uNodeIndex].wMaxBasicRate), | 744 | &(pMgmt->sNodeDBTable[uNodeIndex].wMaxBasicRate), |
745 | &(pMgmt->sNodeDBTable[uNodeIndex].wMaxSuppRate), | 745 | &(pMgmt->sNodeDBTable[uNodeIndex].wMaxSuppRate), |
746 | &(pMgmt->sNodeDBTable[uNodeIndex].wSuppRate), | 746 | &(pMgmt->sNodeDBTable[uNodeIndex].wSuppRate), |
@@ -771,7 +771,7 @@ s_vMgrRxAssocRequest( | |||
771 | pDevice->bProtectMode = true; | 771 | pDevice->bProtectMode = true; |
772 | pDevice->bNonERPPresent = true; | 772 | pDevice->bNonERPPresent = true; |
773 | } | 773 | } |
774 | if (pMgmt->sNodeDBTable[uNodeIndex].bShortPreamble == FALSE) { | 774 | if (pMgmt->sNodeDBTable[uNodeIndex].bShortPreamble == false) { |
775 | pDevice->bBarkerPreambleMd = true; | 775 | pDevice->bBarkerPreambleMd = true; |
776 | } | 776 | } |
777 | 777 | ||
@@ -875,7 +875,7 @@ s_vMgrRxReAssocRequest( | |||
875 | pMgmt->sNodeDBTable[uNodeIndex].wCapInfo = cpu_to_le16(*sFrame.pwCapInfo); | 875 | pMgmt->sNodeDBTable[uNodeIndex].wCapInfo = cpu_to_le16(*sFrame.pwCapInfo); |
876 | pMgmt->sNodeDBTable[uNodeIndex].wListenInterval = cpu_to_le16(*sFrame.pwListenInterval); | 876 | pMgmt->sNodeDBTable[uNodeIndex].wListenInterval = cpu_to_le16(*sFrame.pwListenInterval); |
877 | pMgmt->sNodeDBTable[uNodeIndex].bPSEnable = | 877 | pMgmt->sNodeDBTable[uNodeIndex].bPSEnable = |
878 | WLAN_GET_FC_PWRMGT(sFrame.pHdr->sA3.wFrameCtl) ? true : FALSE; | 878 | WLAN_GET_FC_PWRMGT(sFrame.pHdr->sA3.wFrameCtl) ? true : false; |
879 | // Todo: check sta basic rate, if ap can't support, set status code | 879 | // Todo: check sta basic rate, if ap can't support, set status code |
880 | 880 | ||
881 | if (pDevice->eCurrentPHYType == PHY_TYPE_11B) { | 881 | if (pDevice->eCurrentPHYType == PHY_TYPE_11B) { |
@@ -899,7 +899,7 @@ s_vMgrRxReAssocRequest( | |||
899 | RATEvParseMaxRate((void *)pDevice, | 899 | RATEvParseMaxRate((void *)pDevice, |
900 | (PWLAN_IE_SUPP_RATES)abyCurrSuppRates, | 900 | (PWLAN_IE_SUPP_RATES)abyCurrSuppRates, |
901 | (PWLAN_IE_SUPP_RATES)abyCurrExtSuppRates, | 901 | (PWLAN_IE_SUPP_RATES)abyCurrExtSuppRates, |
902 | FALSE, // do not change our basic rate | 902 | false, // do not change our basic rate |
903 | &(pMgmt->sNodeDBTable[uNodeIndex].wMaxBasicRate), | 903 | &(pMgmt->sNodeDBTable[uNodeIndex].wMaxBasicRate), |
904 | &(pMgmt->sNodeDBTable[uNodeIndex].wMaxSuppRate), | 904 | &(pMgmt->sNodeDBTable[uNodeIndex].wMaxSuppRate), |
905 | &(pMgmt->sNodeDBTable[uNodeIndex].wSuppRate), | 905 | &(pMgmt->sNodeDBTable[uNodeIndex].wSuppRate), |
@@ -931,7 +931,7 @@ s_vMgrRxReAssocRequest( | |||
931 | pDevice->bProtectMode = true; | 931 | pDevice->bProtectMode = true; |
932 | pDevice->bNonERPPresent = true; | 932 | pDevice->bNonERPPresent = true; |
933 | } | 933 | } |
934 | if (pMgmt->sNodeDBTable[uNodeIndex].bShortPreamble == FALSE) { | 934 | if (pMgmt->sNodeDBTable[uNodeIndex].bShortPreamble == false) { |
935 | pDevice->bBarkerPreambleMd = true; | 935 | pDevice->bBarkerPreambleMd = true; |
936 | } | 936 | } |
937 | 937 | ||
@@ -1129,7 +1129,7 @@ s_vMgrRxAssocResponse( | |||
1129 | //need clear flags related to Networkmanager | 1129 | //need clear flags related to Networkmanager |
1130 | 1130 | ||
1131 | pDevice->bwextcount = 0; | 1131 | pDevice->bwextcount = 0; |
1132 | pDevice->bWPASuppWextEnabled = FALSE; | 1132 | pDevice->bWPASuppWextEnabled = false; |
1133 | #endif | 1133 | #endif |
1134 | 1134 | ||
1135 | 1135 | ||
@@ -1772,11 +1772,11 @@ s_vMgrRxDeauthentication( | |||
1772 | // TODO: update BSS list for specific BSSID if pre-authentication case | 1772 | // TODO: update BSS list for specific BSSID if pre-authentication case |
1773 | if (!compare_ether_addr(sFrame.pHdr->sA3.abyAddr3, pMgmt->abyCurrBSSID)) { | 1773 | if (!compare_ether_addr(sFrame.pHdr->sA3.abyAddr3, pMgmt->abyCurrBSSID)) { |
1774 | if (pMgmt->eCurrState >= WMAC_STATE_AUTHPENDING) { | 1774 | if (pMgmt->eCurrState >= WMAC_STATE_AUTHPENDING) { |
1775 | pMgmt->sNodeDBTable[0].bActive = FALSE; | 1775 | pMgmt->sNodeDBTable[0].bActive = false; |
1776 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; | 1776 | pMgmt->eCurrMode = WMAC_MODE_STANDBY; |
1777 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 1777 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
1778 | netif_stop_queue(pDevice->dev); | 1778 | netif_stop_queue(pDevice->dev); |
1779 | pDevice->bLinkPass = FALSE; | 1779 | pDevice->bLinkPass = false; |
1780 | } | 1780 | } |
1781 | }; | 1781 | }; |
1782 | 1782 | ||
@@ -1832,7 +1832,7 @@ ChannelExceedZoneType( | |||
1832 | unsigned char byCurrChannel | 1832 | unsigned char byCurrChannel |
1833 | ) | 1833 | ) |
1834 | { | 1834 | { |
1835 | BOOL exceed=FALSE; | 1835 | BOOL exceed=false; |
1836 | 1836 | ||
1837 | switch(pDevice->byZoneType) { | 1837 | switch(pDevice->byZoneType) { |
1838 | case 0x00: //USA:1~11 | 1838 | case 0x00: //USA:1~11 |
@@ -1876,13 +1876,13 @@ s_vMgrRxBeacon( | |||
1876 | PKnownBSS pBSSList; | 1876 | PKnownBSS pBSSList; |
1877 | WLAN_FR_BEACON sFrame; | 1877 | WLAN_FR_BEACON sFrame; |
1878 | QWORD qwTSFOffset; | 1878 | QWORD qwTSFOffset; |
1879 | BOOL bIsBSSIDEqual = FALSE; | 1879 | BOOL bIsBSSIDEqual = false; |
1880 | BOOL bIsSSIDEqual = FALSE; | 1880 | BOOL bIsSSIDEqual = false; |
1881 | BOOL bTSFLargeDiff = FALSE; | 1881 | BOOL bTSFLargeDiff = false; |
1882 | BOOL bTSFOffsetPostive = FALSE; | 1882 | BOOL bTSFOffsetPostive = false; |
1883 | BOOL bUpdateTSF = FALSE; | 1883 | BOOL bUpdateTSF = false; |
1884 | BOOL bIsAPBeacon = FALSE; | 1884 | BOOL bIsAPBeacon = false; |
1885 | BOOL bIsChannelEqual = FALSE; | 1885 | BOOL bIsChannelEqual = false; |
1886 | unsigned int uLocateByteIndex; | 1886 | unsigned int uLocateByteIndex; |
1887 | unsigned char byTIMBitOn = 0; | 1887 | unsigned char byTIMBitOn = 0; |
1888 | unsigned short wAIDNumber = 0; | 1888 | unsigned short wAIDNumber = 0; |
@@ -1894,8 +1894,8 @@ s_vMgrRxBeacon( | |||
1894 | unsigned char byCurrChannel = pRxPacket->byRxChannel; | 1894 | unsigned char byCurrChannel = pRxPacket->byRxChannel; |
1895 | ERPObject sERP; | 1895 | ERPObject sERP; |
1896 | unsigned int uRateLen = WLAN_RATES_MAXLEN; | 1896 | unsigned int uRateLen = WLAN_RATES_MAXLEN; |
1897 | BOOL bChannelHit = FALSE; | 1897 | BOOL bChannelHit = false; |
1898 | BOOL bUpdatePhyParameter = FALSE; | 1898 | BOOL bUpdatePhyParameter = false; |
1899 | unsigned char byIEChannel = 0; | 1899 | unsigned char byIEChannel = 0; |
1900 | 1900 | ||
1901 | 1901 | ||
@@ -1924,7 +1924,7 @@ s_vMgrRxBeacon( | |||
1924 | } | 1924 | } |
1925 | if (byCurrChannel != byIEChannel) { | 1925 | if (byCurrChannel != byIEChannel) { |
1926 | // adjust channel info. bcs we rcv adjcent channel pakckets | 1926 | // adjust channel info. bcs we rcv adjcent channel pakckets |
1927 | bChannelHit = FALSE; | 1927 | bChannelHit = false; |
1928 | byCurrChannel = byIEChannel; | 1928 | byCurrChannel = byIEChannel; |
1929 | } | 1929 | } |
1930 | } else { | 1930 | } else { |
@@ -1940,7 +1940,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) | |||
1940 | sERP.bERPExist = true; | 1940 | sERP.bERPExist = true; |
1941 | 1941 | ||
1942 | } else { | 1942 | } else { |
1943 | sERP.bERPExist = FALSE; | 1943 | sERP.bERPExist = false; |
1944 | sERP.byERP = 0; | 1944 | sERP.byERP = 0; |
1945 | } | 1945 | } |
1946 | 1946 | ||
@@ -2127,7 +2127,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) | |||
2127 | sFrame.pIE_CHSW->byCount | 2127 | sFrame.pIE_CHSW->byCount |
2128 | ); | 2128 | ); |
2129 | 2129 | ||
2130 | } else if (bIsChannelEqual == FALSE) { | 2130 | } else if (bIsChannelEqual == false) { |
2131 | set_channel(pMgmt->pAdapter, pBSSList->uChannel); | 2131 | set_channel(pMgmt->pAdapter, pBSSList->uChannel); |
2132 | } | 2132 | } |
2133 | } | 2133 | } |
@@ -2152,14 +2152,14 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) | |||
2152 | bTSFOffsetPostive = true; | 2152 | bTSFOffsetPostive = true; |
2153 | } | 2153 | } |
2154 | else { | 2154 | else { |
2155 | bTSFOffsetPostive = FALSE; | 2155 | bTSFOffsetPostive = false; |
2156 | } | 2156 | } |
2157 | } | 2157 | } |
2158 | else if (HIDWORD(qwTimestamp) > HIDWORD(qwLocalTSF)) { | 2158 | else if (HIDWORD(qwTimestamp) > HIDWORD(qwLocalTSF)) { |
2159 | bTSFOffsetPostive = true; | 2159 | bTSFOffsetPostive = true; |
2160 | } | 2160 | } |
2161 | else if (HIDWORD(qwTimestamp) < HIDWORD(qwLocalTSF)) { | 2161 | else if (HIDWORD(qwTimestamp) < HIDWORD(qwLocalTSF)) { |
2162 | bTSFOffsetPostive = FALSE; | 2162 | bTSFOffsetPostive = false; |
2163 | }; | 2163 | }; |
2164 | 2164 | ||
2165 | if (bTSFOffsetPostive) { | 2165 | if (bTSFOffsetPostive) { |
@@ -2185,7 +2185,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) | |||
2185 | if ((pDevice->bEnablePSMode == true) &&(sFrame.pTIM != 0)) { | 2185 | if ((pDevice->bEnablePSMode == true) &&(sFrame.pTIM != 0)) { |
2186 | 2186 | ||
2187 | // deal with DTIM, analysis TIM | 2187 | // deal with DTIM, analysis TIM |
2188 | pMgmt->bMulticastTIM = WLAN_MGMT_IS_MULTICAST_TIM(sFrame.pTIM->byBitMapCtl) ? true : FALSE ; | 2188 | pMgmt->bMulticastTIM = WLAN_MGMT_IS_MULTICAST_TIM(sFrame.pTIM->byBitMapCtl) ? true : false ; |
2189 | pMgmt->byDTIMCount = sFrame.pTIM->byDTIMCount; | 2189 | pMgmt->byDTIMCount = sFrame.pTIM->byDTIMCount; |
2190 | pMgmt->byDTIMPeriod = sFrame.pTIM->byDTIMPeriod; | 2190 | pMgmt->byDTIMPeriod = sFrame.pTIM->byDTIMPeriod; |
2191 | wAIDNumber = pMgmt->wCurrAID & ~(BIT14|BIT15); | 2191 | wAIDNumber = pMgmt->wCurrAID & ~(BIT14|BIT15); |
@@ -2200,14 +2200,14 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) | |||
2200 | // len = byDTIMCount + byDTIMPeriod + byDTIMPeriod + byVirtBitMap[0~250] | 2200 | // len = byDTIMCount + byDTIMPeriod + byDTIMPeriod + byVirtBitMap[0~250] |
2201 | if (sFrame.pTIM->len >= (uLocateByteIndex + 4)) { | 2201 | if (sFrame.pTIM->len >= (uLocateByteIndex + 4)) { |
2202 | byTIMBitOn = (0x01) << ((wAIDNumber) % 8); | 2202 | byTIMBitOn = (0x01) << ((wAIDNumber) % 8); |
2203 | pMgmt->bInTIM = sFrame.pTIM->byVirtBitMap[uLocateByteIndex] & byTIMBitOn ? true : FALSE; | 2203 | pMgmt->bInTIM = sFrame.pTIM->byVirtBitMap[uLocateByteIndex] & byTIMBitOn ? true : false; |
2204 | } | 2204 | } |
2205 | else { | 2205 | else { |
2206 | pMgmt->bInTIM = FALSE; | 2206 | pMgmt->bInTIM = false; |
2207 | }; | 2207 | }; |
2208 | } | 2208 | } |
2209 | else { | 2209 | else { |
2210 | pMgmt->bInTIM = FALSE; | 2210 | pMgmt->bInTIM = false; |
2211 | }; | 2211 | }; |
2212 | 2212 | ||
2213 | if (pMgmt->bInTIM || | 2213 | if (pMgmt->bInTIM || |
@@ -2222,14 +2222,14 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) | |||
2222 | 2222 | ||
2223 | } | 2223 | } |
2224 | else { | 2224 | else { |
2225 | pMgmt->bInTIMWake = FALSE; | 2225 | pMgmt->bInTIMWake = false; |
2226 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "BCN: Not In TIM..\n"); | 2226 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "BCN: Not In TIM..\n"); |
2227 | if (pDevice->bPWBitOn == FALSE) { | 2227 | if (pDevice->bPWBitOn == false) { |
2228 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "BCN: Send Null Packet\n"); | 2228 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "BCN: Send Null Packet\n"); |
2229 | if (PSbSendNullPacket(pDevice)) | 2229 | if (PSbSendNullPacket(pDevice)) |
2230 | pDevice->bPWBitOn = true; | 2230 | pDevice->bPWBitOn = true; |
2231 | } | 2231 | } |
2232 | if(PSbConsiderPowerDown(pDevice, FALSE, FALSE)) { | 2232 | if(PSbConsiderPowerDown(pDevice, false, false)) { |
2233 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "BCN: Power down now...\n"); | 2233 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "BCN: Power down now...\n"); |
2234 | }; | 2234 | }; |
2235 | } | 2235 | } |
@@ -2709,14 +2709,14 @@ vMgrJoinBSSBegin( | |||
2709 | // patch for CISCO migration mode | 2709 | // patch for CISCO migration mode |
2710 | /* | 2710 | /* |
2711 | if (pDevice->eEncryptionStatus == Ndis802_11Encryption2Enabled) { | 2711 | if (pDevice->eEncryptionStatus == Ndis802_11Encryption2Enabled) { |
2712 | if (WPA_SearchRSN(0, WPA_TKIP, pCurr) == FALSE) { | 2712 | if (WPA_SearchRSN(0, WPA_TKIP, pCurr) == false) { |
2713 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"No match RSN info. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"); | 2713 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"No match RSN info. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"); |
2714 | // encryption mode error | 2714 | // encryption mode error |
2715 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 2715 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
2716 | return; | 2716 | return; |
2717 | } | 2717 | } |
2718 | } else if (pDevice->eEncryptionStatus == Ndis802_11Encryption3Enabled) { | 2718 | } else if (pDevice->eEncryptionStatus == Ndis802_11Encryption3Enabled) { |
2719 | if (WPA_SearchRSN(0, WPA_AESCCMP, pCurr) == FALSE) { | 2719 | if (WPA_SearchRSN(0, WPA_AESCCMP, pCurr) == false) { |
2720 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"No match RSN info. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"); | 2720 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"No match RSN info. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"); |
2721 | // encryption mode error | 2721 | // encryption mode error |
2722 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 2722 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
@@ -2805,7 +2805,7 @@ vMgrJoinBSSBegin( | |||
2805 | if (pMgmt->eAuthenMode == WMAC_AUTH_WPA2) { | 2805 | if (pMgmt->eAuthenMode == WMAC_AUTH_WPA2) { |
2806 | BOOL bResult = bAdd_PMKID_Candidate((void *)pDevice, pMgmt->abyCurrBSSID, &pCurr->sRSNCapObj); | 2806 | BOOL bResult = bAdd_PMKID_Candidate((void *)pDevice, pMgmt->abyCurrBSSID, &pCurr->sRSNCapObj); |
2807 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"bAdd_PMKID_Candidate: 1(%d)\n", bResult); | 2807 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"bAdd_PMKID_Candidate: 1(%d)\n", bResult); |
2808 | if (bResult == FALSE) { | 2808 | if (bResult == false) { |
2809 | vFlush_PMKID_Candidate((void *)pDevice); | 2809 | vFlush_PMKID_Candidate((void *)pDevice); |
2810 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"vFlush_PMKID_Candidate: 4\n"); | 2810 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"vFlush_PMKID_Candidate: 4\n"); |
2811 | bAdd_PMKID_Candidate((void *)pDevice, pMgmt->abyCurrBSSID, &pCurr->sRSNCapObj); | 2811 | bAdd_PMKID_Candidate((void *)pDevice, pMgmt->abyCurrBSSID, &pCurr->sRSNCapObj); |
@@ -2832,13 +2832,13 @@ vMgrJoinBSSBegin( | |||
2832 | if (pMgmt->eAuthenMode == WMAC_AUTH_WPANONE) { | 2832 | if (pMgmt->eAuthenMode == WMAC_AUTH_WPANONE) { |
2833 | 2833 | ||
2834 | if (pDevice->eEncryptionStatus == Ndis802_11Encryption2Enabled) { | 2834 | if (pDevice->eEncryptionStatus == Ndis802_11Encryption2Enabled) { |
2835 | if (WPA_SearchRSN(0, WPA_TKIP, pCurr) == FALSE) { | 2835 | if (WPA_SearchRSN(0, WPA_TKIP, pCurr) == false) { |
2836 | // encryption mode error | 2836 | // encryption mode error |
2837 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 2837 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
2838 | return; | 2838 | return; |
2839 | } | 2839 | } |
2840 | } else if (pDevice->eEncryptionStatus == Ndis802_11Encryption3Enabled) { | 2840 | } else if (pDevice->eEncryptionStatus == Ndis802_11Encryption3Enabled) { |
2841 | if (WPA_SearchRSN(0, WPA_AESCCMP, pCurr) == FALSE) { | 2841 | if (WPA_SearchRSN(0, WPA_AESCCMP, pCurr) == false) { |
2842 | // encryption mode error | 2842 | // encryption mode error |
2843 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 2843 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
2844 | return; | 2844 | return; |
@@ -2945,7 +2945,7 @@ s_vMgrSynchBSS ( | |||
2945 | if (s_bCipherMatch(pCurr, | 2945 | if (s_bCipherMatch(pCurr, |
2946 | pDevice->eEncryptionStatus, | 2946 | pDevice->eEncryptionStatus, |
2947 | &(pMgmt->byCSSPK), | 2947 | &(pMgmt->byCSSPK), |
2948 | &(pMgmt->byCSSGK)) == FALSE) { | 2948 | &(pMgmt->byCSSGK)) == false) { |
2949 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "s_bCipherMatch Fail .......\n"); | 2949 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "s_bCipherMatch Fail .......\n"); |
2950 | return; | 2950 | return; |
2951 | } | 2951 | } |
@@ -2960,11 +2960,11 @@ s_vMgrSynchBSS ( | |||
2960 | 2960 | ||
2961 | // Init the BSS informations | 2961 | // Init the BSS informations |
2962 | pDevice->bCCK = true; | 2962 | pDevice->bCCK = true; |
2963 | pDevice->bProtectMode = FALSE; | 2963 | pDevice->bProtectMode = false; |
2964 | MACvDisableProtectMD(pDevice->PortOffset); | 2964 | MACvDisableProtectMD(pDevice->PortOffset); |
2965 | pDevice->bBarkerPreambleMd = FALSE; | 2965 | pDevice->bBarkerPreambleMd = false; |
2966 | MACvDisableBarkerPreambleMd(pDevice->PortOffset); | 2966 | MACvDisableBarkerPreambleMd(pDevice->PortOffset); |
2967 | pDevice->bNonERPPresent = FALSE; | 2967 | pDevice->bNonERPPresent = false; |
2968 | pDevice->byPreambleType = 0; | 2968 | pDevice->byPreambleType = 0; |
2969 | pDevice->wBasicRate = 0; | 2969 | pDevice->wBasicRate = 0; |
2970 | // Set Basic Rate | 2970 | // Set Basic Rate |
@@ -3052,7 +3052,7 @@ s_vMgrSynchBSS ( | |||
3052 | return; | 3052 | return; |
3053 | } | 3053 | } |
3054 | // set channel and clear NAV | 3054 | // set channel and clear NAV |
3055 | if (set_channel(pMgmt->pAdapter, pCurr->uChannel) == FALSE) { | 3055 | if (set_channel(pMgmt->pAdapter, pCurr->uChannel) == false) { |
3056 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "<----s_bSynchBSS Set Channel [%d]\n", pCurr->uChannel); | 3056 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "<----s_bSynchBSS Set Channel [%d]\n", pCurr->uChannel); |
3057 | return; | 3057 | return; |
3058 | } | 3058 | } |
@@ -3155,8 +3155,8 @@ s_vMgrFormatTIM( | |||
3155 | unsigned char byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80}; | 3155 | unsigned char byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80}; |
3156 | unsigned char byMap; | 3156 | unsigned char byMap; |
3157 | unsigned int ii, jj; | 3157 | unsigned int ii, jj; |
3158 | BOOL bStartFound = FALSE; | 3158 | BOOL bStartFound = false; |
3159 | BOOL bMulticast = FALSE; | 3159 | BOOL bMulticast = false; |
3160 | unsigned short wStartIndex = 0; | 3160 | unsigned short wStartIndex = 0; |
3161 | unsigned short wEndIndex = 0; | 3161 | unsigned short wEndIndex = 0; |
3162 | 3162 | ||
@@ -4357,7 +4357,7 @@ s_vMgrRxProbeResponse( | |||
4357 | } | 4357 | } |
4358 | if (byCurrChannel != byIEChannel) { | 4358 | if (byCurrChannel != byIEChannel) { |
4359 | // adjust channel info. bcs we rcv adjcent channel pakckets | 4359 | // adjust channel info. bcs we rcv adjcent channel pakckets |
4360 | bChannelHit = FALSE; | 4360 | bChannelHit = false; |
4361 | byCurrChannel = byIEChannel; | 4361 | byCurrChannel = byIEChannel; |
4362 | } | 4362 | } |
4363 | } else { | 4363 | } else { |
@@ -4373,7 +4373,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) | |||
4373 | sERP.byERP = sFrame.pERP->byContext; | 4373 | sERP.byERP = sFrame.pERP->byContext; |
4374 | sERP.bERPExist = true; | 4374 | sERP.bERPExist = true; |
4375 | } else { | 4375 | } else { |
4376 | sERP.bERPExist = FALSE; | 4376 | sERP.bERPExist = false; |
4377 | sERP.byERP = 0; | 4377 | sERP.byERP = 0; |
4378 | } | 4378 | } |
4379 | 4379 | ||
@@ -4543,7 +4543,7 @@ vMgrRxManagePacket( | |||
4543 | ) | 4543 | ) |
4544 | { | 4544 | { |
4545 | PSDevice pDevice = (PSDevice)hDeviceContext; | 4545 | PSDevice pDevice = (PSDevice)hDeviceContext; |
4546 | BOOL bInScan = FALSE; | 4546 | BOOL bInScan = false; |
4547 | unsigned int uNodeIndex = 0; | 4547 | unsigned int uNodeIndex = 0; |
4548 | NODE_STATE eNodeState = 0; | 4548 | NODE_STATE eNodeState = 0; |
4549 | CMD_STATUS Status; | 4549 | CMD_STATUS Status; |
@@ -4578,7 +4578,7 @@ vMgrRxManagePacket( | |||
4578 | case WLAN_FSTYPE_ASSOCRESP: | 4578 | case WLAN_FSTYPE_ASSOCRESP: |
4579 | // Frame Clase = 2 | 4579 | // Frame Clase = 2 |
4580 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "rx assocresp1\n"); | 4580 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "rx assocresp1\n"); |
4581 | s_vMgrRxAssocResponse(pDevice, pMgmt, pRxPacket, FALSE); | 4581 | s_vMgrRxAssocResponse(pDevice, pMgmt, pRxPacket, false); |
4582 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "rx assocresp2\n"); | 4582 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "rx assocresp2\n"); |
4583 | break; | 4583 | break; |
4584 | 4584 | ||
@@ -4681,7 +4681,7 @@ vMgrRxManagePacket( | |||
4681 | * Prepare beacon to send | 4681 | * Prepare beacon to send |
4682 | * | 4682 | * |
4683 | * Return Value: | 4683 | * Return Value: |
4684 | * true if success; FALSE if failed. | 4684 | * true if success; false if failed. |
4685 | * | 4685 | * |
4686 | -*/ | 4686 | -*/ |
4687 | BOOL | 4687 | BOOL |
@@ -4693,7 +4693,7 @@ bMgrPrepareBeaconToSend( | |||
4693 | PSDevice pDevice = (PSDevice)hDeviceContext; | 4693 | PSDevice pDevice = (PSDevice)hDeviceContext; |
4694 | PSTxMgmtPacket pTxPacket; | 4694 | PSTxMgmtPacket pTxPacket; |
4695 | 4695 | ||
4696 | // pDevice->bBeaconBufReady = FALSE; | 4696 | // pDevice->bBeaconBufReady = false; |
4697 | if (pDevice->bEncryptionEnable || pDevice->bEnable8021x){ | 4697 | if (pDevice->bEncryptionEnable || pDevice->bEnable8021x){ |
4698 | pMgmt->wCurrCapInfo |= WLAN_SET_CAP_INFO_PRIVACY(1); | 4698 | pMgmt->wCurrCapInfo |= WLAN_SET_CAP_INFO_PRIVACY(1); |
4699 | } | 4699 | } |
@@ -4716,7 +4716,7 @@ bMgrPrepareBeaconToSend( | |||
4716 | 4716 | ||
4717 | if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && | 4717 | if ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && |
4718 | (pMgmt->abyCurrBSSID[0] == 0)) | 4718 | (pMgmt->abyCurrBSSID[0] == 0)) |
4719 | return FALSE; | 4719 | return false; |
4720 | 4720 | ||
4721 | csBeacon_xmit(pDevice, pTxPacket); | 4721 | csBeacon_xmit(pDevice, pTxPacket); |
4722 | 4722 | ||
@@ -4822,10 +4822,10 @@ bAdd_PMKID_Candidate ( | |||
4822 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"bAdd_PMKID_Candidate START: (%d)\n", (int)pDevice->gsPMKIDCandidate.NumCandidates); | 4822 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"bAdd_PMKID_Candidate START: (%d)\n", (int)pDevice->gsPMKIDCandidate.NumCandidates); |
4823 | 4823 | ||
4824 | if ((pDevice == NULL) || (pbyBSSID == NULL) || (psRSNCapObj == NULL)) | 4824 | if ((pDevice == NULL) || (pbyBSSID == NULL) || (psRSNCapObj == NULL)) |
4825 | return FALSE; | 4825 | return false; |
4826 | 4826 | ||
4827 | if (pDevice->gsPMKIDCandidate.NumCandidates >= MAX_PMKIDLIST) | 4827 | if (pDevice->gsPMKIDCandidate.NumCandidates >= MAX_PMKIDLIST) |
4828 | return FALSE; | 4828 | return false; |
4829 | 4829 | ||
4830 | 4830 | ||
4831 | 4831 | ||
@@ -4895,7 +4895,7 @@ s_bCipherMatch ( | |||
4895 | int i; | 4895 | int i; |
4896 | 4896 | ||
4897 | if (pBSSNode == NULL) | 4897 | if (pBSSNode == NULL) |
4898 | return FALSE; | 4898 | return false; |
4899 | 4899 | ||
4900 | // check cap. of BSS | 4900 | // check cap. of BSS |
4901 | if ((WLAN_GET_CAP_INFO_PRIVACY(pBSSNode->wCapInfo) != 0) && | 4901 | if ((WLAN_GET_CAP_INFO_PRIVACY(pBSSNode->wCapInfo) != 0) && |
@@ -4981,7 +4981,7 @@ s_bCipherMatch ( | |||
4981 | *pbyCCSPK = KEY_CTL_NONE; | 4981 | *pbyCCSPK = KEY_CTL_NONE; |
4982 | return true; | 4982 | return true; |
4983 | } else { | 4983 | } else { |
4984 | return FALSE; | 4984 | return false; |
4985 | } | 4985 | } |
4986 | 4986 | ||
4987 | } else if (EncStatus == Ndis802_11Encryption2Enabled) { | 4987 | } else if (EncStatus == Ndis802_11Encryption2Enabled) { |
@@ -5001,13 +5001,13 @@ s_bCipherMatch ( | |||
5001 | *pbyCCSPK = KEY_CTL_TKIP; | 5001 | *pbyCCSPK = KEY_CTL_TKIP; |
5002 | return true; | 5002 | return true; |
5003 | } else { | 5003 | } else { |
5004 | return FALSE; | 5004 | return false; |
5005 | } | 5005 | } |
5006 | } else if (EncStatus == Ndis802_11Encryption3Enabled) { | 5006 | } else if (EncStatus == Ndis802_11Encryption3Enabled) { |
5007 | if ((byMulticastCipher == KEY_CTL_CCMP) && | 5007 | if ((byMulticastCipher == KEY_CTL_CCMP) && |
5008 | (byCipherMask == 0)) { | 5008 | (byCipherMask == 0)) { |
5009 | // When CCMP is enable, "Use group cipher suite" shall not be a valid option. | 5009 | // When CCMP is enable, "Use group cipher suite" shall not be a valid option. |
5010 | return FALSE; | 5010 | return false; |
5011 | } else if ((byMulticastCipher == KEY_CTL_WEP) && | 5011 | } else if ((byMulticastCipher == KEY_CTL_WEP) && |
5012 | ((byCipherMask & 0x04) != 0)) { | 5012 | ((byCipherMask & 0x04) != 0)) { |
5013 | *pbyCCSGK = KEY_CTL_WEP; | 5013 | *pbyCCSGK = KEY_CTL_WEP; |
@@ -5024,7 +5024,7 @@ s_bCipherMatch ( | |||
5024 | *pbyCCSPK = KEY_CTL_CCMP; | 5024 | *pbyCCSPK = KEY_CTL_CCMP; |
5025 | return true; | 5025 | return true; |
5026 | } else { | 5026 | } else { |
5027 | return FALSE; | 5027 | return false; |
5028 | } | 5028 | } |
5029 | } | 5029 | } |
5030 | return true; | 5030 | return true; |
diff --git a/drivers/staging/vt6655/wpa.c b/drivers/staging/vt6655/wpa.c index da8d548e6ff7..5d357a25f9da 100644 --- a/drivers/staging/vt6655/wpa.c +++ b/drivers/staging/vt6655/wpa.c | |||
@@ -83,9 +83,9 @@ WPA_ClearRSN ( | |||
83 | pBSSList->wAuthCount = 0; | 83 | pBSSList->wAuthCount = 0; |
84 | pBSSList->byDefaultK_as_PK = 0; | 84 | pBSSList->byDefaultK_as_PK = 0; |
85 | pBSSList->byReplayIdx = 0; | 85 | pBSSList->byReplayIdx = 0; |
86 | pBSSList->sRSNCapObj.bRSNCapExist = FALSE; | 86 | pBSSList->sRSNCapObj.bRSNCapExist = false; |
87 | pBSSList->sRSNCapObj.wRSNCap = 0; | 87 | pBSSList->sRSNCapObj.wRSNCap = 0; |
88 | pBSSList->bWPAValid = FALSE; | 88 | pBSSList->bWPAValid = false; |
89 | } | 89 | } |
90 | 90 | ||
91 | 91 | ||
@@ -247,14 +247,14 @@ WPA_SearchRSN ( | |||
247 | int ii; | 247 | int ii; |
248 | unsigned char byPKType = WPA_NONE; | 248 | unsigned char byPKType = WPA_NONE; |
249 | 249 | ||
250 | if (pBSSList->bWPAValid == FALSE) | 250 | if (pBSSList->bWPAValid == false) |
251 | return FALSE; | 251 | return false; |
252 | 252 | ||
253 | switch(byCmd) { | 253 | switch(byCmd) { |
254 | case 0: | 254 | case 0: |
255 | 255 | ||
256 | if (byEncrypt != pBSSList->byGKType) | 256 | if (byEncrypt != pBSSList->byGKType) |
257 | return FALSE; | 257 | return false; |
258 | 258 | ||
259 | if (pBSSList->wPKCount > 0) { | 259 | if (pBSSList->wPKCount > 0) { |
260 | for (ii = 0; ii < pBSSList->wPKCount; ii ++) { | 260 | for (ii = 0; ii < pBSSList->wPKCount; ii ++) { |
@@ -268,7 +268,7 @@ WPA_SearchRSN ( | |||
268 | byPKType = WPA_WEP104; | 268 | byPKType = WPA_WEP104; |
269 | } | 269 | } |
270 | if (byEncrypt != byPKType) | 270 | if (byEncrypt != byPKType) |
271 | return FALSE; | 271 | return false; |
272 | } | 272 | } |
273 | return true; | 273 | return true; |
274 | // if (pBSSList->wAuthCount > 0) | 274 | // if (pBSSList->wAuthCount > 0) |
@@ -280,7 +280,7 @@ WPA_SearchRSN ( | |||
280 | default: | 280 | default: |
281 | break; | 281 | break; |
282 | } | 282 | } |
283 | return FALSE; | 283 | return false; |
284 | } | 284 | } |
285 | 285 | ||
286 | /*+ | 286 | /*+ |
@@ -303,7 +303,7 @@ WPAb_Is_RSN ( | |||
303 | ) | 303 | ) |
304 | { | 304 | { |
305 | if (pRSN == NULL) | 305 | if (pRSN == NULL) |
306 | return FALSE; | 306 | return false; |
307 | 307 | ||
308 | if ((pRSN->len >= 6) && // oui1(4)+ver(2) | 308 | if ((pRSN->len >= 6) && // oui1(4)+ver(2) |
309 | (pRSN->byElementID == WLAN_EID_RSN_WPA) && !memcmp(pRSN->abyOUI, abyOUI01, 4) && | 309 | (pRSN->byElementID == WLAN_EID_RSN_WPA) && !memcmp(pRSN->abyOUI, abyOUI01, 4) && |
@@ -311,6 +311,6 @@ WPAb_Is_RSN ( | |||
311 | return true; | 311 | return true; |
312 | } | 312 | } |
313 | else | 313 | else |
314 | return FALSE; | 314 | return false; |
315 | } | 315 | } |
316 | 316 | ||
diff --git a/drivers/staging/vt6655/wpa2.c b/drivers/staging/vt6655/wpa2.c index 9b763a8a1ff6..b5f3a66f89d6 100644 --- a/drivers/staging/vt6655/wpa2.c +++ b/drivers/staging/vt6655/wpa2.c | |||
@@ -79,7 +79,7 @@ WPA2_ClearRSN ( | |||
79 | { | 79 | { |
80 | int ii; | 80 | int ii; |
81 | 81 | ||
82 | pBSSNode->bWPA2Valid = FALSE; | 82 | pBSSNode->bWPA2Valid = false; |
83 | 83 | ||
84 | pBSSNode->byCSSGK = WLAN_11i_CSS_CCMP; | 84 | pBSSNode->byCSSGK = WLAN_11i_CSS_CCMP; |
85 | for (ii=0; ii < 4; ii ++) | 85 | for (ii=0; ii < 4; ii ++) |
@@ -88,7 +88,7 @@ WPA2_ClearRSN ( | |||
88 | for (ii=0; ii < 4; ii ++) | 88 | for (ii=0; ii < 4; ii ++) |
89 | pBSSNode->abyAKMSSAuthType[ii] = WLAN_11i_AKMSS_802_1X; | 89 | pBSSNode->abyAKMSSAuthType[ii] = WLAN_11i_AKMSS_802_1X; |
90 | pBSSNode->wAKMSSAuthCount = 1; | 90 | pBSSNode->wAKMSSAuthCount = 1; |
91 | pBSSNode->sRSNCapObj.bRSNCapExist = FALSE; | 91 | pBSSNode->sRSNCapObj.bRSNCapExist = false; |
92 | pBSSNode->sRSNCapObj.wRSNCap = 0; | 92 | pBSSNode->sRSNCapObj.wRSNCap = 0; |
93 | } | 93 | } |
94 | 94 | ||
@@ -116,7 +116,7 @@ WPA2vParseRSN ( | |||
116 | int i, j; | 116 | int i, j; |
117 | unsigned short m = 0, n = 0; | 117 | unsigned short m = 0, n = 0; |
118 | unsigned char *pbyOUI; | 118 | unsigned char *pbyOUI; |
119 | BOOL bUseGK = FALSE; | 119 | BOOL bUseGK = false; |
120 | 120 | ||
121 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"WPA2_ParseRSN: [%d]\n", pRSN->len); | 121 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"WPA2_ParseRSN: [%d]\n", pRSN->len); |
122 | 122 | ||
diff --git a/drivers/staging/vt6655/wpactl.c b/drivers/staging/vt6655/wpactl.c index d5e517b08f43..2b37bb8e375d 100644 --- a/drivers/staging/vt6655/wpactl.c +++ b/drivers/staging/vt6655/wpactl.c | |||
@@ -219,9 +219,9 @@ int wpa_set_wpadev(PSDevice pDevice, int val) | |||
219 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "param->u.wpa_key.alg_name = %d \n", param->u.wpa_key.alg_name); | 219 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "param->u.wpa_key.alg_name = %d \n", param->u.wpa_key.alg_name); |
220 | if (param->u.wpa_key.alg_name == WPA_ALG_NONE) { | 220 | if (param->u.wpa_key.alg_name == WPA_ALG_NONE) { |
221 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; | 221 | pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; |
222 | pDevice->bEncryptionEnable = FALSE; | 222 | pDevice->bEncryptionEnable = false; |
223 | pDevice->byKeyIndex = 0; | 223 | pDevice->byKeyIndex = 0; |
224 | pDevice->bTransmitKey = FALSE; | 224 | pDevice->bTransmitKey = false; |
225 | KeyvRemoveAllWEPKey(&(pDevice->sKey), pDevice->PortOffset); | 225 | KeyvRemoveAllWEPKey(&(pDevice->sKey), pDevice->PortOffset); |
226 | for (uu=0; uu<MAX_KEY_TABLE; uu++) { | 226 | for (uu=0; uu<MAX_KEY_TABLE; uu++) { |
227 | MACvDisableKeyEntry(pDevice->PortOffset, uu); | 227 | MACvDisableKeyEntry(pDevice->PortOffset, uu); |
@@ -465,7 +465,7 @@ static int wpa_set_wpa(PSDevice pDevice, | |||
465 | int ret = 0; | 465 | int ret = 0; |
466 | 466 | ||
467 | pMgmt->eAuthenMode = WMAC_AUTH_OPEN; | 467 | pMgmt->eAuthenMode = WMAC_AUTH_OPEN; |
468 | pMgmt->bShareKeyAlgorithm = FALSE; | 468 | pMgmt->bShareKeyAlgorithm = false; |
469 | 469 | ||
470 | return ret; | 470 | return ret; |
471 | } | 471 | } |
@@ -641,7 +641,7 @@ static int wpa_get_scan(PSDevice pDevice, | |||
641 | 641 | ||
642 | if((pMgmt->sBSSList[jj].bActive!=true) || | 642 | if((pMgmt->sBSSList[jj].bActive!=true) || |
643 | 643 | ||
644 | ((pMgmt->sBSSList[jj].uRSSI>pMgmt->sBSSList[jj+1].uRSSI) &&(pMgmt->sBSSList[jj+1].bActive!=FALSE))) { | 644 | ((pMgmt->sBSSList[jj].uRSSI>pMgmt->sBSSList[jj+1].uRSSI) &&(pMgmt->sBSSList[jj+1].bActive!=false))) { |
645 | 645 | ||
646 | memcpy(ptempBSS,&pMgmt->sBSSList[jj],sizeof(KnownBSS)); | 646 | memcpy(ptempBSS,&pMgmt->sBSSList[jj],sizeof(KnownBSS)); |
647 | 647 | ||
@@ -755,7 +755,7 @@ static int wpa_set_associate(PSDevice pDevice, | |||
755 | unsigned char abyNullAddr[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; | 755 | unsigned char abyNullAddr[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; |
756 | unsigned char abyWPAIE[64]; | 756 | unsigned char abyWPAIE[64]; |
757 | int ret = 0; | 757 | int ret = 0; |
758 | BOOL bWepEnabled=FALSE; | 758 | BOOL bWepEnabled=false; |
759 | 759 | ||
760 | // set key type & algorithm | 760 | // set key type & algorithm |
761 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pairwise_suite = %d\n", param->u.wpa_associate.pairwise_suite); | 761 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pairwise_suite = %d\n", param->u.wpa_associate.pairwise_suite); |
@@ -840,7 +840,7 @@ else | |||
840 | if(!bWepEnabled) pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; | 840 | if(!bWepEnabled) pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; |
841 | else pDevice->eEncryptionStatus = Ndis802_11Encryption1Enabled; | 841 | else pDevice->eEncryptionStatus = Ndis802_11Encryption1Enabled; |
842 | //pMgmt->eAuthenMode = WMAC_AUTH_OPEN; | 842 | //pMgmt->eAuthenMode = WMAC_AUTH_OPEN; |
843 | //pMgmt->bShareKeyAlgorithm = FALSE; //20080717-06,<Modify> by chester//Fix Open mode, WEP encrytion | 843 | //pMgmt->bShareKeyAlgorithm = false; //20080717-06,<Modify> by chester//Fix Open mode, WEP encrytion |
844 | } | 844 | } |
845 | //mike save old encryption status | 845 | //mike save old encryption status |
846 | pDevice->eOldEncryptionStatus = pDevice->eEncryptionStatus; | 846 | pDevice->eOldEncryptionStatus = pDevice->eEncryptionStatus; |
@@ -848,12 +848,12 @@ else | |||
848 | if (pDevice->eEncryptionStatus != Ndis802_11EncryptionDisabled) | 848 | if (pDevice->eEncryptionStatus != Ndis802_11EncryptionDisabled) |
849 | pDevice->bEncryptionEnable = true; | 849 | pDevice->bEncryptionEnable = true; |
850 | else | 850 | else |
851 | pDevice->bEncryptionEnable = FALSE; | 851 | pDevice->bEncryptionEnable = false; |
852 | if (!((pMgmt->eAuthenMode == WMAC_AUTH_SHAREKEY) || | 852 | if (!((pMgmt->eAuthenMode == WMAC_AUTH_SHAREKEY) || |
853 | ((pMgmt->eAuthenMode == WMAC_AUTH_OPEN) && (bWepEnabled==true))) ) //DavidWang //20080717-06,<Modify> by chester//Not to initial WEP | 853 | ((pMgmt->eAuthenMode == WMAC_AUTH_OPEN) && (bWepEnabled==true))) ) //DavidWang //20080717-06,<Modify> by chester//Not to initial WEP |
854 | KeyvInitTable(&pDevice->sKey, pDevice->PortOffset); | 854 | KeyvInitTable(&pDevice->sKey, pDevice->PortOffset); |
855 | spin_lock_irq(&pDevice->lock); | 855 | spin_lock_irq(&pDevice->lock); |
856 | pDevice->bLinkPass = FALSE; | 856 | pDevice->bLinkPass = false; |
857 | memset(pMgmt->abyCurrBSSID, 0, 6); | 857 | memset(pMgmt->abyCurrBSSID, 0, 6); |
858 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 858 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
859 | netif_stop_queue(pDevice->dev); | 859 | netif_stop_queue(pDevice->dev); |
@@ -922,7 +922,7 @@ int wpa_ioctl(PSDevice pDevice, struct iw_point *p) | |||
922 | case VIAWGET_SET_KEY: | 922 | case VIAWGET_SET_KEY: |
923 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "VIAWGET_SET_KEY \n"); | 923 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "VIAWGET_SET_KEY \n"); |
924 | spin_lock_irq(&pDevice->lock); | 924 | spin_lock_irq(&pDevice->lock); |
925 | ret = wpa_set_keys(pDevice, param, FALSE); | 925 | ret = wpa_set_keys(pDevice, param, false); |
926 | spin_unlock_irq(&pDevice->lock); | 926 | spin_unlock_irq(&pDevice->lock); |
927 | break; | 927 | break; |
928 | 928 | ||
diff --git a/drivers/staging/vt6655/wroute.c b/drivers/staging/vt6655/wroute.c index 54534df9104f..58348f57ff6f 100644 --- a/drivers/staging/vt6655/wroute.c +++ b/drivers/staging/vt6655/wroute.c | |||
@@ -60,9 +60,9 @@ static int msglevel =MSG_LEVEL_INFO; | |||
60 | * pDevice - | 60 | * pDevice - |
61 | * pbySkbData - rx packet skb data | 61 | * pbySkbData - rx packet skb data |
62 | * Out: | 62 | * Out: |
63 | * true, FALSE | 63 | * true, false |
64 | * | 64 | * |
65 | * Return Value: true if packet duplicate; otherwise FALSE | 65 | * Return Value: true if packet duplicate; otherwise false |
66 | * | 66 | * |
67 | */ | 67 | */ |
68 | BOOL ROUTEbRelay (PSDevice pDevice, unsigned char *pbySkbData, unsigned int uDataLen, unsigned int uNodeIndex) | 68 | BOOL ROUTEbRelay (PSDevice pDevice, unsigned char *pbySkbData, unsigned int uDataLen, unsigned int uNodeIndex) |
@@ -72,7 +72,7 @@ BOOL ROUTEbRelay (PSDevice pDevice, unsigned char *pbySkbData, unsigned int uDat | |||
72 | unsigned int cbFrameBodySize; | 72 | unsigned int cbFrameBodySize; |
73 | unsigned int uMACfragNum; | 73 | unsigned int uMACfragNum; |
74 | unsigned char byPktType; | 74 | unsigned char byPktType; |
75 | BOOL bNeedEncryption = FALSE; | 75 | BOOL bNeedEncryption = false; |
76 | SKeyItem STempKey; | 76 | SKeyItem STempKey; |
77 | PSKeyItem pTransmitKey = NULL; | 77 | PSKeyItem pTransmitKey = NULL; |
78 | unsigned int cbHeaderSize; | 78 | unsigned int cbHeaderSize; |
@@ -84,7 +84,7 @@ BOOL ROUTEbRelay (PSDevice pDevice, unsigned char *pbySkbData, unsigned int uDat | |||
84 | 84 | ||
85 | if (AVAIL_TD(pDevice, TYPE_AC0DMA)<=0) { | 85 | if (AVAIL_TD(pDevice, TYPE_AC0DMA)<=0) { |
86 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Relay can't allocate TD1..\n"); | 86 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Relay can't allocate TD1..\n"); |
87 | return FALSE; | 87 | return false; |
88 | } | 88 | } |
89 | 89 | ||
90 | pHeadTD = pDevice->apCurrTD[TYPE_AC0DMA]; | 90 | pHeadTD = pDevice->apCurrTD[TYPE_AC0DMA]; |
@@ -104,7 +104,7 @@ BOOL ROUTEbRelay (PSDevice pDevice, unsigned char *pbySkbData, unsigned int uDat | |||
104 | 104 | ||
105 | // get group key | 105 | // get group key |
106 | pbyBSSID = pDevice->abyBroadcastAddr; | 106 | pbyBSSID = pDevice->abyBroadcastAddr; |
107 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == FALSE) { | 107 | if(KeybGetTransmitKey(&(pDevice->sKey), pbyBSSID, GROUP_KEY, &pTransmitKey) == false) { |
108 | pTransmitKey = NULL; | 108 | pTransmitKey = NULL; |
109 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_DEBUG"KEY is NULL. [%d]\n", pDevice->pMgmt->eCurrMode); | 109 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_DEBUG"KEY is NULL. [%d]\n", pDevice->pMgmt->eCurrMode); |
110 | } else { | 110 | } else { |
@@ -130,7 +130,7 @@ BOOL ROUTEbRelay (PSDevice pDevice, unsigned char *pbySkbData, unsigned int uDat | |||
130 | uMACfragNum = cbGetFragCount(pDevice, pTransmitKey, cbFrameBodySize, &pDevice->sTxEthHeader); | 130 | uMACfragNum = cbGetFragCount(pDevice, pTransmitKey, cbFrameBodySize, &pDevice->sTxEthHeader); |
131 | 131 | ||
132 | if (uMACfragNum > AVAIL_TD(pDevice,TYPE_AC0DMA)) { | 132 | if (uMACfragNum > AVAIL_TD(pDevice,TYPE_AC0DMA)) { |
133 | return FALSE; | 133 | return false; |
134 | } | 134 | } |
135 | byPktType = (unsigned char)pDevice->byPacketType; | 135 | byPktType = (unsigned char)pDevice->byPacketType; |
136 | 136 | ||
@@ -172,7 +172,7 @@ BOOL ROUTEbRelay (PSDevice pDevice, unsigned char *pbySkbData, unsigned int uDat | |||
172 | MACbPSWakeup(pDevice->PortOffset); | 172 | MACbPSWakeup(pDevice->PortOffset); |
173 | } | 173 | } |
174 | 174 | ||
175 | pDevice->bPWBitOn = FALSE; | 175 | pDevice->bPWBitOn = false; |
176 | 176 | ||
177 | pLastTD = pHeadTD; | 177 | pLastTD = pHeadTD; |
178 | for (ii = 0; ii < uMACfragNum; ii++) { | 178 | for (ii = 0; ii < uMACfragNum; ii++) { |