Skip to content

Commit

Permalink
staging: vt6656: removed Adhoc_STA definition
Browse files Browse the repository at this point in the history
Removed an always defined macro, perhaps used to patch the driver

Signed-off-by: Andres More <more.andres@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Andres More authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent 6874674 commit 5926b9a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/vt6656/ttype.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@

/******* Common definitions and typedefs ***********************************/

//2008-0131-02<Add>by MikeLiu
#ifndef Adhoc_STA
#define Adhoc_STA
#endif

typedef int BOOL;

#if !defined(TRUE)
Expand Down
4 changes: 1 addition & 3 deletions drivers/staging/vt6656/wcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,9 @@ void vRunCommand(void *hDeviceContext)
return;
}

//20080131-03,<Add> by Mike Liu
#ifdef Adhoc_STA
memcpy(pMgmt->abyAdHocSSID,pMgmt->abyDesireSSID,
((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->len + WLAN_IEHDR_LEN);
#endif

pItemSSID = (PWLAN_IE_SSID)pMgmt->abyDesireSSID;
pItemSSIDCurr = (PWLAN_IE_SSID)pMgmt->abyCurrSSID;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" cmd: desire ssid = %s\n", pItemSSID->abySSID);
Expand Down
3 changes: 0 additions & 3 deletions drivers/staging/vt6656/wmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2467,11 +2467,8 @@ void vMgrCreateOwnIBSS(void *hDeviceContext,
pDevice->uCurrRSSI = 0;
pDevice->byCurrSQ = 0;

//20080131-04,<Add> by Mike Liu
#ifdef Adhoc_STA
memcpy(pMgmt->abyDesireSSID,pMgmt->abyAdHocSSID,
((PWLAN_IE_SSID)pMgmt->abyAdHocSSID)->len + WLAN_IEHDR_LEN);
#endif

memset(pMgmt->abyCurrSSID, 0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1);
memcpy(pMgmt->abyCurrSSID,
Expand Down
3 changes: 0 additions & 3 deletions drivers/staging/vt6656/wmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,7 @@ typedef struct tagSMgmtObject
BYTE abyDesireBSSID[WLAN_BSSID_LEN];

//restore BSS info for Ad-Hoc mode
//20080131-05,<Add> by Mike Liu
#ifdef Adhoc_STA
BYTE abyAdHocSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
#endif

// Adhoc or AP configuration vars
WORD wIBSSBeaconPeriod;
Expand Down

0 comments on commit 5926b9a

Please sign in to comment.