Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324725
b: refs/heads/master
c: 789d1ae
h: refs/heads/master
i:
  324723: b19cb3e
v: v3
  • Loading branch information
Justin P. Mattock authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 7eb82f8 commit 7d910a4
Show file tree
Hide file tree
Showing 28 changed files with 84 additions and 83 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 736f5d0a0980a6bf71e5c0d30c2d35225fb3f583
refs/heads/master: 789d1aef176e720fce4a8a5a9ab07f093ddb9086
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/80211mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_WEP40 1
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/vt6655/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
* Functions:
* BBuGetFrameTime - Calculate data frame transmitting time
* BBvCaculateParameter - Caculate PhyLength, PhyService and Phy Signal parameter for baseband Tx
* BBbReadEmbeded - Embeded read baseband register via MAC
* BBbWriteEmbeded - Embeded write baseband register via MAC
* BBbReadEmbeded - Embedded read baseband register via MAC
* BBbWriteEmbeded - Embedded write baseband register via MAC
* BBbIsRegBitsOn - Test if baseband register bits on
* BBbIsRegBitsOff - Test if baseband register bits off
* BBbVT3253Init - VIA VT3253 baseband chip init code
Expand Down Expand Up @@ -2001,7 +2001,7 @@ BBvCaculateParameter (
}

/*
* Description: Read a byte from BASEBAND, by embeded programming
* Description: Read a byte from BASEBAND, by embedded programming
*
* Parameters:
* In:
Expand Down Expand Up @@ -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:
* In:
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6655/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@ BSSDBbIsSTAInNodeDB(void *pMgmtObject, unsigned char *abyDstAddr,
/*+
*
* Routine Description:
* Find an empty node and allocated; if no empty found,
* instand used of most inactive one.
* Find an empty node and allocat it; if there is no empty node,
* then use the most inactive one.
*
* Return Value:
* None
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/vt6655/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,8 @@ CARDbSetQuiet (
/*
*
* 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:
* In:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/datarate.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ DATARATEbyGetRateIdx (
/*+
*
* Routine Description:
* Rate fallback Algorithm Implementaion
* Rate fallback Algorithm Implementation
*
* Parameters:
* In:
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6655/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ typedef struct tagSDeFragControlBlock
//flags for driver status
#define DEVICE_FLAGS_OPENED 0x00010000UL
#define DEVICE_FLAGS_WOL_ENABLED 0x00080000UL
//flags for capbilities
//flags for capabilities
#define DEVICE_FLAGS_TX_ALIGN 0x01000000UL
#define DEVICE_FLAGS_HAVE_CAM 0x02000000UL
#define DEVICE_FLAGS_FLOW_CTRL 0x04000000UL
Expand Down Expand Up @@ -567,7 +567,7 @@ typedef struct __device_info {
bool bPrvActive4RadioOFF;
bool bGPIOBlockRead;

// Beacon releated
// Beacon related
unsigned short wSeqCounter;
unsigned short wBCNBufLen;
bool bBeaconBufReady;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
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->tx_80211 = device_dma0_tx_80211;
pDevice->sMgmtObj.pAdapter = (void *)pDevice;
Expand Down Expand Up @@ -1678,7 +1678,7 @@ static int device_tx_srv(PSDevice pDevice, unsigned int uIdx) {
uFrameSize = pTD->pTDInfo->dwReqCount - uFIFOHeaderSize;
pTxBufHead = (PSTxBufHead) (pTD->pTDInfo->buf);
// Update the statistics based on the Transmit status
// now, we DO'NT check TSR0_CDH
// now, we DONT check TSR0_CDH

STAvUpdateTDStatCounter(&pDevice->scStatistic,
byTsr0, byTsr1,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/dpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ device_receive_frame (
if ((*pbyRSSI != 0) &&
(pMgmt->pCurrBSS!=NULL)) {
RFvRSSITodBm(pDevice, *pbyRSSI, &ldBm);
// Moniter if RSSI is too strong.
// Monitor if RSSI is too strong.
pMgmt->pCurrBSS->byRSSIStatCnt++;
pMgmt->pCurrBSS->byRSSIStatCnt %= RSSI_STAT_COUNT;
pMgmt->pCurrBSS->ldBmAverage[pMgmt->pCurrBSS->byRSSIStatCnt] = ldBm;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
break;

case WLAN_CMD_ZONETYPE_SET:
/* mike add :cann't support. */
/* mike add :can't support. */
result = -EOPNOTSUPP;
break;

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/iwctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -1346,7 +1346,7 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){

}else if(index>0){
//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)
{
rc = -EINVAL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ bool KeybRemoveKey (
int i;

if (is_broadcast_ether_addr(pbyBSSID)) {
// dealte all key
// delete all keys
if ((dwKeyIndex & PAIRWISE_KEY) != 0) {
for (i=0;i<MAX_KEY_TABLE;i++) {
pTable->KeyTable[i].PairwiseKey.bKeyValid = false;
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/staging/vt6655/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
* MACbSafeStop - Stop MAC function
* MACbShutdown - Shut down MAC
* MACvInitialize - Initialize MAC
* MACvSetCurrRxDescAddr - Set Rx Descriptos Address
* MACvSetCurrTx0DescAddr - Set Tx0 Descriptos Address
* MACvSetCurrTx1DescAddr - Set Tx1 Descriptos Address
* MACvSetCurrRxDescAddr - Set Rx Descriptors Address
* MACvSetCurrTx0DescAddr - Set Tx0 Descriptors Address
* MACvSetCurrTx1DescAddr - Set Tx1 Descriptors Address
* MACvTimer0MicroSDelay - Micro Second Delay Loop by MAC
*
* Revision History:
Expand Down Expand Up @@ -1498,7 +1498,7 @@ int ii;

wOffset += (uKeyIdx * 4);
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);
VNSvOutPortW(dwIoBase + MAC_REG_MISCFFNDEX, wOffset+ii);
VNSvOutPortD(dwIoBase + MAC_REG_MISCFFDATA, *pdwKey++);
Expand Down Expand Up @@ -1567,7 +1567,7 @@ int ii;
wOffset++;
wOffset++;
wOffset += (uKeyIdx * 4);
// alway push 128 bits
// always push 128 bits
for (ii=0; ii<3; ii++) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"(%d) wOffset: %d, Data: %lX\n", ii, wOffset+ii, *pdwKey);
VNSvOutPortW(dwIoBase + MAC_REG_MISCFFNDEX, wOffset+ii);
Expand Down Expand Up @@ -1696,7 +1696,7 @@ int ii;

wOffset += (uKeyIdx * 4);
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++) {
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);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
#define PKT_TYPE_NONE 0x00 // turn off receiver
#define PKT_TYPE_ALL_MULTICAST 0x80
#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_MULTICAST 0x08
#define PKT_TYPE_ERROR_WPA 0x04
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic,
pStatistic->ullRsrOK++;

if (cbFrameLength >= ETH_ALEN) {
// update counters in case that successful transmit
// update counters in case of successful transmit
if (byRSR & RSR_ADDRBROAD) {
pStatistic->ullRxBroadcastFrames++;
pStatistic->ullRxBroadcastBytes += (unsigned long long) cbFrameLength;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ PSbConsiderPowerDown(
if (pDevice->bCmdRunning)
return false;

// Froce PSEN on
// Force PSEN on
MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_PSEN);

// check if all TD are empty,
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/vt6655/rf.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Date: Feb. 19, 2004
*
* Functions:
* IFRFbWriteEmbeded - Embeded write RF register via MAC
* IFRFbWriteEmbeded - Embedded write RF register via MAC
*
* Revision History:
*
Expand Down Expand Up @@ -460,11 +460,11 @@ bool s_bAL7230Init (unsigned long dwIoBase)

//Calibration
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
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
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 |
SOFTPWRCTL_SWPE2 |
Expand Down Expand Up @@ -574,7 +574,7 @@ bool s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel)
/*--------------------- Export Functions --------------------------*/

/*
* Description: Write to IF/RF, by embeded programming
* Description: Write to IF/RF, by embedded programming
*
* Parameters:
* In:
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) {
if (bIsPSPOLL) {
// The MAC will automatically replace the Duration-field of MAC header by Duration-field
// 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).
// And it will cause Cisco-AP to issue Disassociation-packet
if (byPktType == PK_TYPE_11GB || byPktType == PK_TYPE_11GA) {
Expand Down Expand Up @@ -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.
// 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.
if (pDevice->pMgmt->eScanState != WMAC_NO_SCANNING) {
RFbSetPower(pDevice, wCurrentRate, pDevice->byCurrentCh);
Expand Down Expand Up @@ -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);

// 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.
pDevice->bAES = false; //Set FRAGCTL_WEPTYP

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/tcrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* File: tcrc.c
*
* Purpose: Implement functions to caculate CRC
* Purpose: Implement functions to calculate CRC
*
* Author: Tevin Chen
*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/tcrc.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* File: tcrc.h
*
* Purpose: Implement functions to caculate CRC
* Purpose: Implement functions to calculate CRC
*
* Author: Tevin Chen
*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/vntwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
* Parameters:
* In:
* pMgmtHandle - pointer to management object
* eOPMode - Opreation Mode
* eOPMode - Operation Mode
* Out:
* none
*
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/wcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ vAdHocBeaconStop(PSDevice pDevice)

/*
* 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
* (2) VT3253 is programmed as automatic Beacon Transmitting
* (3) One of the following conditions is met
Expand Down Expand Up @@ -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");
}
pMgmt->sNodeDBTable[ii].wEnQueueCnt--;
// check if sta ps enable, wait next pspoll
// if sta ps disable, send all pending buffers.
// check if sta ps enabled, and wait next pspoll.
// if sta ps disable, then send all pending buffers.
if (pMgmt->sNodeDBTable[ii].bPSEnable)
break;
}
Expand Down
Loading

0 comments on commit 7d910a4

Please sign in to comment.