diff options
Diffstat (limited to 'drivers/staging/vt6655/ioctl.c')
-rw-r--r-- | drivers/staging/vt6655/ioctl.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/drivers/staging/vt6655/ioctl.c b/drivers/staging/vt6655/ioctl.c index 94c981b7cff..e0812af2710 100644 --- a/drivers/staging/vt6655/ioctl.c +++ b/drivers/staging/vt6655/ioctl.c @@ -99,8 +99,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { memcpy(abyScanSSID, pItemSSID, pItemSSID->len + WLAN_IEHDR_LEN); } - if (pDevice->bMACSuspend == TRUE) { - if (pDevice->bRadioOff == TRUE) + if (pDevice->bMACSuspend == true) { + if (pDevice->bRadioOff == true) CARDbRadioPowerOn(pDevice); vMgrTimerInit(pDevice); MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); @@ -130,7 +130,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { break; }; - if(sZoneTypeCmd.bWrite==TRUE) { + if(sZoneTypeCmd.bWrite==true) { //////write zonetype if(sZoneTypeCmd.ZoneType == ZoneType_USA) { //set to USA @@ -174,8 +174,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { case WLAN_CMD_BSS_JOIN: - if (pDevice->bMACSuspend == TRUE) { - if (pDevice->bRadioOff == TRUE) + if (pDevice->bMACSuspend == true) { + if (pDevice->bRadioOff == true) CARDbRadioPowerOn(pDevice); vMgrTimerInit(pDevice); MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); @@ -199,7 +199,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { pMgmt->eConfigMode = WMAC_CONFIG_ESS_STA; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "ioct set to STA mode\n"); } - if (sJoinCmd.bPSEnable == TRUE) { + if (sJoinCmd.bPSEnable == true) { pDevice->ePSMode = WMAC_POWER_FAST; // pDevice->ePSMode = WMAC_POWER_MAX; pMgmt->wListenInterval = 2; @@ -211,8 +211,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Power Saving Off \n"); } - if (sJoinCmd.bShareKeyAuth == TRUE){ - pMgmt->bShareKeyAlgorithm = TRUE; + if (sJoinCmd.bShareKeyAuth == true){ + pMgmt->bShareKeyAlgorithm = true; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Share Key \n"); } else { @@ -235,7 +235,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { result = -EFAULT; break; }; - if (sWEPCmd.bEnableWep != TRUE) { + if (sWEPCmd.bEnableWep != true) { pDevice->bEncryptionEnable = FALSE; pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; MACvDisableDefaultKey(pDevice->PortOffset); @@ -264,8 +264,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { } } pDevice->byKeyIndex = sWEPCmd.byKeyIndex; - pDevice->bTransmitKey = TRUE; - pDevice->bEncryptionEnable = TRUE; + pDevice->bTransmitKey = true; + pDevice->bEncryptionEnable = true; pDevice->eEncryptionStatus = Ndis802_11Encryption1Enabled; break; @@ -286,8 +286,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { sLinkStatus.byState = ADHOC_STARTED; sLinkStatus.uChannel = pMgmt->uCurrChannel; - if (pDevice->bLinkPass == TRUE) { - sLinkStatus.bLink = TRUE; + if (pDevice->bLinkPass == true) { + sLinkStatus.bLink = true; pItemSSID = (PWLAN_IE_SSID)pMgmt->abyCurrSSID; memcpy(sLinkStatus.abySSID, pItemSSID->abySSID, pItemSSID->len); memcpy(sLinkStatus.abyBSSID, pMgmt->abyCurrBSSID, WLAN_BSSID_LEN); @@ -353,7 +353,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { pList->sBSSIDList[ii].byNetType = ADHOC; } if (WLAN_GET_CAP_INFO_PRIVACY(pBSS->wCapInfo)) { - pList->sBSSIDList[ii].bWEPOn = TRUE; + pList->sBSSIDList[ii].bWEPOn = true; } else { pList->sBSSIDList[ii].bWEPOn = FALSE; @@ -400,7 +400,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { del_timer(&pDevice->sTimerCommand); del_timer(&pMgmt->sTimerSecondCallback); pDevice->bCmdRunning = FALSE; - pDevice->bMACSuspend = TRUE; + pDevice->bMACSuspend = true; MACvIntDisable(pDevice->PortOffset); spin_unlock_irq(&pDevice->lock); @@ -410,8 +410,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "WLAN_CMD_START_MAC\n"); - if (pDevice->bMACSuspend == TRUE) { - if (pDevice->bRadioOff == TRUE) + if (pDevice->bMACSuspend == true) { + if (pDevice->bRadioOff == true) CARDbRadioPowerOn(pDevice); vMgrTimerInit(pDevice); MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); @@ -458,7 +458,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { }; if (sValue.dwValue == 1) { - pDevice->bEnable8021x = TRUE; + pDevice->bEnable8021x = true; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Enable 802.1x\n"); } else { @@ -478,7 +478,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { }; if (sValue.dwValue == 1) { - pDevice->bEnableHostWEP = TRUE; + pDevice->bEnableHostWEP = true; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Enable HostWEP\n"); } else { @@ -498,7 +498,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { if (sValue.dwValue == 1) { DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "up wpadev\n"); memcpy(pDevice->wpadev->dev_addr, pDevice->dev->dev_addr, ETH_ALEN); - pDevice->bWPADEVUp = TRUE; + pDevice->bWPADEVUp = true; } else { DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "close wpadev\n"); @@ -510,7 +510,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { case WLAN_CMD_AP_START: DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "WLAN_CMD_AP_START\n"); - if (pDevice->bRadioOff == TRUE) { + if (pDevice->bRadioOff == true) { CARDbRadioPowerOn(pDevice); vMgrTimerInit(pDevice); MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); @@ -554,8 +554,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { else pMgmt->wIBSSBeaconPeriod = 100; - if (sStartAPCmd.bShareKeyAuth == TRUE){ - pMgmt->bShareKeyAlgorithm = TRUE; + if (sStartAPCmd.bShareKeyAuth == true){ + pMgmt->bShareKeyAlgorithm = true; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Share Key \n"); } else { @@ -679,7 +679,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { break; } -if(wpa_Result.authenticated==TRUE) { +if(wpa_Result.authenticated==true) { #ifdef SndEvt_ToAPI { union iwreq_data wrqu; @@ -692,7 +692,7 @@ if(wpa_Result.authenticated==TRUE) { wireless_send_event(pDevice->dev, IWEVCUSTOM, &wrqu, pItemSSID->abySSID); } #endif - pDevice->fWPA_Authened = TRUE; //is successful peer to wpa_Result.authenticated? + pDevice->fWPA_Authened = true; //is successful peer to wpa_Result.authenticated? } //printk("get private wpa_supplicant announce WPA SM\n"); @@ -700,7 +700,7 @@ if(wpa_Result.authenticated==TRUE) { //printk("wpa-->proto=%d\n",wpa_Result.proto); //printk("wpa-->key-mgmt=%d\n",wpa_Result.key_mgmt); //printk("wpa-->eap_type=%d\n",wpa_Result.eap_type); - //printk("wpa-->authenticated is %s\n",(wpa_Result.authenticated==TRUE)?"TRUE":"FALSE"); + //printk("wpa-->authenticated is %s\n",(wpa_Result.authenticated==true)?"true":"FALSE"); pReq->wResult = 0; break; @@ -728,7 +728,7 @@ vConfigWEPKey ( memset(&pDevice->abyWepKey[dwKeyIndex][0], 0, WLAN_WEPMAX_KEYLEN); memcpy(&pDevice->abyWepKey[dwKeyIndex][0], pbyKey, uKeyLength); - pDevice->bWepKeyAvailable[dwKeyIndex] = TRUE; + pDevice->bWepKeyAvailable[dwKeyIndex] = true; pDevice->auWepKeyLength[dwKeyIndex] = uKeyLength; MACvSetDefaultKeyEntry(pDevice->PortOffset, uKeyLength, dwKeyIndex, @@ -736,7 +736,7 @@ vConfigWEPKey ( if (pDevice->eEncryptionStatus < Ndis802_11EncryptionNotSupported) { for(ii=0; ii<MAX_GROUP_KEY; ii++) { - if ((pDevice->bWepKeyAvailable[ii] == TRUE) && + if ((pDevice->bWepKeyAvailable[ii] == true) && (pDevice->auWepKeyLength[ii] == WLAN_WEP232_KEYLEN)) { pDevice->uCurrentWEPMode = TX_WEP_SW232; MACvDisableDefaultKey(pDevice->PortOffset); |