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 /drivers/staging/vt6655/card.c | |
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>
Diffstat (limited to 'drivers/staging/vt6655/card.c')
-rw-r--r-- | drivers/staging/vt6655/card.c | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c index a0dc1ffc2a1..baf94ebb88b 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 | ||