Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324728
b: refs/heads/master
c: a0a1f61
h: refs/heads/master
v: v3
  • Loading branch information
Justin P. Mattock authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 7695ca5 commit 00fa790
Show file tree
Hide file tree
Showing 26 changed files with 76 additions and 76 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: 7664ec86409e6326a1cb8e4f2a9a18dea978a630
refs/heads/master: a0a1f61afa1ff8edda4ad69f37fdd69fdb7d0453
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6656/80211mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,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 Expand Up @@ -720,7 +720,7 @@ typedef struct tagWLAN_FR_AUTHEN {

} WLAN_FR_AUTHEN, *PWLAN_FR_AUTHEN;

// Deauthenication
// Deauthentication
typedef struct tagWLAN_FR_DEAUTHEN {

unsigned int uType;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6656/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
* Functions:
* BBuGetFrameTime - Calculate data frame transmitting time
* BBvCaculateParameter - Caculate PhyLength, PhyService and Phy Signal parameter for baseband Tx
* BBvCaculateParameter - Calculate PhyLength, PhyService and Phy Signal parameter for baseband Tx
* BBbVT3184Init - VIA VT3184 baseband chip init code
* BBvLoopbackOn - Turn on BaseBand Loopback mode
* BBvLoopbackOff - Turn off BaseBand Loopback mode
Expand Down Expand Up @@ -741,7 +741,7 @@ BBuGetFrameTime (
}

/*
* Description: Caculate Length, Service, and Signal fields of Phy for Tx
* Description: Calculate Length, Service, and Signal fields of Phy for Tx
*
* Parameters:
* In:
Expand Down
18 changes: 9 additions & 9 deletions trunk/drivers/staging/vt6656/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ PKnownBSS BSSpSearchBSSList(void *hDeviceContext,
if (pSelect == NULL) {
pSelect = pCurrBSS;
} else {
// compare RSSI, select signal strong one
// compare RSSI, select the strongest signal
if (pCurrBSS->uRSSI < pSelect->uRSSI) {
pSelect = pCurrBSS;
}
Expand Down Expand Up @@ -274,9 +274,9 @@ void BSSvClearBSSList(void *hDeviceContext, BOOL bKeepCurrBSSID)
if (pMgmt->sBSSList[ii].bActive &&
!compare_ether_addr(pMgmt->sBSSList[ii].abyBSSID,
pMgmt->abyCurrBSSID)) {
//mike mark: there are two same BSSID in list if that AP is in hidden ssid mode,one 's SSID is null,
// but other's is obvious, so if it acssociate with your STA exactly,you must keep two
// of them!!!!!!!!!
//mike mark: there are two BSSID's in list. If that AP is in hidden ssid mode, one SSID is null,
// but other's might not be obvious, so if it associate's with your STA,
// you must keep the two of them!!
// bKeepCurrBSSID = FALSE;
continue;
}
Expand Down Expand Up @@ -489,7 +489,7 @@ BOOL BSSbInsertToBSSList(void *hDeviceContext,
}

if (pDevice->bUpdateBBVGA) {
// Moniter if RSSI is too strong.
// Monitor if RSSI is too strong.
pBSSList->byRSSIStatCnt = 0;
RFvRSSITodBm(pDevice, (BYTE)(pRxPacket->uRSSI), &pBSSList->ldBmMAX);
pBSSList->ldBmAverage[0] = pBSSList->ldBmMAX;
Expand Down Expand Up @@ -621,7 +621,7 @@ BOOL BSSbUpdateToBSSList(void *hDeviceContext,

if (pRxPacket->uRSSI != 0) {
RFvRSSITodBm(pDevice, (BYTE)(pRxPacket->uRSSI), &ldBm);
// Moniter if RSSI is too strong.
// Monitor if RSSI is too strong.
pBSSList->byRSSIStatCnt++;
pBSSList->byRSSIStatCnt %= RSSI_STAT_COUNT;
pBSSList->ldBmAverage[pBSSList->byRSSIStatCnt] = ldBm;
Expand Down Expand Up @@ -687,8 +687,8 @@ BOOL BSSbIsSTAInNodeDB(void *hDeviceContext,
/*+
*
* Routine Description:
* Find an empty node and allocated; if no empty found,
* instand used of most inactive one.
* Find an empty node and allocate it; if no empty node
* is found, then use the most inactive one.
*
* Return Value:
* None
Expand Down Expand Up @@ -718,7 +718,7 @@ void BSSvCreateOneNode(void *hDeviceContext, unsigned int *puNodeIndex)
}
}

// if not found replace uInActiveCount is largest one.
// if not found replace uInActiveCount with the largest one.
if ( ii == (MAX_NODE_NUM + 1)) {
*puNodeIndex = SelectIndex;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Replace inactive node = %d\n", SelectIndex);
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/vt6656/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
* CARDbIsOFDMinBasicRate - Check if any OFDM rate is in BasicRateSet
* CARDvSetLoopbackMode - Set Loopback mode
* CARDbSoftwareReset - Sortware reset NIC
* CARDqGetTSFOffset - Caculate TSFOffset
* CARDqGetTSFOffset - Calculate TSFOffset
* CARDbGetCurrentTSF - Read Current NIC TSF counter
* CARDqGetNextTBTT - Caculate Next Beacon TSF counter
* CARDqGetNextTBTT - Calculate Next Beacon TSF counter
* CARDvSetFirstNextTBTT - Set NIC Beacon time
* CARDvUpdateNextTBTT - Sync. NIC Beacon time
* CARDbRadioPowerOff - Turn Off NIC Radio Power
Expand All @@ -40,7 +40,7 @@
*
* Revision History:
* 06-10-2003 Bryan YC Fan: Re-write codes to support VT3253 spec.
* 08-26-2003 Kyle Hsu: Modify the defination type of dwIoBase.
* 08-26-2003 Kyle Hsu: Modify the definition type of dwIoBase.
* 09-01-2003 Bryan YC Fan: Add vUpdateIFS().
*
*/
Expand Down Expand Up @@ -200,7 +200,7 @@ static WORD swGetOFDMControlRate(void *pDeviceHandler, WORD wRateIdx)
}

/*
* Description: Caculate TxRate and RsvTime fields for RSPINF in OFDM mode.
* Description: Calculate TxRate and RsvTime fields for RSPINF in OFDM mode.
*
* Parameters:
* In:
Expand Down Expand Up @@ -640,7 +640,7 @@ BYTE CARDbyGetPktType(void *pDeviceHandler)


/*
* Description: Caculate TSF offset of two TSF input
* Description: Calculate TSF offset of two TSF input
* Get TSF Offset from RxBCN's TSF and local TSF
*
* Parameters:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6656/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ typedef struct __device_info {
unsigned int cbTD;

//
// Variables to track resources for the Interript In Pipe
// Variables to track resources for the Interrupt In Pipe
//
INT_BUFFER intBuf;
BOOL fKillEventPollingThread;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6656/dpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ RXbBulkInProcessData (
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
10 changes: 5 additions & 5 deletions trunk/drivers/staging/vt6656/hostap.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* File: hostap.c
*
* Purpose: handle hostap deamon ioctl input/out functions
* Purpose: handle hostap daemon ioctl input/out functions
*
* Author: Lyndon Chen
*
Expand Down Expand Up @@ -48,7 +48,7 @@ static int msglevel =MSG_LEVEL_INFO;

/*
* Description:
* register net_device (AP) for hostap deamon
* register net_device (AP) for hostap daemon
*
* Parameters:
* In:
Expand Down Expand Up @@ -176,7 +176,7 @@ int vt6656_hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked)

/*
* Description:
* remove station function supported for hostap deamon
* remove station function supported for hostap daemon
*
* Parameters:
* In:
Expand Down Expand Up @@ -204,7 +204,7 @@ static int hostap_remove_sta(PSDevice pDevice,

/*
* Description:
* add a station from hostap deamon
* add a station from hostap daemon
*
* Parameters:
* In:
Expand Down Expand Up @@ -686,7 +686,7 @@ static int hostap_get_encryption(PSDevice pDevice,

/*
* Description:
* vt6656_hostap_ioctl main function supported for hostap deamon.
* vt6656_hostap_ioctl main function supported for hostap daemon.
*
* Parameters:
* In:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6656/int.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void INTnsProcessData(PSDevice pDevice)
pMgmt->sNodeDBTable[0].bRxPSPoll =
FALSE;
} else if (pMgmt->byDTIMCount == 0) {
/* check if mutltcast tx bufferring */
/* check if multicast tx buffering */
pMgmt->byDTIMCount =
pMgmt->byDTIMPeriod-1;
pMgmt->sNodeDBTable[0].bRxPSPoll = TRUE;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6656/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
result = -EFAULT;
break;
}
/* for some AP maybe good authenticate */
/* for some AP's maybe a good authentication */
if (wpa_Result.key_mgmt == 0x20)
pMgmt->Cisco_cckm = 1;
else
Expand All @@ -641,7 +641,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
break;

default:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Private command not support..\n");
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Private command not supported..\n");
}

return result;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6656/iwctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ int iwctl_giwaplist(struct net_device *dev, struct iw_request_info *info,
jj++;
}

wrq->flags = 1; // Should be define'd
wrq->flags = 1; // Should be defined
wrq->length = jj;
memcpy(extra, sock, sizeof(struct sockaddr) * jj);
memcpy(extra + sizeof(struct sockaddr) * jj, qual, sizeof(struct iw_quality) * jj);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6656/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ BOOL KeybRemoveKey(
BOOL bReturnValue = FALSE;

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 Expand Up @@ -618,7 +618,7 @@ BOOL KeybGetTransmitKey(PSKeyManagement pTable, PBYTE pbyBSSID, DWORD dwKeyType,


/*
* Description: Check Pairewise Key
* Description: Check Pairwise Key
*
* Parameters:
* In:
Expand Down
20 changes: 10 additions & 10 deletions trunk/drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
* vt6656_probe - module initial (insmod) driver entry
* device_remove1 - module remove entry
* device_open - allocate dma/descripter resource & initial mac/bbp function
* device_xmit - asynchrous data tx function
* device_xmit - asynchronous data tx function
* device_set_multi - set mac filter
* device_ioctl - ioctl entry
* device_close - shutdown mac/bbp & free dma/descripter resource
* device_close - shutdown mac/bbp & free dma/descriptor resource
* device_alloc_frag_buf - rx fragement pre-allocated function
* device_free_tx_bufs - free tx buffer function
* device_dma0_tx_80211- tx 802.11 frame via dma0
* device_dma0_xmit- tx PS bufferred frame via dma0
* device_dma0_xmit- tx PS buffered frame via dma0
* device_init_registers- initial MAC & BBP & RF internal registers.
* device_init_rings- initial tx/rx ring buffer
* device_init_defrag_cb- initial & allocate de-fragement buffer.
Expand Down Expand Up @@ -316,7 +316,7 @@ static void device_init_diversity_timer(PSDevice pDevice)


//
// Initialiation of MAC & BBP registers
// Initialization of MAC & BBP registers
//

static BOOL device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType)
Expand Down Expand Up @@ -639,7 +639,7 @@ static BOOL device_release_WPADEV(PSDevice pDevice)
viawget_wpa_header *wpahdr;
int ii=0;
// wait_queue_head_t Set_wait;
//send device close to wpa_supplicnat layer
//send device close to wpa_supplicant layer
if (pDevice->bWPADEVUp==TRUE) {
wpahdr = (viawget_wpa_header *)pDevice->skb->data;
wpahdr->type = VIAWGET_DEVICECLOSE_MSG;
Expand Down Expand Up @@ -1010,7 +1010,7 @@ static int device_open(struct net_device *dev) {
}

if (device_init_defrag_cb(pDevice)== FALSE) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " Initial defragement cb fail \n");
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " Initial defragment cb fail \n");
goto free_rx_tx;
}

Expand Down Expand Up @@ -1296,7 +1296,7 @@ static inline u32 ether_crc(int length, unsigned char *data)
return crc;
}

//find out the start position of str2 from str1
//find out the start position of str2 from str1
static unsigned char *kstrstr(const unsigned char *str1,
const unsigned char *str2) {
int str1_len = strlen(str1);
Expand Down Expand Up @@ -1345,7 +1345,7 @@ static int Config_FileGetParameter(unsigned char *string,
}

memset(buf2,0,100);
memcpy(buf2,start_p,end_p-start_p); //get the tartget line
memcpy(buf2,start_p,end_p-start_p); //get the target line
buf2[end_p-start_p]='\0';

//find value
Expand Down Expand Up @@ -1396,7 +1396,7 @@ static unsigned char *Config_FileOperation(PSDevice pDevice)
}

if(!(filp->f_op) || !(filp->f_op->read) ||!(filp->f_op->write)) {
printk("file %s cann't readable or writable?\n",config_path);
printk("file %s is not read or writeable?\n",config_path);
result = -1;
goto error1;
}
Expand Down Expand Up @@ -1969,7 +1969,7 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {

default:
rc = -EOPNOTSUPP;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Ioctl command not support..%x\n", cmd);
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Ioctl command not supported..%x\n", cmd);


}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6656/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* File: power.c
*
* Purpose: Handles 802.11 power management functions
* Purpose: Handles 802.11 power management functions
*
* Author: Lyndon Chen
*
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6656/rf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ BYTE abyArray[256];
wLength1,
abyArray
);
//Channle Table 0
//Channel Table 0
wValue = 0;
while ( wLength2 > 0 ) {

Expand Down Expand Up @@ -1106,7 +1106,7 @@ BYTE abyArray[256];
wLength1,
abyArray);

//Channle Table 0
//Channel Table 0
wValue = 0;
while ( wLength2 > 0 ) {

Expand Down
Loading

0 comments on commit 00fa790

Please sign in to comment.