Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219626
b: refs/heads/master
c: 465711b
h: refs/heads/master
v: v3
  • Loading branch information
Andres More authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 91e8a41 commit c10ae39
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 67 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: 13b631a599cddabc1cbb3a2fb862aee5ceb6e427
refs/heads/master: 465711b39d2fb326c5be27a4f69f70b2a41612cf
10 changes: 5 additions & 5 deletions trunk/drivers/staging/vt6656/80211mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
#define WLAN_EID_RSN_WPA 221

#ifdef Cisco_ccx
#define WLAN_EID_CCX 133 //DavidWang
#define WLAN_EID_CCX_IP 149 //DavidWang
#define WLAN_EID_CCX_Ver 221 //DavidWang
#define WLAN_EID_CCX 133
#define WLAN_EID_CCX_IP 149
#define WLAN_EID_CCX_Ver 221
#endif

#define WLAN_EID_ERP_NONERP_PRESENT 0x01
Expand Down Expand Up @@ -348,7 +348,7 @@ typedef struct tagWLAN_IE_RSN {
BYTE abyRSN[WLAN_MIN_ARRAY];
} WLAN_IE_RSN, *PWLAN_IE_RSN;

//DavidWang

// CCX Identity DavidWang
#pragma pack(1)
typedef struct tagWLAN_IE_CCX {
Expand All @@ -371,7 +371,7 @@ BYTE len;
BYTE abyCCXVer[5];
} WLAN_IE_CCX_Ver, *PWLAN_IE_CCX_Ver;

//DavidWang


// ERP
#pragma pack(1)
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/vt6656/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,11 +1010,9 @@ BOOL BBbVT3184Init(PSDevice pDevice)
}


//20080215-01,<Add> by Mike Liu
// if ((pDevice->abyEEPROM[EEP_OFS_RADIOCTL]&0x06)==0x04)
// return FALSE;

//20080804-01,<Add> by Mike Liu
//zonetype initial
pDevice->byOriginalZonetype = pDevice->abyEEPROM[EEP_OFS_ZONETYPE];
if(pDevice->config_file.ZoneType >= 0) { //read zonetype file ok!
Expand Down
14 changes: 6 additions & 8 deletions trunk/drivers/staging/vt6656/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ PKnownBSS BSSpSearchBSSList(void *hDeviceContext,
for (ii = 0; ii <MAX_BSS_NUM; ii++) {
pCurrBSS = &(pMgmt->sBSSList[ii]);

//2008-0718-01<Add>by MikeLiu
pCurrBSS->bSelected = FALSE;

if ((pCurrBSS->bActive) &&
Expand Down Expand Up @@ -188,7 +187,6 @@ PKnownBSS BSSpSearchBSSList(void *hDeviceContext,
// if ((pCurrBSS->bActive) &&
// (pCurrBSS->bSelected == FALSE)) {

//2007-0721-01<Add>by MikeLiu
pCurrBSS->bSelected = FALSE;
if (pCurrBSS->bActive) {

Expand Down Expand Up @@ -238,12 +236,12 @@ PKnownBSS BSSpSearchBSSList(void *hDeviceContext,
}
}
*/
//DavidWang

pMgmt->pSameBSS[jj].uChannel = pCurrBSS->uChannel;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"BSSpSearchBSSList pSelect1[%02X %02X %02X-%02X %02X %02X]\n",*pCurrBSS->abyBSSID,*(pCurrBSS->abyBSSID+1),*(pCurrBSS->abyBSSID+2),*(pCurrBSS->abyBSSID+3),*(pCurrBSS->abyBSSID+4),*(pCurrBSS->abyBSSID+5));
jj++;

//DavidWang

if (pSelect == NULL) {
pSelect = pCurrBSS;
} else {
Expand All @@ -254,9 +252,9 @@ PKnownBSS BSSpSearchBSSList(void *hDeviceContext,
}
}
}
//DavidWang

pDevice->bSameBSSMaxNum = jj;
//DavidWang

if (pSelect != NULL) {
pSelect->bSelected = TRUE;
if (pDevice->bRoaming == FALSE) {
Expand Down Expand Up @@ -956,7 +954,7 @@ void BSSvSecondCallBack(void *hDeviceContext)
unsigned int uSleepySTACnt = 0;
unsigned int uNonShortSlotSTACnt = 0;
unsigned int uLongPreambleSTACnt = 0;
viawget_wpa_header *wpahdr; //DavidWang
viawget_wpa_header *wpahdr;

spin_lock_irq(&pDevice->lock);

Expand Down Expand Up @@ -1180,7 +1178,7 @@ if((pMgmt->eCurrState!=WMAC_STATE_ASSOC) &&
pDevice->bIsRoaming = FALSE;

DBG_PRT(MSG_LEVEL_NOTICE, KERN_INFO "Lost AP beacon [%d] sec, disconnected !\n", pMgmt->sNodeDBTable[0].uInActiveCount);
//let wpa supplicant know AP may disconnect.//20080717-01,<Add> by James Li
/* let wpa supplicant know AP may disconnect */
if ((pDevice->bWPADEVUp) && (pDevice->skb != NULL)) {
wpahdr = (viawget_wpa_header *)pDevice->skb->data;
wpahdr->type = VIAWGET_DISASSOC_MSG;
Expand Down
11 changes: 5 additions & 6 deletions trunk/drivers/staging/vt6656/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -713,11 +713,11 @@ typedef struct __device_info {
BOOL bCmdClear;
BOOL bNeedRadioOFF;

BOOL bEnableRoaming; //DavidWang
BOOL bIsRoaming; //DavidWang
BOOL bFastRoaming; //DavidWang
BYTE bSameBSSMaxNum; //Davidwang
BYTE bSameBSSCurNum; //DavidWang
BOOL bEnableRoaming;
BOOL bIsRoaming;
BOOL bFastRoaming;
BYTE bSameBSSMaxNum;
BYTE bSameBSSCurNum;
BOOL bRoaming;
BOOL b11hEable;
unsigned long ulTxPower;
Expand All @@ -726,7 +726,6 @@ typedef struct __device_info {
NDIS_802_11_WEP_STATUS eEncryptionStatus;
BOOL bTransmitKey;

//2007-0925-01<Add>by MikeLiu
//mike add :save old Encryption
NDIS_802_11_WEP_STATUS eOldEncryptionStatus;

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/vt6656/dpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,6 @@ RXbBulkInProcessData (
pDevice->dev->name);
}
}
//2008-0409-07, <Add> by Einsn Liu
#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
//send event to wpa_supplicant
//if(pDevice->bWPASuppWextEnabled == TRUE)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6656/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) {
pMgmt->Cisco_cckm =1;
else
pMgmt->Cisco_cckm =0;
//DavidWang


if(wpa_Result.authenticated==TRUE) {
{
Expand Down
15 changes: 2 additions & 13 deletions trunk/drivers/staging/vt6656/iwctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

/*--------------------- Static Definitions -------------------------*/

//2008-0409-07, <Add> by Einsn Liu
#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
#define SUPPORTED_WIRELESS_EXT 18
#else
Expand Down Expand Up @@ -155,7 +154,6 @@ int iwctl_siwscan(struct net_device *dev,
BYTE abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
PWLAN_IE_SSID pItemSSID=NULL;

//2008-0920-01<Add>by MikeLiu
if (!(pDevice->flags & DEVICE_FLAGS_OPENED))
return -EINVAL;

Expand Down Expand Up @@ -285,7 +283,6 @@ int iwctl_giwscan(struct net_device *dev,
iwe.u.freq.e = 0;
iwe.u.freq.i = 0;
current_ev = iwe_stream_add_event(info,current_ev,end_buf, &iwe, IW_EV_FREQ_LEN);
//2008-0409-04, <Add> by Einsn Liu
{
int f = (int)pBSS->uChannel - 1;
if(f < 0)f = 0;
Expand All @@ -299,7 +296,7 @@ int iwctl_giwscan(struct net_device *dev,
RFvRSSITodBm(pDevice, (BYTE)(pBSS->uRSSI), &ldBm);
iwe.u.qual.level = ldBm;
iwe.u.qual.noise = 0;
//2008-0409-01, <Add> by Einsn Liu

if(-ldBm<50){
iwe.u.qual.qual = 100;
}else if(-ldBm > 90) {
Expand Down Expand Up @@ -803,7 +800,6 @@ int iwctl_siwessid(struct net_device *dev,
PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
PWLAN_IE_SSID pItemSSID;

//2008-0920-01<Add>by MikeLiu
if (!(pDevice->flags & DEVICE_FLAGS_OPENED))
return -EINVAL;

Expand Down Expand Up @@ -931,11 +927,10 @@ int iwctl_giwessid(struct net_device *dev,
//pItemSSID = (PWLAN_IE_SSID)pMgmt->abyDesireSSID;
memcpy(extra, pItemSSID->abySSID , pItemSSID->len);
extra[pItemSSID->len] = '\0';
//2008-0409-03, <Add> by Einsn Liu

wrq->length = pItemSSID->len;
wrq->flags = 1; // active


return 0;
}

Expand Down Expand Up @@ -1392,8 +1387,6 @@ int iwctl_giwencode(struct net_device *dev,
}
*/

//2008-0409-06, <Add> by Einsn Liu

int iwctl_giwencode(struct net_device *dev,
struct iw_request_info *info,
struct iw_point *wrq,
Expand Down Expand Up @@ -1561,7 +1554,6 @@ int iwctl_giwsens(struct net_device *dev,
return 0;
}

//2008-0409-07, <Add> by Einsn Liu
#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT

int iwctl_siwauth(struct net_device *dev,
Expand Down Expand Up @@ -1934,9 +1926,6 @@ int iwctl_siwmlme(struct net_device *dev,
}

#endif
//End Add --//2008-0409-07, <Add> by Einsn Liu



/*------------------------------------------------------------------*/
/*
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/vt6656/iwctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ int iwctl_siwscan(struct net_device *dev,
struct iw_param *wrq,
char *extra);

//2008-0409-07, <Add> by Einsn Liu
#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
int iwctl_siwauth(struct net_device *dev,
struct iw_request_info *info,
Expand Down Expand Up @@ -215,8 +214,6 @@ int iwctl_siwmlme(struct net_device *dev,
struct iw_point *wrq,
char *extra);
#endif // #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
//End Add -- //2008-0409-07, <Add> by Einsn Liu


extern const struct iw_handler_def iwctl_handler_def;
extern const struct iw_priv_args iwctl_private_args;
Expand Down
18 changes: 5 additions & 13 deletions trunk/drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ static int Config_FileGetParameter(unsigned char *string,
unsigned char *dest,
unsigned char *source);

//2008-0714<Add>by Mike Liu
static BOOL device_release_WPADEV(PSDevice pDevice);

static void usb_device_reset(PSDevice pDevice);
Expand Down Expand Up @@ -869,7 +868,6 @@ static void device_free_rx_bufs(PSDevice pDevice)
return;
}

//2007-1107-02<Add>by MikeLiu
static void usb_device_reset(PSDevice pDevice)
{
int status;
Expand Down Expand Up @@ -1091,8 +1089,8 @@ static int device_open(struct net_device *dev) {
memcpy(pDevice->dev->dev_addr, pDevice->abyCurrentNetAddr, ETH_ALEN);
pDevice->bStopTx0Pkt = FALSE;
pDevice->bStopDataPkt = FALSE;
pDevice->bRoaming = FALSE; //DavidWang
pDevice->bIsRoaming = FALSE;//DavidWang
pDevice->bRoaming = FALSE;
pDevice->bIsRoaming = FALSE;
pDevice->bEnableRoaming = FALSE;
if (pDevice->bDiversityRegCtlON) {
device_init_diversity_timer(pDevice);
Expand Down Expand Up @@ -1195,14 +1193,11 @@ static int device_close(struct net_device *dev) {
wireless_send_event(pDevice->dev, IWEVCUSTOM, &wrqu, NULL);
}

//2007-1121-02<Add>by EinsnLiu
if (pDevice->bLinkPass) {
bScheduleCommand((void *) pDevice, WLAN_CMD_DISASSOCIATE, NULL);
mdelay(30);
}
//End Add

//2008-0714-01<Add>by MikeLiu
device_release_WPADEV(pDevice);

memset(pMgmt->abyDesireSSID, 0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1);
Expand Down Expand Up @@ -1236,8 +1231,8 @@ device_release_WPADEV(pDevice);
tasklet_kill(&pDevice->ReadWorkItem);
tasklet_kill(&pDevice->EventWorkItem);

pDevice->bRoaming = FALSE; //DavidWang
pDevice->bIsRoaming = FALSE;//DavidWang
pDevice->bRoaming = FALSE;
pDevice->bIsRoaming = FALSE;
pDevice->bEnableRoaming = FALSE;
pDevice->bCmdRunning = FALSE;
pDevice->bLinkPass = FALSE;
Expand Down Expand Up @@ -1914,11 +1909,9 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {
*/
break;


//2008-0409-07, <Add> by Einsn Liu
#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
case SIOCSIWAUTH:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWAUTH \n");
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWAUTH\n");
rc = iwctl_siwauth(dev, NULL, &(wrq->u.param), NULL);
break;

Expand Down Expand Up @@ -1970,7 +1963,6 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {
break;

#endif // #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
//End Add -- //2008-0409-07, <Add> by Einsn Liu

case IOCTL_CMD_TEST:

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6656/wcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void vRunCommand(void *hDeviceContext)
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Scanning, set back to channel: [%d]\n", pMgmt->uCurrChannel);
pMgmt->eScanState = WMAC_NO_SCANNING;
pDevice->bStopDataPkt = FALSE;
//2008-0409-07, <Add> by Einsn Liu

#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
if(pMgmt->eScanType == WMAC_SCAN_PASSIVE)
{
Expand Down Expand Up @@ -876,7 +876,7 @@ void vRunCommand(void *hDeviceContext)
// CARDbRadioPowerOn(pDevice);
// else
// CARDbRadioPowerOff(pDevice);
//2008-09-09<Add> BY Mike:Hot Key for Radio On/Off

{
int ntStatus = STATUS_SUCCESS;
BYTE byTmp;
Expand Down
11 changes: 4 additions & 7 deletions trunk/drivers/staging/vt6656/wmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG;

/*--------------------- Static Functions --------------------------*/
//2008-0730-01<Add>by MikeLiu

static BOOL ChannelExceedZoneType(
PSDevice pDevice,
BYTE byCurrChannel
Expand Down Expand Up @@ -997,7 +997,7 @@ s_vMgrRxAssocResponse(
netif_rx(pDevice->skb);
pDevice->skb = dev_alloc_skb((int)pDevice->rx_buf_sz);
}
//2008-0409-07, <Add> by Einsn Liu

#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
//if(pDevice->bWPASuppWextEnabled == TRUE)
{
Expand Down Expand Up @@ -1038,7 +1038,7 @@ s_vMgrRxAssocResponse(

}
#endif //#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
//End Add -- //2008-0409-07, <Add> by Einsn Liu

}
else {
if (bReAssocType) {
Expand Down Expand Up @@ -1745,7 +1745,6 @@ s_vMgrRxDeauthentication(
return;
}

//2008-0730-01<Add>by MikeLiu
/*+
*
* Routine Description:
Expand Down Expand Up @@ -1868,7 +1867,6 @@ s_vMgrRxBeacon(
}
}

//2008-0730-01<Add>by MikeLiu
if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE)
return;

Expand Down Expand Up @@ -4240,7 +4238,6 @@ s_vMgrRxProbeResponse(
}
//RobertYu:20050201

//2008-0730-01<Add>by MikeLiu
if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE)
return;

Expand Down Expand Up @@ -4768,7 +4765,7 @@ s_bCipherMatch (

if ((WLAN_GET_CAP_INFO_PRIVACY(pBSSNode->wCapInfo) != 0) &&
(pBSSNode->bWPA2Valid == TRUE) &&
//20080123-01,<Add> by Einsn Liu

((EncStatus == Ndis802_11Encryption3Enabled) ||
(EncStatus == Ndis802_11Encryption2Enabled))) {
//WPA2
Expand Down
Loading

0 comments on commit c10ae39

Please sign in to comment.