staging: vt6656: replace custom BOOL definition with bool
Checkpatch findings were not resolved, just make direct replacement plus a couple of conflicting types in declarations. sed -i 's/\bBOOL\b/bool/g' drivers/staging/vt6656/*.[ch] Signed-off-by: Andres More <more.andres@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b6592810e4
commit
dfdcc42597
|
@ -231,7 +231,7 @@ void AESv128(BYTE *key, BYTE *data, BYTE *ciphertext)
|
|||
*
|
||||
*/
|
||||
|
||||
BOOL AESbGenCCMP(PBYTE pbyRxKey, PBYTE pbyFrame, WORD wFrameSize)
|
||||
bool AESbGenCCMP(PBYTE pbyRxKey, PBYTE pbyFrame, WORD wFrameSize)
|
||||
{
|
||||
BYTE abyNonce[13];
|
||||
BYTE MIC_IV[16];
|
||||
|
@ -249,7 +249,7 @@ BOOL AESbGenCCMP(PBYTE pbyRxKey, PBYTE pbyFrame, WORD wFrameSize)
|
|||
WORD wHLen = 22;
|
||||
/* 8 is IV, 8 is MIC, 4 is CRC */
|
||||
WORD wPayloadSize = wFrameSize - 8 - 8 - 4 - WLAN_HDR_ADDR3_LEN;
|
||||
BOOL bA4 = FALSE;
|
||||
bool bA4 = FALSE;
|
||||
BYTE byTmp;
|
||||
WORD wCnt;
|
||||
int ii, jj, kk;
|
||||
|
|
|
@ -41,6 +41,6 @@
|
|||
/*--------------------- Export Variables --------------------------*/
|
||||
|
||||
/*--------------------- Export Functions --------------------------*/
|
||||
BOOL AESbGenCCMP(PBYTE pbyRxKey, PBYTE pbyFrame, WORD wFrameSize);
|
||||
bool AESbGenCCMP(PBYTE pbyRxKey, PBYTE pbyFrame, WORD wFrameSize);
|
||||
|
||||
#endif /* __AES_CCMP_H__ */
|
||||
|
|
|
@ -355,7 +355,7 @@ int BSSbInsertToBSSList(struct vnt_private *pDevice,
|
|||
(struct vnt_rx_mgmt *)pRxPacketContext;
|
||||
PKnownBSS pBSSList = NULL;
|
||||
unsigned int ii;
|
||||
BOOL bParsingQuiet = FALSE;
|
||||
bool bParsingQuiet = FALSE;
|
||||
|
||||
|
||||
pBSSList = (PKnownBSS)&(pMgmt->sBSSList[0]);
|
||||
|
@ -453,7 +453,7 @@ int BSSbInsertToBSSList(struct vnt_private *pDevice,
|
|||
if ((pMgmt->eAuthenMode == WMAC_AUTH_WPA2) || (pBSSList->bWPA2Valid == TRUE)) {
|
||||
|
||||
PSKeyItem pTransmitKey = NULL;
|
||||
BOOL bIs802_1x = FALSE;
|
||||
bool bIs802_1x = FALSE;
|
||||
|
||||
for (ii = 0; ii < pBSSList->wAKMSSAuthCount; ii ++) {
|
||||
if (pBSSList->abyAKMSSAuthType[ii] == WLAN_11i_AKMSS_802_1X) {
|
||||
|
@ -534,7 +534,7 @@ int BSSbUpdateToBSSList(struct vnt_private *pDevice,
|
|||
(struct vnt_rx_mgmt *)pRxPacketContext;
|
||||
int ii, jj;
|
||||
signed long ldBm, ldBmSum;
|
||||
BOOL bParsingQuiet = FALSE;
|
||||
bool bParsingQuiet = FALSE;
|
||||
|
||||
if (pBSSList == NULL)
|
||||
return FALSE;
|
||||
|
|
|
@ -79,20 +79,20 @@
|
|||
//
|
||||
|
||||
typedef struct tagSERPObject {
|
||||
BOOL bERPExist;
|
||||
bool bERPExist;
|
||||
BYTE byERP;
|
||||
} ERPObject, *PERPObject;
|
||||
|
||||
|
||||
typedef struct tagSRSNCapObject {
|
||||
BOOL bRSNCapExist;
|
||||
bool bRSNCapExist;
|
||||
WORD wRSNCap;
|
||||
} SRSNCapObject, *PSRSNCapObject;
|
||||
|
||||
// BSS info(AP)
|
||||
typedef struct tagKnownBSS {
|
||||
// BSS info
|
||||
BOOL bActive;
|
||||
bool bActive;
|
||||
BYTE abyBSSID[WLAN_BSSID_LEN];
|
||||
unsigned int uChannel;
|
||||
BYTE abySuppRates[WLAN_IEHDR_LEN + WLAN_RATES_MAXLEN + 1];
|
||||
|
@ -110,10 +110,10 @@ typedef struct tagKnownBSS {
|
|||
signed long ldBmAverage[RSSI_STAT_COUNT];
|
||||
signed long ldBmAverRange;
|
||||
//For any BSSID selection improvment
|
||||
BOOL bSelected;
|
||||
bool bSelected;
|
||||
|
||||
//++ WPA informations
|
||||
BOOL bWPAValid;
|
||||
bool bWPAValid;
|
||||
BYTE byGKType;
|
||||
BYTE abyPKType[4];
|
||||
WORD wPKCount;
|
||||
|
@ -124,7 +124,7 @@ typedef struct tagKnownBSS {
|
|||
//--
|
||||
|
||||
//++ WPA2 informations
|
||||
BOOL bWPA2Valid;
|
||||
bool bWPA2Valid;
|
||||
BYTE byCSSGK;
|
||||
WORD wCSSPKCount;
|
||||
BYTE abyCSSPK[4];
|
||||
|
@ -167,14 +167,14 @@ typedef enum tagNODE_STATE {
|
|||
// STA node info
|
||||
typedef struct tagKnownNodeDB {
|
||||
// STA info
|
||||
BOOL bActive;
|
||||
bool bActive;
|
||||
BYTE abyMACAddr[WLAN_ADDR_LEN];
|
||||
BYTE abyCurrSuppRates[WLAN_IEHDR_LEN + WLAN_RATES_MAXLEN];
|
||||
BYTE abyCurrExtSuppRates[WLAN_IEHDR_LEN + WLAN_RATES_MAXLEN];
|
||||
WORD wTxDataRate;
|
||||
BOOL bShortPreamble;
|
||||
BOOL bERPExist;
|
||||
BOOL bShortSlotTime;
|
||||
bool bShortPreamble;
|
||||
bool bERPExist;
|
||||
bool bShortSlotTime;
|
||||
unsigned int uInActiveCount;
|
||||
WORD wMaxBasicRate; //Get from byTopOFDMBasicRate or byTopCCKBasicRate which depends on packetTyp.
|
||||
WORD wMaxSuppRate; //Records the highest supported rate getting from SuppRates IE and ExtSuppRates IE in Beacon.
|
||||
|
@ -188,15 +188,15 @@ typedef struct tagKnownNodeDB {
|
|||
WORD wListenInterval;
|
||||
WORD wAID;
|
||||
NODE_STATE eNodeState;
|
||||
BOOL bPSEnable;
|
||||
BOOL bRxPSPoll;
|
||||
bool bPSEnable;
|
||||
bool bRxPSPoll;
|
||||
BYTE byAuthSequence;
|
||||
unsigned long ulLastRxJiffer;
|
||||
BYTE bySuppRate;
|
||||
DWORD dwFlags;
|
||||
WORD wEnQueueCnt;
|
||||
|
||||
BOOL bOnFly;
|
||||
bool bOnFly;
|
||||
unsigned long long KeyRSC;
|
||||
BYTE byKeyIndex;
|
||||
DWORD dwKeyIndex;
|
||||
|
@ -207,7 +207,7 @@ typedef struct tagKnownNodeDB {
|
|||
BYTE abyWepKey[WLAN_WEPMAX_KEYLEN];
|
||||
//
|
||||
// Auto rate fallback vars
|
||||
BOOL bIsInFallback;
|
||||
bool bIsInFallback;
|
||||
unsigned int uAverageRSSI;
|
||||
unsigned int uRateRecoveryTimeout;
|
||||
unsigned int uRatePollTimeout;
|
||||
|
|
|
@ -501,7 +501,7 @@ void vUpdateIFS(struct vnt_private *pDevice)
|
|||
}
|
||||
else {// PK_TYPE_11GA & PK_TYPE_11GB
|
||||
BYTE byRate = 0;
|
||||
BOOL bOFDMRate = FALSE;
|
||||
bool bOFDMRate = FALSE;
|
||||
unsigned int ii = 0;
|
||||
PWLAN_IE_SUPP_RATES pItemRates = NULL;
|
||||
|
||||
|
@ -726,7 +726,7 @@ void CARDvAdjustTSF(struct vnt_private *pDevice, u8 byRxRate,
|
|||
* Return Value: TRUE if success; otherwise FALSE
|
||||
*
|
||||
*/
|
||||
int CARDbGetCurrentTSF(struct vnt_private *pDevice, u64 *pqwCurrTSF)
|
||||
bool CARDbGetCurrentTSF(struct vnt_private *pDevice, u64 *pqwCurrTSF)
|
||||
{
|
||||
|
||||
*pqwCurrTSF = pDevice->qwCurrTSF;
|
||||
|
@ -746,7 +746,7 @@ int CARDbGetCurrentTSF(struct vnt_private *pDevice, u64 *pqwCurrTSF)
|
|||
* Return Value: TRUE if success; otherwise FALSE
|
||||
*
|
||||
*/
|
||||
int CARDbClearCurrentTSF(struct vnt_private *pDevice)
|
||||
bool CARDbClearCurrentTSF(struct vnt_private *pDevice)
|
||||
{
|
||||
|
||||
MACvRegBitsOn(pDevice, MAC_REG_TFTCTL, TFTCTL_TSFCNTRST);
|
||||
|
|
|
@ -68,8 +68,8 @@ void CARDbAddBasicRate(struct vnt_private *pDevice, u16 wRateIdx);
|
|||
int CARDbIsOFDMinBasicRate(struct vnt_private *pDevice);
|
||||
void CARDvAdjustTSF(struct vnt_private *pDevice, u8 byRxRate,
|
||||
u64 qwBSSTimestamp, u64 qwLocalTSF);
|
||||
BOOL CARDbGetCurrentTSF(struct vnt_private *pDevice, u64 *pqwCurrTSF);
|
||||
BOOL CARDbClearCurrentTSF(struct vnt_private *pDevice);
|
||||
bool CARDbGetCurrentTSF(struct vnt_private *pDevice, u64 *pqwCurrTSF);
|
||||
bool CARDbClearCurrentTSF(struct vnt_private *pDevice);
|
||||
void CARDvSetFirstNextTBTT(struct vnt_private *pDevice, WORD wBeaconInterval);
|
||||
void CARDvUpdateNextTBTT(struct vnt_private *pDevice, u64 qwTSF,
|
||||
WORD wBeaconInterval);
|
||||
|
|
|
@ -387,10 +387,10 @@ static struct
|
|||
// 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64,
|
||||
// 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 (Value 23 ~ 56)
|
||||
************************************************************************/
|
||||
BOOL
|
||||
bool
|
||||
ChannelValid(unsigned int CountryCode, unsigned int ChannelIndex)
|
||||
{
|
||||
BOOL bValid;
|
||||
bool bValid;
|
||||
|
||||
bValid = FALSE;
|
||||
/*
|
||||
|
@ -422,7 +422,7 @@ exit:
|
|||
* 0x0000000000000003 means channel 1,2 are supported
|
||||
* 0x000000000000000F means channel 1,2,..15 are supported
|
||||
************************************************************************/
|
||||
BOOL
|
||||
bool
|
||||
CHvChannelGetList (
|
||||
unsigned int uCountryCodeIdx,
|
||||
PBYTE pbyChannelTable
|
||||
|
|
|
@ -40,17 +40,17 @@
|
|||
typedef struct tagSChannelTblElement {
|
||||
BYTE byChannelNumber;
|
||||
unsigned int uFrequency;
|
||||
BOOL bValid;
|
||||
bool bValid;
|
||||
} SChannelTblElement, *PSChannelTblElement;
|
||||
|
||||
/*--------------------- Export Variables --------------------------*/
|
||||
|
||||
/*--------------------- Export Functions --------------------------*/
|
||||
|
||||
BOOL ChannelValid(unsigned int CountryCode, unsigned int ChannelNum);
|
||||
bool ChannelValid(unsigned int CountryCode, unsigned int ChannelNum);
|
||||
void CHvInitChannelTable(struct vnt_private *pDevice);
|
||||
BYTE CHbyGetChannelMapping(BYTE byChannelNumber);
|
||||
|
||||
BOOL CHvChannelGetList(unsigned int uCountryCodeIdx, PBYTE pbyChannelTable);
|
||||
bool CHvChannelGetList(unsigned int uCountryCodeIdx, PBYTE pbyChannelTable);
|
||||
|
||||
#endif /* _CHANNEL_H_ */
|
||||
|
|
|
@ -193,7 +193,7 @@ typedef struct _USB_SEND_CONTEXT {
|
|||
CONTEXT_TYPE Type;
|
||||
SEthernetHeader sEthHeader;
|
||||
void *Next;
|
||||
BOOL bBoolInUse;
|
||||
bool bBoolInUse;
|
||||
unsigned char Data[MAX_TOTAL_SIZE_WITH_ALL_HEADERS];
|
||||
} USB_SEND_CONTEXT, *PUSB_SEND_CONTEXT;
|
||||
|
||||
|
@ -214,7 +214,7 @@ typedef struct {
|
|||
unsigned int uDataLen;
|
||||
PBYTE pDataBuf;
|
||||
/* struct urb *pUrb; */
|
||||
BOOL bInUse;
|
||||
bool bInUse;
|
||||
} INT_BUFFER, *PINT_BUFFER;
|
||||
|
||||
/* 0:11A 1:11B 2:11G */
|
||||
|
@ -308,7 +308,7 @@ typedef struct tagSPMKIDCandidateEvent {
|
|||
#define MAX_QUIET_COUNT 8
|
||||
|
||||
typedef struct tagSQuietControl {
|
||||
BOOL bEnable;
|
||||
bool bEnable;
|
||||
DWORD dwStartTime;
|
||||
BYTE byPeriod;
|
||||
WORD wDuration;
|
||||
|
@ -342,7 +342,7 @@ typedef struct tagSDeFragControlBlock
|
|||
struct sk_buff* skb;
|
||||
PBYTE pbyRxBuffer;
|
||||
unsigned int cbFrameLength;
|
||||
BOOL bInUse;
|
||||
bool bInUse;
|
||||
} SDeFragControlBlock, *PSDeFragControlBlock;
|
||||
|
||||
/* flags for options */
|
||||
|
|
|
@ -430,7 +430,7 @@ int RXbBulkInProcessData(struct vnt_private *pDevice, PRCB pRCB,
|
|||
|
||||
|
||||
if (IS_FC_WEP(pbyFrame)) {
|
||||
BOOL bRxDecryOK = FALSE;
|
||||
bool bRxDecryOK = FALSE;
|
||||
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"rx WEP pkt\n");
|
||||
bIsWEP = TRUE;
|
||||
|
|
|
@ -62,7 +62,7 @@ int FIRMWAREbDownload(struct vnt_private *pDevice)
|
|||
const struct firmware *fw;
|
||||
int NdisStatus;
|
||||
void *pBuffer = NULL;
|
||||
BOOL result = FALSE;
|
||||
bool result = FALSE;
|
||||
u16 wLength;
|
||||
int ii, rc;
|
||||
|
||||
|
|
|
@ -122,8 +122,8 @@ typedef struct tagSCmdBSSJoin {
|
|||
u16 wBBPType;
|
||||
u8 ssid[SSID_MAXLEN + 2];
|
||||
u32 uChannel;
|
||||
BOOL bPSEnable;
|
||||
BOOL bShareKeyAuth;
|
||||
bool bPSEnable;
|
||||
bool bShareKeyAuth;
|
||||
|
||||
} __packed SCmdBSSJoin, *PSCmdBSSJoin;
|
||||
|
||||
|
@ -133,7 +133,7 @@ typedef struct tagSCmdBSSJoin {
|
|||
|
||||
typedef struct tagSCmdZoneTypeSet {
|
||||
|
||||
BOOL bWrite;
|
||||
bool bWrite;
|
||||
WZONETYPE ZoneType;
|
||||
|
||||
} __packed SCmdZoneTypeSet, *PSCmdZoneTypeSet;
|
||||
|
@ -143,7 +143,7 @@ typedef struct tagSWPAResult {
|
|||
u8 proto;
|
||||
u8 key_mgmt;
|
||||
u8 eap_type;
|
||||
BOOL authenticated;
|
||||
bool authenticated;
|
||||
} __packed SWPAResult, *PSWPAResult;
|
||||
|
||||
typedef struct tagSCmdStartAP {
|
||||
|
@ -153,17 +153,17 @@ typedef struct tagSCmdStartAP {
|
|||
u8 ssid[SSID_MAXLEN + 2];
|
||||
u32 uChannel;
|
||||
u32 uBeaconInt;
|
||||
BOOL bShareKeyAuth;
|
||||
bool bShareKeyAuth;
|
||||
u8 byBasicRate;
|
||||
|
||||
} __packed SCmdStartAP, *PSCmdStartAP;
|
||||
|
||||
typedef struct tagSCmdSetWEP {
|
||||
|
||||
BOOL bEnableWep;
|
||||
bool bEnableWep;
|
||||
u8 byKeyIndex;
|
||||
u8 abyWepKey[WEP_NKEYS][WEP_KEYMAXLEN];
|
||||
BOOL bWepKeyAvailable[WEP_NKEYS];
|
||||
bool bWepKeyAvailable[WEP_NKEYS];
|
||||
u32 auWepKeyLength[WEP_NKEYS];
|
||||
|
||||
} __packed SCmdSetWEP, *PSCmdSetWEP;
|
||||
|
@ -176,7 +176,7 @@ typedef struct tagSBSSIDItem {
|
|||
u16 wBeaconInterval;
|
||||
u16 wCapInfo;
|
||||
u8 byNetType;
|
||||
BOOL bWEPOn;
|
||||
bool bWEPOn;
|
||||
u32 uRSSI;
|
||||
|
||||
} __packed SBSSIDItem;
|
||||
|
@ -197,12 +197,12 @@ typedef struct tagSNodeItem {
|
|||
u16 wInActiveCount;
|
||||
u16 wEnQueueCnt;
|
||||
u16 wFlags;
|
||||
BOOL bPWBitOn;
|
||||
bool bPWBitOn;
|
||||
u8 byKeyIndex;
|
||||
u16 wWepKeyLength;
|
||||
u8 abyWepKey[WEP_KEYMAXLEN];
|
||||
// Auto rate fallback vars
|
||||
BOOL bIsInFallback;
|
||||
bool bIsInFallback;
|
||||
u32 uTxFailures;
|
||||
u32 uTxAttempts;
|
||||
u16 wFailureRatio;
|
||||
|
@ -220,7 +220,7 @@ typedef struct tagSNodeList {
|
|||
|
||||
typedef struct tagSCmdLinkStatus {
|
||||
|
||||
BOOL bLink;
|
||||
bool bLink;
|
||||
u16 wBSSType;
|
||||
u8 byState;
|
||||
u8 abyBSSID[BSSID_LEN];
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
|
||||
typedef struct tagSKeyItem
|
||||
{
|
||||
BOOL bKeyValid;
|
||||
bool bKeyValid;
|
||||
u32 uKeyLength;
|
||||
BYTE abyKey[MAX_KEY_LEN];
|
||||
u64 KeyRSC;
|
||||
|
@ -76,9 +76,9 @@ typedef struct tagSKeyTable
|
|||
SKeyItem PairwiseKey;
|
||||
SKeyItem GroupKey[MAX_GROUP_KEY]; //64*5 = 320, 320+8=328
|
||||
DWORD dwGTKeyIndex; // GroupTransmitKey Index
|
||||
BOOL bInUse;
|
||||
bool bInUse;
|
||||
WORD wKeyCtl;
|
||||
BOOL bSoftWEP;
|
||||
bool bSoftWEP;
|
||||
BYTE byReserved1[6];
|
||||
} SKeyTable, *PSKeyTable; //352
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
|
|||
|
||||
static int device_init_registers(struct vnt_private *pDevice,
|
||||
DEVICE_INIT_TYPE InitType);
|
||||
static BOOL device_init_defrag_cb(struct vnt_private *pDevice);
|
||||
static bool device_init_defrag_cb(struct vnt_private *pDevice);
|
||||
static void device_init_diversity_timer(struct vnt_private *pDevice);
|
||||
static int device_dma0_tx_80211(struct sk_buff *skb, struct net_device *dev);
|
||||
|
||||
|
@ -237,7 +237,7 @@ static void device_free_tx_bufs(struct vnt_private *pDevice);
|
|||
static void device_free_rx_bufs(struct vnt_private *pDevice);
|
||||
static void device_free_int_bufs(struct vnt_private *pDevice);
|
||||
static void device_free_frag_bufs(struct vnt_private *pDevice);
|
||||
static BOOL device_alloc_bufs(struct vnt_private *pDevice);
|
||||
static bool device_alloc_bufs(struct vnt_private *pDevice);
|
||||
|
||||
static int Read_config_file(struct vnt_private *pDevice);
|
||||
static unsigned char *Config_FileOperation(struct vnt_private *pDevice);
|
||||
|
@ -814,7 +814,7 @@ static void device_free_int_bufs(struct vnt_private *pDevice)
|
|||
}
|
||||
|
||||
|
||||
static BOOL device_alloc_bufs(struct vnt_private *pDevice)
|
||||
static bool device_alloc_bufs(struct vnt_private *pDevice)
|
||||
{
|
||||
|
||||
PUSB_SEND_CONTEXT pTxContext;
|
||||
|
@ -914,7 +914,7 @@ free_tx:
|
|||
|
||||
|
||||
|
||||
static BOOL device_init_defrag_cb(struct vnt_private *pDevice)
|
||||
static bool device_init_defrag_cb(struct vnt_private *pDevice)
|
||||
{
|
||||
int i;
|
||||
PSDeFragControlBlock pDeF;
|
||||
|
|
|
@ -2482,7 +2482,7 @@ int nsDMA_tx_packet(struct vnt_private *pDevice,
|
|||
u8 *pbyBSSID;
|
||||
int bNodeExist = FALSE;
|
||||
PUSB_SEND_CONTEXT pContext;
|
||||
BOOL fConvertedPacket;
|
||||
bool fConvertedPacket;
|
||||
PTX_BUFFER pTX_Buffer;
|
||||
u32 status;
|
||||
u16 wKeepRate = pDevice->wCurrentRate;
|
||||
|
|
|
@ -96,7 +96,7 @@ BYTE ETHbyGetHashIndexByCrc32(PBYTE pbyMultiAddr)
|
|||
* Return Value: TRUE if ok; FALSE if error.
|
||||
*
|
||||
*/
|
||||
BOOL ETHbIsBufferCrc32Ok(PBYTE pbyBuffer, unsigned int cbFrameLength)
|
||||
bool ETHbIsBufferCrc32Ok(PBYTE pbyBuffer, unsigned int cbFrameLength)
|
||||
{
|
||||
DWORD dwCRC;
|
||||
|
||||
|
|
|
@ -161,6 +161,6 @@ S802_11Header, *PS802_11Header;
|
|||
|
||||
BYTE ETHbyGetHashIndexByCrc32(PBYTE pbyMultiAddr);
|
||||
//BYTE ETHbyGetHashIndexByCrc(PBYTE pbyMultiAddr);
|
||||
BOOL ETHbIsBufferCrc32Ok(PBYTE pbyBuffer, unsigned int cbFrameLength);
|
||||
bool ETHbIsBufferCrc32Ok(PBYTE pbyBuffer, unsigned int cbFrameLength);
|
||||
|
||||
#endif /* __TETHER_H__ */
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
|
||||
/******* Common definitions and typedefs ***********************************/
|
||||
|
||||
typedef int BOOL;
|
||||
|
||||
#if !defined(TRUE)
|
||||
#define TRUE 1
|
||||
#endif
|
||||
|
|
|
@ -74,9 +74,9 @@ typedef enum tagCMD_STATUS {
|
|||
typedef struct tagCMD_ITEM {
|
||||
CMD_CODE eCmd;
|
||||
BYTE abyCmdDesireSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
|
||||
BOOL bNeedRadioOFF;
|
||||
BOOL bRadioCmd;
|
||||
BOOL bForceSCAN;
|
||||
bool bNeedRadioOFF;
|
||||
bool bRadioCmd;
|
||||
bool bForceSCAN;
|
||||
WORD wDeAuthenReason;
|
||||
} CMD_ITEM, *PCMD_ITEM;
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
BOOL WCTLbIsDuplicate (PSCache pCache, PS802_11Header pMACHeader)
|
||||
bool WCTLbIsDuplicate (PSCache pCache, PS802_11Header pMACHeader)
|
||||
{
|
||||
unsigned int uIndex;
|
||||
unsigned int ii;
|
||||
|
@ -182,8 +182,8 @@ unsigned int WCTLuInsertDFCB(struct vnt_private *pDevice,
|
|||
* Return Value: TRUE if it is valid fragment packet and we have resource to defragment; otherwise FALSE
|
||||
*
|
||||
*/
|
||||
int WCTLbHandleFragment(struct vnt_private *pDevice, PS802_11Header pMACHeader,
|
||||
unsigned int cbFrameLength, int bWEP, int bExtIV)
|
||||
bool WCTLbHandleFragment(struct vnt_private *pDevice, PS802_11Header pMACHeader,
|
||||
unsigned int cbFrameLength, bool bWEP, bool bExtIV)
|
||||
{
|
||||
unsigned int uHeaderSize;
|
||||
|
||||
|
|
|
@ -96,9 +96,9 @@
|
|||
|
||||
/*--------------------- Export Functions --------------------------*/
|
||||
|
||||
BOOL WCTLbIsDuplicate(PSCache pCache, PS802_11Header pMACHeader);
|
||||
int WCTLbHandleFragment(struct vnt_private *, PS802_11Header pMACHeader,
|
||||
unsigned int cbFrameLength, BOOL bWEP, BOOL bExtIV);
|
||||
bool WCTLbIsDuplicate(PSCache pCache, PS802_11Header pMACHeader);
|
||||
bool WCTLbHandleFragment(struct vnt_private *, PS802_11Header pMACHeader,
|
||||
unsigned int cbFrameLength, bool bWEP, bool bExtIV);
|
||||
unsigned int WCTLuSearchDFCB(struct vnt_private *, PS802_11Header pMACHeader);
|
||||
unsigned int WCTLuInsertDFCB(struct vnt_private *, PS802_11Header pMACHeader);
|
||||
|
||||
|
|
|
@ -187,7 +187,7 @@ static void s_vMgrSynchBSS(struct vnt_private *, u32 uBSSMode,
|
|||
PKnownBSS pCurr, PCMD_STATUS pStatus);
|
||||
|
||||
|
||||
static BOOL
|
||||
static bool
|
||||
s_bCipherMatch (
|
||||
PKnownBSS pBSSNode,
|
||||
NDIS_802_11_ENCRYPTION_STATUS EncStatus,
|
||||
|
@ -1756,7 +1756,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE)
|
|||
}
|
||||
// Sync Short Slot Time
|
||||
if (WLAN_GET_CAP_INFO_SHORTSLOTTIME(pBSSList->wCapInfo) != pDevice->bShortSlotTime) {
|
||||
BOOL bShortSlotTime;
|
||||
bool bShortSlotTime;
|
||||
|
||||
bShortSlotTime = WLAN_GET_CAP_INFO_SHORTSLOTTIME(pBSSList->wCapInfo);
|
||||
//DBG_PRN_WLAN05(("Set Short Slot Time: %d\n", pDevice->bShortSlotTime));
|
||||
|
@ -2443,7 +2443,7 @@ void vMgrJoinBSSBegin(struct vnt_private *pDevice, PCMD_STATUS pStatus)
|
|||
// Add current BSS to Candidate list
|
||||
// This should only work for WPA2 BSS, and WPA2 BSS check must be done before.
|
||||
if (pMgmt->eAuthenMode == WMAC_AUTH_WPA2) {
|
||||
BOOL bResult = bAdd_PMKID_Candidate((void *) pDevice,
|
||||
bool bResult = bAdd_PMKID_Candidate((void *) pDevice,
|
||||
pMgmt->abyCurrBSSID,
|
||||
&pCurr->sRSNCapObj);
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"bAdd_PMKID_Candidate: 1(%d)\n", bResult);
|
||||
|
@ -4364,7 +4364,7 @@ void vFlush_PMKID_Candidate(struct vnt_private *pDevice)
|
|||
return;
|
||||
}
|
||||
|
||||
static BOOL
|
||||
static bool
|
||||
s_bCipherMatch (
|
||||
PKnownBSS pBSSNode,
|
||||
NDIS_802_11_ENCRYPTION_STATUS EncStatus,
|
||||
|
|
|
@ -239,7 +239,7 @@ WPA_ParseRSN(
|
|||
* Return Value: none.
|
||||
*
|
||||
-*/
|
||||
BOOL
|
||||
bool
|
||||
WPA_SearchRSN(
|
||||
BYTE byCmd,
|
||||
BYTE byEncrypt,
|
||||
|
@ -299,7 +299,7 @@ WPA_SearchRSN(
|
|||
* Return Value: none.
|
||||
*
|
||||
-*/
|
||||
BOOL
|
||||
bool
|
||||
WPAb_Is_RSN(
|
||||
PWLAN_IE_RSN_EXT pRSN
|
||||
)
|
||||
|
|
|
@ -69,14 +69,14 @@ WPA_ParseRSN(
|
|||
PWLAN_IE_RSN_EXT pRSN
|
||||
);
|
||||
|
||||
BOOL
|
||||
bool
|
||||
WPA_SearchRSN(
|
||||
BYTE byCmd,
|
||||
BYTE byEncrypt,
|
||||
PKnownBSS pBSSList
|
||||
);
|
||||
|
||||
BOOL
|
||||
bool
|
||||
WPAb_Is_RSN(
|
||||
PWLAN_IE_RSN_EXT pRSN
|
||||
);
|
||||
|
|
|
@ -115,7 +115,7 @@ WPA2vParseRSN (
|
|||
int i, j;
|
||||
WORD m = 0, n = 0;
|
||||
PBYTE pbyOUI;
|
||||
BOOL bUseGK = FALSE;
|
||||
bool bUseGK = FALSE;
|
||||
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"WPA2_ParseRSN: [%d]\n", pRSN->len);
|
||||
|
||||
|
|
Loading…
Reference in New Issue