Commit 789d1aef authored by Justin P. Mattock's avatar Justin P. Mattock Committed by Greg Kroah-Hartman

staging: "vt6655" Fix typos in comments.

Signed-off-by: default avatarJustin P. Mattock <justinmattock@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 736f5d0a
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
// //
// Cipher Suite Selectors defiened in 802.11i // Cipher Suite Selectors defined in 802.11i
// //
#define WLAN_11i_CSS_USE_GROUP 0 #define WLAN_11i_CSS_USE_GROUP 0
#define WLAN_11i_CSS_WEP40 1 #define WLAN_11i_CSS_WEP40 1
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
* Functions: * Functions:
* BBuGetFrameTime - Calculate data frame transmitting time * BBuGetFrameTime - Calculate data frame transmitting time
* BBvCaculateParameter - Caculate PhyLength, PhyService and Phy Signal parameter for baseband Tx * BBvCaculateParameter - Caculate PhyLength, PhyService and Phy Signal parameter for baseband Tx
* BBbReadEmbeded - Embeded read baseband register via MAC * BBbReadEmbeded - Embedded read baseband register via MAC
* BBbWriteEmbeded - Embeded write baseband register via MAC * BBbWriteEmbeded - Embedded write baseband register via MAC
* BBbIsRegBitsOn - Test if baseband register bits on * BBbIsRegBitsOn - Test if baseband register bits on
* BBbIsRegBitsOff - Test if baseband register bits off * BBbIsRegBitsOff - Test if baseband register bits off
* BBbVT3253Init - VIA VT3253 baseband chip init code * BBbVT3253Init - VIA VT3253 baseband chip init code
...@@ -2001,7 +2001,7 @@ BBvCaculateParameter ( ...@@ -2001,7 +2001,7 @@ BBvCaculateParameter (
} }
/* /*
* Description: Read a byte from BASEBAND, by embeded programming * Description: Read a byte from BASEBAND, by embedded programming
* *
* Parameters: * Parameters:
* In: * In:
...@@ -2043,7 +2043,7 @@ bool BBbReadEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned ch ...@@ -2043,7 +2043,7 @@ bool BBbReadEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned ch
/* /*
* Description: Write a Byte to BASEBAND, by embeded programming * Description: Write a Byte to BASEBAND, by embedded programming
* *
* Parameters: * Parameters:
* In: * In:
......
...@@ -784,8 +784,8 @@ BSSDBbIsSTAInNodeDB(void *pMgmtObject, unsigned char *abyDstAddr, ...@@ -784,8 +784,8 @@ BSSDBbIsSTAInNodeDB(void *pMgmtObject, unsigned char *abyDstAddr,
/*+ /*+
* *
* Routine Description: * Routine Description:
* Find an empty node and allocated; if no empty found, * Find an empty node and allocat it; if there is no empty node,
* instand used of most inactive one. * then use the most inactive one.
* *
* Return Value: * Return Value:
* None * None
......
...@@ -1354,7 +1354,8 @@ CARDbSetQuiet ( ...@@ -1354,7 +1354,8 @@ CARDbSetQuiet (
/* /*
* *
* Description: * Description:
* Do Quiet, It will called by either ISR (after start) or VNTWIFI (before start) so do not need SPINLOCK * Do Quiet, It will be called by either ISR(after start)
* or VNTWIFI(before start) so we do not need a SPINLOCK
* *
* Parameters: * Parameters:
* In: * In:
......
...@@ -126,7 +126,7 @@ DATARATEbyGetRateIdx ( ...@@ -126,7 +126,7 @@ DATARATEbyGetRateIdx (
/*+ /*+
* *
* Routine Description: * Routine Description:
* Rate fallback Algorithm Implementaion * Rate fallback Algorithm Implementation
* *
* Parameters: * Parameters:
* In: * In:
......
...@@ -327,7 +327,7 @@ typedef struct tagSDeFragControlBlock ...@@ -327,7 +327,7 @@ typedef struct tagSDeFragControlBlock
//flags for driver status //flags for driver status
#define DEVICE_FLAGS_OPENED 0x00010000UL #define DEVICE_FLAGS_OPENED 0x00010000UL
#define DEVICE_FLAGS_WOL_ENABLED 0x00080000UL #define DEVICE_FLAGS_WOL_ENABLED 0x00080000UL
//flags for capbilities //flags for capabilities
#define DEVICE_FLAGS_TX_ALIGN 0x01000000UL #define DEVICE_FLAGS_TX_ALIGN 0x01000000UL
#define DEVICE_FLAGS_HAVE_CAM 0x02000000UL #define DEVICE_FLAGS_HAVE_CAM 0x02000000UL
#define DEVICE_FLAGS_FLOW_CTRL 0x04000000UL #define DEVICE_FLAGS_FLOW_CTRL 0x04000000UL
...@@ -567,7 +567,7 @@ typedef struct __device_info { ...@@ -567,7 +567,7 @@ typedef struct __device_info {
bool bPrvActive4RadioOFF; bool bPrvActive4RadioOFF;
bool bGPIOBlockRead; bool bGPIOBlockRead;
// Beacon releated // Beacon related
unsigned short wSeqCounter; unsigned short wSeqCounter;
unsigned short wBCNBufLen; unsigned short wBCNBufLen;
bool bBeaconBufReady; bool bBeaconBufReady;
......
...@@ -518,7 +518,7 @@ static void s_vCompleteCurrentMeasure (PSDevice pDevice, unsigned char byResult) ...@@ -518,7 +518,7 @@ static void s_vCompleteCurrentMeasure (PSDevice pDevice, unsigned char byResult)
// //
// Initialiation of MAC & BBP registers // Initialisation of MAC & BBP registers
// //
static void device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType) static void device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType)
...@@ -1064,7 +1064,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent) ...@@ -1064,7 +1064,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
//Mask out the options cannot be set to the chip //Mask out the options cannot be set to the chip
pDevice->sOpts.flags &= pChip_info->flags; pDevice->sOpts.flags &= pChip_info->flags;
//Enable the chip specified capbilities //Enable the chip specified capabilities
pDevice->flags = pDevice->sOpts.flags | (pChip_info->flags & 0xFF000000UL); pDevice->flags = pDevice->sOpts.flags | (pChip_info->flags & 0xFF000000UL);
pDevice->tx_80211 = device_dma0_tx_80211; pDevice->tx_80211 = device_dma0_tx_80211;
pDevice->sMgmtObj.pAdapter = (void *)pDevice; pDevice->sMgmtObj.pAdapter = (void *)pDevice;
...@@ -1678,7 +1678,7 @@ static int device_tx_srv(PSDevice pDevice, unsigned int uIdx) { ...@@ -1678,7 +1678,7 @@ static int device_tx_srv(PSDevice pDevice, unsigned int uIdx) {
uFrameSize = pTD->pTDInfo->dwReqCount - uFIFOHeaderSize; uFrameSize = pTD->pTDInfo->dwReqCount - uFIFOHeaderSize;
pTxBufHead = (PSTxBufHead) (pTD->pTDInfo->buf); pTxBufHead = (PSTxBufHead) (pTD->pTDInfo->buf);
// Update the statistics based on the Transmit status // Update the statistics based on the Transmit status
// now, we DO'NT check TSR0_CDH // now, we DONT check TSR0_CDH
STAvUpdateTDStatCounter(&pDevice->scStatistic, STAvUpdateTDStatCounter(&pDevice->scStatistic,
byTsr0, byTsr1, byTsr0, byTsr1,
......
...@@ -718,7 +718,7 @@ device_receive_frame ( ...@@ -718,7 +718,7 @@ device_receive_frame (
if ((*pbyRSSI != 0) && if ((*pbyRSSI != 0) &&
(pMgmt->pCurrBSS!=NULL)) { (pMgmt->pCurrBSS!=NULL)) {
RFvRSSITodBm(pDevice, *pbyRSSI, &ldBm); RFvRSSITodBm(pDevice, *pbyRSSI, &ldBm);
// Moniter if RSSI is too strong. // Monitor if RSSI is too strong.
pMgmt->pCurrBSS->byRSSIStatCnt++; pMgmt->pCurrBSS->byRSSIStatCnt++;
pMgmt->pCurrBSS->byRSSIStatCnt %= RSSI_STAT_COUNT; pMgmt->pCurrBSS->byRSSIStatCnt %= RSSI_STAT_COUNT;
pMgmt->pCurrBSS->ldBmAverage[pMgmt->pCurrBSS->byRSSIStatCnt] = ldBm; pMgmt->pCurrBSS->ldBmAverage[pMgmt->pCurrBSS->byRSSIStatCnt] = ldBm;
......
...@@ -111,7 +111,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) ...@@ -111,7 +111,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
break; break;
case WLAN_CMD_ZONETYPE_SET: case WLAN_CMD_ZONETYPE_SET:
/* mike add :cann't support. */ /* mike add :can't support. */
result = -EOPNOTSUPP; result = -EOPNOTSUPP;
break; break;
......
...@@ -358,7 +358,7 @@ int iwctl_giwscan(struct net_device *dev, ...@@ -358,7 +358,7 @@ int iwctl_giwscan(struct net_device *dev,
/* /*
* Wireless Handler : set frequence or channel * Wireless Handler : set frequency or channel
*/ */
int iwctl_siwfreq(struct net_device *dev, int iwctl_siwfreq(struct net_device *dev,
...@@ -404,7 +404,7 @@ int iwctl_siwfreq(struct net_device *dev, ...@@ -404,7 +404,7 @@ int iwctl_siwfreq(struct net_device *dev,
} }
/* /*
* Wireless Handler : get frequence or channel * Wireless Handler : get frequency or channel
*/ */
int iwctl_giwfreq(struct net_device *dev, int iwctl_giwfreq(struct net_device *dev,
...@@ -1346,7 +1346,7 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){ ...@@ -1346,7 +1346,7 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){
}else if(index>0){ }else if(index>0){
//when the length is 0 the request only changes the default transmit key index //when the length is 0 the request only changes the default transmit key index
//check the new key has a non zero lenget //check the new key if it has a non zero length
if(pDevice->bEncryptionEnable==false) if(pDevice->bEncryptionEnable==false)
{ {
rc = -EINVAL; rc = -EINVAL;
......
...@@ -372,7 +372,7 @@ bool KeybRemoveKey ( ...@@ -372,7 +372,7 @@ bool KeybRemoveKey (
int i; int i;
if (is_broadcast_ether_addr(pbyBSSID)) { if (is_broadcast_ether_addr(pbyBSSID)) {
// dealte all key // delete all keys
if ((dwKeyIndex & PAIRWISE_KEY) != 0) { if ((dwKeyIndex & PAIRWISE_KEY) != 0) {
for (i=0;i<MAX_KEY_TABLE;i++) { for (i=0;i<MAX_KEY_TABLE;i++) {
pTable->KeyTable[i].PairwiseKey.bKeyValid = false; pTable->KeyTable[i].PairwiseKey.bKeyValid = false;
......
...@@ -56,9 +56,9 @@ ...@@ -56,9 +56,9 @@
* MACbSafeStop - Stop MAC function * MACbSafeStop - Stop MAC function
* MACbShutdown - Shut down MAC * MACbShutdown - Shut down MAC
* MACvInitialize - Initialize MAC * MACvInitialize - Initialize MAC
* MACvSetCurrRxDescAddr - Set Rx Descriptos Address * MACvSetCurrRxDescAddr - Set Rx Descriptors Address
* MACvSetCurrTx0DescAddr - Set Tx0 Descriptos Address * MACvSetCurrTx0DescAddr - Set Tx0 Descriptors Address
* MACvSetCurrTx1DescAddr - Set Tx1 Descriptos Address * MACvSetCurrTx1DescAddr - Set Tx1 Descriptors Address
* MACvTimer0MicroSDelay - Micro Second Delay Loop by MAC * MACvTimer0MicroSDelay - Micro Second Delay Loop by MAC
* *
* Revision History: * Revision History:
...@@ -1498,7 +1498,7 @@ int ii; ...@@ -1498,7 +1498,7 @@ int ii;
wOffset += (uKeyIdx * 4); wOffset += (uKeyIdx * 4);
for (ii=0;ii<4;ii++) { for (ii=0;ii<4;ii++) {
// alway push 128 bits // always push 128 bits
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"3.(%d) wOffset: %d, Data: %lX\n", ii, wOffset+ii, *pdwKey); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"3.(%d) wOffset: %d, Data: %lX\n", ii, wOffset+ii, *pdwKey);
VNSvOutPortW(dwIoBase + MAC_REG_MISCFFNDEX, wOffset+ii); VNSvOutPortW(dwIoBase + MAC_REG_MISCFFNDEX, wOffset+ii);
VNSvOutPortD(dwIoBase + MAC_REG_MISCFFDATA, *pdwKey++); VNSvOutPortD(dwIoBase + MAC_REG_MISCFFDATA, *pdwKey++);
...@@ -1567,7 +1567,7 @@ int ii; ...@@ -1567,7 +1567,7 @@ int ii;
wOffset++; wOffset++;
wOffset++; wOffset++;
wOffset += (uKeyIdx * 4); wOffset += (uKeyIdx * 4);
// alway push 128 bits // always push 128 bits
for (ii=0; ii<3; ii++) { for (ii=0; ii<3; ii++) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"(%d) wOffset: %d, Data: %lX\n", ii, wOffset+ii, *pdwKey); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"(%d) wOffset: %d, Data: %lX\n", ii, wOffset+ii, *pdwKey);
VNSvOutPortW(dwIoBase + MAC_REG_MISCFFNDEX, wOffset+ii); VNSvOutPortW(dwIoBase + MAC_REG_MISCFFNDEX, wOffset+ii);
...@@ -1696,7 +1696,7 @@ int ii; ...@@ -1696,7 +1696,7 @@ int ii;
wOffset += (uKeyIdx * 4); wOffset += (uKeyIdx * 4);
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"1. wOffset: %d, Data: %lX, idx:%d\n", wOffset, *pdwKey, uKeyIdx); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"1. wOffset: %d, Data: %lX, idx:%d\n", wOffset, *pdwKey, uKeyIdx);
// alway push 128 bits // always push 128 bits
for (ii=0; ii<4; ii++) { for (ii=0; ii<4; ii++) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"2.(%d) wOffset: %d, Data: %lX\n", ii, wOffset+ii, *pdwKey); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"2.(%d) wOffset: %d, Data: %lX\n", ii, wOffset+ii, *pdwKey);
VNSvOutPortW(dwIoBase + MAC_REG_MISCFFNDEX, wOffset+ii); VNSvOutPortW(dwIoBase + MAC_REG_MISCFFNDEX, wOffset+ii);
......
...@@ -586,7 +586,7 @@ ...@@ -586,7 +586,7 @@
#define PKT_TYPE_NONE 0x00 // turn off receiver #define PKT_TYPE_NONE 0x00 // turn off receiver
#define PKT_TYPE_ALL_MULTICAST 0x80 #define PKT_TYPE_ALL_MULTICAST 0x80
#define PKT_TYPE_PROMISCUOUS 0x40 #define PKT_TYPE_PROMISCUOUS 0x40
#define PKT_TYPE_DIRECTED 0x20 // obselete, directed address is always accepted #define PKT_TYPE_DIRECTED 0x20 // obsolete, directed address is always accepted
#define PKT_TYPE_BROADCAST 0x10 #define PKT_TYPE_BROADCAST 0x10
#define PKT_TYPE_MULTICAST 0x08 #define PKT_TYPE_MULTICAST 0x08
#define PKT_TYPE_ERROR_WPA 0x04 #define PKT_TYPE_ERROR_WPA 0x04
......
...@@ -191,7 +191,7 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic, ...@@ -191,7 +191,7 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic,
pStatistic->ullRsrOK++; pStatistic->ullRsrOK++;
if (cbFrameLength >= ETH_ALEN) { if (cbFrameLength >= ETH_ALEN) {
// update counters in case that successful transmit // update counters in case of successful transmit
if (byRSR & RSR_ADDRBROAD) { if (byRSR & RSR_ADDRBROAD) {
pStatistic->ullRxBroadcastFrames++; pStatistic->ullRxBroadcastFrames++;
pStatistic->ullRxBroadcastBytes += (unsigned long long) cbFrameLength; pStatistic->ullRxBroadcastBytes += (unsigned long long) cbFrameLength;
......
...@@ -207,7 +207,7 @@ PSbConsiderPowerDown( ...@@ -207,7 +207,7 @@ PSbConsiderPowerDown(
if (pDevice->bCmdRunning) if (pDevice->bCmdRunning)
return false; return false;
// Froce PSEN on // Force PSEN on
MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_PSEN); MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_PSEN);
// check if all TD are empty, // check if all TD are empty,
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* Date: Feb. 19, 2004 * Date: Feb. 19, 2004
* *
* Functions: * Functions:
* IFRFbWriteEmbeded - Embeded write RF register via MAC * IFRFbWriteEmbeded - Embedded write RF register via MAC
* *
* Revision History: * Revision History:
* *
...@@ -460,11 +460,11 @@ bool s_bAL7230Init (unsigned long dwIoBase) ...@@ -460,11 +460,11 @@ bool s_bAL7230Init (unsigned long dwIoBase)
//Calibration //Calibration
MACvTimer0MicroSDelay(dwIoBase, 150);//150us MACvTimer0MicroSDelay(dwIoBase, 150);//150us
bResult &= IFRFbWriteEmbeded(dwIoBase, (0x9ABA8F00+(BY_AL7230_REG_LEN<<3)+IFREGCTL_REGW)); //TXDCOC:active, RCK:diable bResult &= IFRFbWriteEmbeded(dwIoBase, (0x9ABA8F00+(BY_AL7230_REG_LEN<<3)+IFREGCTL_REGW)); //TXDCOC:active, RCK:disable
MACvTimer0MicroSDelay(dwIoBase, 30);//30us MACvTimer0MicroSDelay(dwIoBase, 30);//30us
bResult &= IFRFbWriteEmbeded(dwIoBase, (0x3ABA8F00+(BY_AL7230_REG_LEN<<3)+IFREGCTL_REGW)); //TXDCOC:diable, RCK:active bResult &= IFRFbWriteEmbeded(dwIoBase, (0x3ABA8F00+(BY_AL7230_REG_LEN<<3)+IFREGCTL_REGW)); //TXDCOC:disable, RCK:active
MACvTimer0MicroSDelay(dwIoBase, 30);//30us MACvTimer0MicroSDelay(dwIoBase, 30);//30us
bResult &= IFRFbWriteEmbeded(dwIoBase, dwAL7230InitTable[CB_AL7230_INIT_SEQ-1]); //TXDCOC:diable, RCK:diable bResult &= IFRFbWriteEmbeded(dwIoBase, dwAL7230InitTable[CB_AL7230_INIT_SEQ-1]); //TXDCOC:disable, RCK:disable
MACvWordRegBitsOn(dwIoBase, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE3 | MACvWordRegBitsOn(dwIoBase, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE3 |
SOFTPWRCTL_SWPE2 | SOFTPWRCTL_SWPE2 |
...@@ -574,7 +574,7 @@ bool s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel) ...@@ -574,7 +574,7 @@ bool s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel)
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
/* /*
* Description: Write to IF/RF, by embeded programming * Description: Write to IF/RF, by embedded programming
* *
* Parameters: * Parameters:
* In: * In:
......
...@@ -2568,7 +2568,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { ...@@ -2568,7 +2568,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) {
if (bIsPSPOLL) { if (bIsPSPOLL) {
// The MAC will automatically replace the Duration-field of MAC header by Duration-field // The MAC will automatically replace the Duration-field of MAC header by Duration-field
// of FIFO control header. // of FIFO control header.
// This will cause AID-field of PS-POLL packet be incorrect (Because PS-POLL's AID field is // This will cause AID-field of PS-POLL packet to be incorrect (Because PS-POLL's AID field is
// in the same place of other packet's Duration-field). // in the same place of other packet's Duration-field).
// And it will cause Cisco-AP to issue Disassociation-packet // And it will cause Cisco-AP to issue Disassociation-packet
if (byPktType == PK_TYPE_11GB || byPktType == PK_TYPE_11GA) { if (byPktType == PK_TYPE_11GB || byPktType == PK_TYPE_11GA) {
...@@ -2860,7 +2860,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un ...@@ -2860,7 +2860,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un
// SetPower will cause error power TX state for OFDM Date packet in TX buffer. // SetPower will cause error power TX state for OFDM Date packet in TX buffer.
// 2004.11.11 Kyle -- Using OFDM power to tx MngPkt will decrease the connection capability. // 2004.11.11 Kyle -- Using OFDM power to tx MngPkt will decrease the connection capability.
// And cmd timer will wait data pkt TX finish before scanning so it's OK // And cmd timer will wait data pkt TX to finish before scanning so it's OK
// to set power here. // to set power here.
if (pDevice->pMgmt->eScanState != WMAC_NO_SCANNING) { if (pDevice->pMgmt->eScanState != WMAC_NO_SCANNING) {
RFbSetPower(pDevice, wCurrentRate, pDevice->byCurrentCh); RFbSetPower(pDevice, wCurrentRate, pDevice->byCurrentCh);
...@@ -2957,7 +2957,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un ...@@ -2957,7 +2957,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un
pTxBufHead->wFragCtl |= cpu_to_le16((unsigned short)cbMacHdLen << 10); pTxBufHead->wFragCtl |= cpu_to_le16((unsigned short)cbMacHdLen << 10);
// Notes: // Notes:
// Although spec says MMPDU can be fragmented; In most case, // Although spec says MMPDU can be fragmented; In most casses,
// no one will send a MMPDU under fragmentation. With RTS may occur. // no one will send a MMPDU under fragmentation. With RTS may occur.
pDevice->bAES = false; //Set FRAGCTL_WEPTYP pDevice->bAES = false; //Set FRAGCTL_WEPTYP
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* *
* File: tcrc.c * File: tcrc.c
* *
* Purpose: Implement functions to caculate CRC * Purpose: Implement functions to calculate CRC
* *
* Author: Tevin Chen * Author: Tevin Chen
* *
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* *
* File: tcrc.h * File: tcrc.h
* *
* Purpose: Implement functions to caculate CRC * Purpose: Implement functions to calculate CRC
* *
* Author: Tevin Chen * Author: Tevin Chen
* *
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
* Parameters: * Parameters:
* In: * In:
* pMgmtHandle - pointer to management object * pMgmtHandle - pointer to management object
* eOPMode - Opreation Mode * eOPMode - Operation Mode
* Out: * Out:
* none * none
* *
......
...@@ -121,7 +121,7 @@ vAdHocBeaconStop(PSDevice pDevice) ...@@ -121,7 +121,7 @@ vAdHocBeaconStop(PSDevice pDevice)
/* /*
* temporarily stop Beacon packet for AdHoc Server * temporarily stop Beacon packet for AdHoc Server
* if all of the following coditions are met: * if all of the following conditions are met:
* (1) STA is in AdHoc mode * (1) STA is in AdHoc mode
* (2) VT3253 is programmed as automatic Beacon Transmitting * (2) VT3253 is programmed as automatic Beacon Transmitting
* (3) One of the following conditions is met * (3) One of the following conditions is met
...@@ -812,8 +812,8 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS ...@@ -812,8 +812,8 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "sta ps tx fail \n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "sta ps tx fail \n");
} }
pMgmt->sNodeDBTable[ii].wEnQueueCnt--; pMgmt->sNodeDBTable[ii].wEnQueueCnt--;
// check if sta ps enable, wait next pspoll // check if sta ps enabled, and wait next pspoll.
// if sta ps disable, send all pending buffers. // if sta ps disable, then send all pending buffers.
if (pMgmt->sNodeDBTable[ii].bPSEnable) if (pMgmt->sNodeDBTable[ii].bPSEnable)
break; break;
} }
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
* Date: May 8, 2002 * Date: May 8, 2002
* *
* Functions: * Functions:
* nsMgrObjectInitial - Initialize Management Objet data structure * nsMgrObjectInitial - Initialize Management Object data structure
* vMgrObjectReset - Reset Management Objet data structure * vMgrObjectReset - Reset Management Object data structure
* vMgrAssocBeginSta - Start associate function * vMgrAssocBeginSta - Start associate function
* vMgrReAssocBeginSta - Start reassociate function * vMgrReAssocBeginSta - Start reassociate function
* vMgrDisassocBeginSta - Start disassociate function * vMgrDisassocBeginSta - Start disassociate function
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
* bMgrPrepareBeaconToSend - Prepare Beacon frame * bMgrPrepareBeaconToSend - Prepare Beacon frame
* s_vMgrLogStatus - Log 802.11 Status * s_vMgrLogStatus - Log 802.11 Status
* vMgrRxManagePacket - Rcv management frame dispatch function * vMgrRxManagePacket - Rcv management frame dispatch function
* s_vMgrFormatTIM- Assember TIM field of beacon * s_vMgrFormatTIM- Assembler TIM field of beacon
* vMgrTimerInit- Initial 1-sec and command call back funtions * vMgrTimerInit- Initial 1-sec and command call back funtions
* *
* Revision History: * Revision History:
...@@ -425,7 +425,7 @@ vMgrTimerInit( ...@@ -425,7 +425,7 @@ vMgrTimerInit(
/*+ /*+
* *
* Routine Description: * Routine Description:
* Reset the management object structure. * Reset the management object structure.
* *
* Return Value: * Return Value:
* None. * None.
...@@ -1287,14 +1287,14 @@ s_vMgrRxAuthentication( ...@@ -1287,14 +1287,14 @@ s_vMgrRxAuthentication(
vMgrDecodeAuthen(&sFrame); vMgrDecodeAuthen(&sFrame);
switch (cpu_to_le16((*(sFrame.pwAuthSequence )))){ switch (cpu_to_le16((*(sFrame.pwAuthSequence )))){
case 1: case 1:
//AP funciton //AP function
s_vMgrRxAuthenSequence_1(pDevice,pMgmt, &sFrame); s_vMgrRxAuthenSequence_1(pDevice,pMgmt, &sFrame);
break; break;
case 2: case 2:
s_vMgrRxAuthenSequence_2(pDevice, pMgmt, &sFrame); s_vMgrRxAuthenSequence_2(pDevice, pMgmt, &sFrame);
break; break;
case 3: case 3:
//AP funciton //AP function
s_vMgrRxAuthenSequence_3(pDevice, pMgmt, &sFrame); s_vMgrRxAuthenSequence_3(pDevice, pMgmt, &sFrame);
break; break;
case 4: case 4:
...@@ -1923,7 +1923,7 @@ s_vMgrRxBeacon( ...@@ -1923,7 +1923,7 @@ s_vMgrRxBeacon(
byIEChannel = sFrame.pDSParms->byCurrChannel; byIEChannel = sFrame.pDSParms->byCurrChannel;
} }
if (byCurrChannel != byIEChannel) { if (byCurrChannel != byIEChannel) {
// adjust channel info. bcs we rcv adjcent channel pakckets // adjust channel info. bcs we rcv adjacent channel packets
bChannelHit = false; bChannelHit = false;
byCurrChannel = byIEChannel; byCurrChannel = byIEChannel;
} }
...@@ -2081,7 +2081,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) ...@@ -2081,7 +2081,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true)
} }
} }
// //
// Basic Rate Set may change dynamiclly // Basic Rate Set may change dynamically
// //
if (pBSSList->eNetworkTypeInUse == PHY_TYPE_11B) { if (pBSSList->eNetworkTypeInUse == PHY_TYPE_11B) {
uRateLen = WLAN_RATES_MAXLEN_11B; uRateLen = WLAN_RATES_MAXLEN_11B;
...@@ -2134,7 +2134,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) ...@@ -2134,7 +2134,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true)
} }
// DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Beacon 2 \n"); // DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Beacon 2 \n");
// check if CF field exisit // check if CF field exists
if (WLAN_GET_CAP_INFO_ESS(*sFrame.pwCapInfo)) { if (WLAN_GET_CAP_INFO_ESS(*sFrame.pwCapInfo)) {
if (sFrame.pCFParms->wCFPDurRemaining > 0) { if (sFrame.pCFParms->wCFPDurRemaining > 0) {
// TODO: deal with CFP period to set NAV // TODO: deal with CFP period to set NAV
...@@ -2244,7 +2244,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) ...@@ -2244,7 +2244,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true)
if (pMgmt->sNodeDBTable[0].uInActiveCount != 0) if (pMgmt->sNodeDBTable[0].uInActiveCount != 0)
pMgmt->sNodeDBTable[0].uInActiveCount = 0; pMgmt->sNodeDBTable[0].uInActiveCount = 0;
// adhoc mode:TSF updated only when beacon larger then local TSF // adhoc mode:TSF updated only when beacon larger than local TSF
if (bTSFLargeDiff && bTSFOffsetPostive && if (bTSFLargeDiff && bTSFOffsetPostive &&
(pMgmt->eCurrState == WMAC_STATE_JOINTED)) (pMgmt->eCurrState == WMAC_STATE_JOINTED))
bUpdateTSF = true; bUpdateTSF = true;
...@@ -2252,7 +2252,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) ...@@ -2252,7 +2252,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true)
// During dpc, already in spinlocked. // During dpc, already in spinlocked.
if (BSSDBbIsSTAInNodeDB(pMgmt, sFrame.pHdr->sA3.abyAddr2, &uNodeIndex)) { if (BSSDBbIsSTAInNodeDB(pMgmt, sFrame.pHdr->sA3.abyAddr2, &uNodeIndex)) {
// Update the STA, (Techically the Beacons of all the IBSS nodes // Update the STA, (Technically the Beacons of all the IBSS nodes
// should be identical, but that's not happening in practice. // should be identical, but that's not happening in practice.
pMgmt->abyCurrSuppRates[1] = RATEuSetIE((PWLAN_IE_SUPP_RATES)sFrame.pSuppRates, pMgmt->abyCurrSuppRates[1] = RATEuSetIE((PWLAN_IE_SUPP_RATES)sFrame.pSuppRates,
(PWLAN_IE_SUPP_RATES)pMgmt->abyCurrSuppRates, (PWLAN_IE_SUPP_RATES)pMgmt->abyCurrSuppRates,
...@@ -2305,7 +2305,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) ...@@ -2305,7 +2305,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true)
*/ */
} }
// if other stations jointed, indicate connect to upper layer.. // if other stations joined, indicate connection to upper layer..
if (pMgmt->eCurrState == WMAC_STATE_STARTED) { if (pMgmt->eCurrState == WMAC_STATE_STARTED) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Current IBSS State: [Started]........to: [Jointed] \n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Current IBSS State: [Started]........to: [Jointed] \n");
pMgmt->eCurrState = WMAC_STATE_JOINTED; pMgmt->eCurrState = WMAC_STATE_JOINTED;
...@@ -3081,8 +3081,8 @@ s_vMgrSynchBSS ( ...@@ -3081,8 +3081,8 @@ s_vMgrSynchBSS (
// } // }
// } // }
// if( uSameBssidNum>=2) { //we only check AP in hidden sssid mode // if( uSameBssidNum>=2) { //we only check AP in hidden sssid mode
if ((pMgmt->eAuthenMode == WMAC_AUTH_WPAPSK) || //networkmanager 0.7.0 does not give the pairwise-key selsection, if ((pMgmt->eAuthenMode == WMAC_AUTH_WPAPSK) || //networkmanager 0.7.0 does not give the pairwise-key selection,
(pMgmt->eAuthenMode == WMAC_AUTH_WPA2PSK)) { // so we need re-selsect it according to real pairwise-key info. (pMgmt->eAuthenMode == WMAC_AUTH_WPA2PSK)) { // so we need re-select it according to real pairwise-key info.
if(pCurr->bWPAValid == true) { //WPA-PSK if(pCurr->bWPAValid == true) { //WPA-PSK
pMgmt->eAuthenMode = WMAC_AUTH_WPAPSK; pMgmt->eAuthenMode = WMAC_AUTH_WPAPSK;
if(pCurr->abyPKType[0] == WPA_TKIP) { if(pCurr->abyPKType[0] == WPA_TKIP) {
...@@ -3193,7 +3193,7 @@ s_vMgrFormatTIM( ...@@ -3193,7 +3193,7 @@ s_vMgrFormatTIM(
* *
* *
* Return Value: * Return Value:
* PTR to frame; or NULL on allocation failue * PTR to frame; or NULL on allocation failure
* *
-*/ -*/
...@@ -3310,7 +3310,7 @@ s_MgrMakeBeacon( ...@@ -3310,7 +3310,7 @@ s_MgrMakeBeacon(
*((unsigned short *)(sFrame.pBuf + sFrame.len + sFrame.pRSNWPA->len))=0; *((unsigned short *)(sFrame.pBuf + sFrame.len + sFrame.pRSNWPA->len))=0;
sFrame.pRSNWPA->len +=2; sFrame.pRSNWPA->len +=2;
// RSN Capabilites // RSN Capabilities
*((unsigned short *)(sFrame.pBuf + sFrame.len + sFrame.pRSNWPA->len))=0; *((unsigned short *)(sFrame.pBuf + sFrame.len + sFrame.pRSNWPA->len))=0;
sFrame.pRSNWPA->len +=2; sFrame.pRSNWPA->len +=2;
sFrame.len += sFrame.pRSNWPA->len + WLAN_IEHDR_LEN; sFrame.len += sFrame.pRSNWPA->len + WLAN_IEHDR_LEN;
...@@ -3420,7 +3420,7 @@ s_MgrMakeBeacon( ...@@ -3420,7 +3420,7 @@ s_MgrMakeBeacon(
* *
* *
* Return Value: * Return Value:
* PTR to frame; or NULL on allocation failue * PTR to frame; or NULL on allocation failure
* *
-*/ -*/
...@@ -3611,7 +3611,7 @@ s_MgrMakeProbeResponse( ...@@ -3611,7 +3611,7 @@ s_MgrMakeProbeResponse(
* *
* *
* Return Value: * Return Value:
* A ptr to frame or NULL on allocation failue * A ptr to frame or NULL on allocation failure
* *
-*/ -*/
...@@ -3652,7 +3652,7 @@ s_MgrMakeAssocRequest( ...@@ -3652,7 +3652,7 @@ s_MgrMakeAssocRequest(
memcpy( sFrame.pHdr->sA3.abyAddr2, pMgmt->abyMACAddr, WLAN_ADDR_LEN); memcpy( sFrame.pHdr->sA3.abyAddr2, pMgmt->abyMACAddr, WLAN_ADDR_LEN);
memcpy( sFrame.pHdr->sA3.abyAddr3, pMgmt->abyCurrBSSID, WLAN_BSSID_LEN); memcpy( sFrame.pHdr->sA3.abyAddr3, pMgmt->abyCurrBSSID, WLAN_BSSID_LEN);
// Set the capibility and listen interval // Set the capability and listen interval
*(sFrame.pwCapInfo) = cpu_to_le16(wCurrCapInfo); *(sFrame.pwCapInfo) = cpu_to_le16(wCurrCapInfo);
*(sFrame.pwListenInterval) = cpu_to_le16(wListenInterval); *(sFrame.pwListenInterval) = cpu_to_le16(wListenInterval);
...@@ -3762,7 +3762,7 @@ s_MgrMakeAssocRequest( ...@@ -3762,7 +3762,7 @@ s_MgrMakeAssocRequest(
sFrame.pRSNWPA->len +=6; sFrame.pRSNWPA->len +=6;
// RSN Capabilites // RSN Capabilities
*pbyRSN++=0x00; *pbyRSN++=0x00;
*pbyRSN++=0x00; *pbyRSN++=0x00;
...@@ -3831,7 +3831,7 @@ s_MgrMakeAssocRequest( ...@@ -3831,7 +3831,7 @@ s_MgrMakeAssocRequest(
} }
sFrame.pRSN->len +=6; sFrame.pRSN->len +=6;
// RSN Capabilites // RSN Capabilities
if (pMgmt->pCurrBSS->sRSNCapObj.bRSNCapExist == true) { if (pMgmt->pCurrBSS->sRSNCapObj.bRSNCapExist == true) {
memcpy(&sFrame.pRSN->abyRSN[16], &pMgmt->pCurrBSS->sRSNCapObj.wRSNCap, 2); memcpy(&sFrame.pRSN->abyRSN[16], &pMgmt->pCurrBSS->sRSNCapObj.wRSNCap, 2);
} else { } else {
...@@ -3886,7 +3886,7 @@ s_MgrMakeAssocRequest( ...@@ -3886,7 +3886,7 @@ s_MgrMakeAssocRequest(
* *
* *
* Return Value: * Return Value:
* A ptr to frame or NULL on allocation failue * A ptr to frame or NULL on allocation failure
* *
-*/ -*/
...@@ -3929,7 +3929,7 @@ s_MgrMakeReAssocRequest( ...@@ -3929,7 +3929,7 @@ s_MgrMakeReAssocRequest(
memcpy( sFrame.pHdr->sA3.abyAddr2, pMgmt->abyMACAddr, WLAN_ADDR_LEN); memcpy( sFrame.pHdr->sA3.abyAddr2, pMgmt->abyMACAddr, WLAN_ADDR_LEN);
memcpy( sFrame.pHdr->sA3.abyAddr3, pMgmt->abyCurrBSSID, WLAN_BSSID_LEN); memcpy( sFrame.pHdr->sA3.abyAddr3, pMgmt->abyCurrBSSID, WLAN_BSSID_LEN);
/* Set the capibility and listen interval */ /* Set the capability and listen interval */
*(sFrame.pwCapInfo) = cpu_to_le16(wCurrCapInfo); *(sFrame.pwCapInfo) = cpu_to_le16(wCurrCapInfo);
*(sFrame.pwListenInterval) = cpu_to_le16(wListenInterval); *(sFrame.pwListenInterval) = cpu_to_le16(wListenInterval);
...@@ -4019,7 +4019,7 @@ s_MgrMakeReAssocRequest( ...@@ -4019,7 +4019,7 @@ s_MgrMakeReAssocRequest(
sFrame.pRSNWPA->len +=6; sFrame.pRSNWPA->len +=6;
// RSN Capabilites // RSN Capabilities
*pbyRSN++=0x00; *pbyRSN++=0x00;
*pbyRSN++=0x00; *pbyRSN++=0x00;
sFrame.pRSNWPA->len +=2; sFrame.pRSNWPA->len +=2;
...@@ -4087,7 +4087,7 @@ s_MgrMakeReAssocRequest( ...@@ -4087,7 +4087,7 @@ s_MgrMakeReAssocRequest(
} }
sFrame.pRSN->len +=6; sFrame.pRSN->len +=6;
// RSN Capabilites // RSN Capabilities
if (pMgmt->pCurrBSS->sRSNCapObj.bRSNCapExist == true) { if (pMgmt->pCurrBSS->sRSNCapObj.bRSNCapExist == true) {
memcpy(&sFrame.pRSN->abyRSN[16], &pMgmt->pCurrBSS->sRSNCapObj.wRSNCap, 2); memcpy(&sFrame.pRSN->abyRSN[16], &pMgmt->pCurrBSS->sRSNCapObj.wRSNCap, 2);
} else { } else {
...@@ -4138,7 +4138,7 @@ s_MgrMakeReAssocRequest( ...@@ -4138,7 +4138,7 @@ s_MgrMakeReAssocRequest(
* *
* *
* Return Value: * Return Value:
* PTR to frame; or NULL on allocation failue * PTR to frame; or NULL on allocation failure
* *
-*/ -*/
...@@ -4212,7 +4212,7 @@ s_MgrMakeAssocResponse( ...@@ -4212,7 +4212,7 @@ s_MgrMakeAssocResponse(
* *
* *
* Return Value: * Return Value:
* PTR to frame; or NULL on allocation failue * PTR to frame; or NULL on allocation failure
* *
-*/ -*/
...@@ -4333,7 +4333,7 @@ s_vMgrRxProbeResponse( ...@@ -4333,7 +4333,7 @@ s_vMgrRxProbeResponse(
byIEChannel = sFrame.pDSParms->byCurrChannel; byIEChannel = sFrame.pDSParms->byCurrChannel;
} }
if (byCurrChannel != byIEChannel) { if (byCurrChannel != byIEChannel) {
// adjust channel info. bcs we rcv adjcent channel pakckets // adjust channel info. bcs we rcv adjacent channel packets
bChannelHit = false; bChannelHit = false;
byCurrChannel = byIEChannel; byCurrChannel = byIEChannel;
} }
......
...@@ -286,7 +286,7 @@ typedef struct tagSMgmtObject ...@@ -286,7 +286,7 @@ typedef struct tagSMgmtObject
CMD_STATE eCommandState; CMD_STATE eCommandState;
unsigned int uScanChannel; unsigned int uScanChannel;
// Desire joinning BSS vars // Desire joining BSS vars
unsigned char abyDesireSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; unsigned char abyDesireSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
unsigned char abyDesireBSSID[WLAN_BSSID_LEN]; unsigned char abyDesireBSSID[WLAN_BSSID_LEN];
...@@ -310,7 +310,7 @@ typedef struct tagSMgmtObject ...@@ -310,7 +310,7 @@ typedef struct tagSMgmtObject
unsigned int uScanEndCh; unsigned int uScanEndCh;
unsigned short wScanSteps; unsigned short wScanSteps;
unsigned int uScanBSSType; unsigned int uScanBSSType;
// Desire scannig vars // Desire scanning vars
unsigned char abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; unsigned char abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
unsigned char abyScanBSSID[WLAN_BSSID_LEN]; unsigned char abyScanBSSID[WLAN_BSSID_LEN];
......
...@@ -229,7 +229,7 @@ WPA_ParseRSN ( ...@@ -229,7 +229,7 @@ WPA_ParseRSN (
* Parameters: * Parameters:
* In: * In:
* byCmd - Search type * byCmd - Search type
* byEncrypt- Encrcypt Type * byEncrypt- Encrypt Type
* pBSSList - BSS list * pBSSList - BSS list
* Out: * Out:
* none * none
......
...@@ -175,16 +175,16 @@ WPA2vParseRSN ( ...@@ -175,16 +175,16 @@ WPA2vParseRSN (
pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_USE_GROUP; pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_USE_GROUP;
bUseGK = true; bUseGK = true;
} else if ( !memcmp(pbyOUI, abyOUIWEP40, 4)) { } else if ( !memcmp(pbyOUI, abyOUIWEP40, 4)) {
// Invialid CSS, continue to parsing // Invalid CSS, continue to parsing
} else if ( !memcmp(pbyOUI, abyOUITKIP, 4)) { } else if ( !memcmp(pbyOUI, abyOUITKIP, 4)) {
if (pBSSNode->byCSSGK != WLAN_11i_CSS_CCMP) if (pBSSNode->byCSSGK != WLAN_11i_CSS_CCMP)
pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_TKIP; pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_TKIP;
else else
; // Invialid CSS, continue to parsing ; // Invalid CSS, continue to parsing
} else if ( !memcmp(pbyOUI, abyOUICCMP, 4)) { } else if ( !memcmp(pbyOUI, abyOUICCMP, 4)) {
pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_CCMP; pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_CCMP;
} else if ( !memcmp(pbyOUI, abyOUIWEP104, 4)) { } else if ( !memcmp(pbyOUI, abyOUIWEP104, 4)) {
// Invialid CSS, continue to parsing // Invalid CSS, continue to parsing
} else { } else {
// any vendor checks here // any vendor checks here
pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_UNKNOWN; pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_UNKNOWN;
...@@ -329,7 +329,7 @@ WPA2uSetIEs( ...@@ -329,7 +329,7 @@ WPA2uSetIEs(
} }
pRSNIEs->len +=6; pRSNIEs->len +=6;
// RSN Capabilites // RSN Capabilities
if (pMgmt->pCurrBSS->sRSNCapObj.bRSNCapExist == true) { if (pMgmt->pCurrBSS->sRSNCapObj.bRSNCapExist == true) {
memcpy(&pRSNIEs->abyRSN[16], &pMgmt->pCurrBSS->sRSNCapObj.wRSNCap, 2); memcpy(&pRSNIEs->abyRSN[16], &pMgmt->pCurrBSS->sRSNCapObj.wRSNCap, 2);
} else { } else {
......
...@@ -77,7 +77,7 @@ static void wpadev_setup(struct net_device *dev) ...@@ -77,7 +77,7 @@ static void wpadev_setup(struct net_device *dev)
/* /*
* Description: * Description:
* register netdev for wpa supplicant deamon * register netdev for wpa supplicant daemon
* *
* Parameters: * Parameters:
* In: * In:
...@@ -164,7 +164,7 @@ static int wpa_release_wpadev(PSDevice pDevice) ...@@ -164,7 +164,7 @@ static int wpa_release_wpadev(PSDevice pDevice)
/* /*
* Description: * Description:
* Set enable/disable dev for wpa supplicant deamon * Set enable/disable dev for wpa supplicant daemon
* *
* Parameters: * Parameters:
* In: * In:
...@@ -847,7 +847,7 @@ else ...@@ -847,7 +847,7 @@ else
if(!bWepEnabled) pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled; if(!bWepEnabled) pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled;
else pDevice->eEncryptionStatus = Ndis802_11Encryption1Enabled; else pDevice->eEncryptionStatus = Ndis802_11Encryption1Enabled;
//pMgmt->eAuthenMode = WMAC_AUTH_OPEN; //pMgmt->eAuthenMode = WMAC_AUTH_OPEN;
//pMgmt->bShareKeyAlgorithm = false; //20080717-06,<Modify> by chester//Fix Open mode, WEP encrytion //pMgmt->bShareKeyAlgorithm = false; //20080717-06,<Modify> by chester//Fix Open mode, WEP encryption
} }
//mike save old encryption status //mike save old encryption status
pDevice->eOldEncryptionStatus = pDevice->eEncryptionStatus; pDevice->eOldEncryptionStatus = pDevice->eEncryptionStatus;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* *
* File: wroute.c * File: wroute.c
* *
* Purpose: handle WMAC frame relay & filterring * Purpose: handle WMAC frame relay & filtering
* *
* Author: Lyndon Chen * Author: Lyndon Chen
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment