Skip to content

Commit

Permalink
Staging: vt665x: Clean up include files, Part 2
Browse files Browse the repository at this point in the history
Remove cplusplus lines from include files
Remove needless ifdefs on includes to conform with C
conventions.  Remove misc commented code/includes
Update TODO

Signed-off-by: Jim Lieb <lieb@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jim Lieb authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 9d26d60 commit a7ad322
Show file tree
Hide file tree
Showing 74 changed files with 11 additions and 1,132 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/vt6655/80211hdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@
*
*/



#ifndef __80211HDR_H__
#define __80211HDR_H__


#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif

/*--------------------- Export Definitions -------------------------*/
// bit type
Expand Down
16 changes: 0 additions & 16 deletions drivers/staging/vt6655/80211mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,12 @@
*
*/



#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__TETHER_H__)
#include "tether.h"
#endif
#if !defined(__80211MGR_H__)
#include "80211mgr.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif
#if !defined(__DEVICE_H__)
#include "device.h"
#endif
#if !defined(__WPA_H__)
#include "wpa.h"
#endif



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

Expand Down
7 changes: 1 addition & 6 deletions drivers/staging/vt6655/80211mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,11 @@
*
*/


#ifndef __80211MGR_H__
#define __80211MGR_H__

#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif


/*--------------------- Export Definitions -------------------------*/

Expand Down Expand Up @@ -719,6 +713,7 @@ typedef struct tagWLAN_FR_DEAUTHEN {
} WLAN_FR_DEAUTHEN, *PWLAN_FR_DEAUTHEN;

/*--------------------- Export Functions --------------------------*/

VOID
vMgrEncodeBeacon(
IN PWLAN_FR_BEACON pFrame
Expand Down
20 changes: 0 additions & 20 deletions drivers/staging/vt6655/IEEE11h.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,14 @@
*
*/


#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif
#if !defined(__UMEM_H__)
#include "umem.h"
#endif
#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__TETHER_H__)
#include "tether.h"
#endif
#if !defined(__IEEE11h_H__)
#include "IEEE11h.h"
#endif

#if !defined(__DEVICE_H__)
#include "device.h"
#endif
#if !defined(__WMGR_H__)
#include "wmgr.h"
#endif
#if !defined(__RXTX_H__)
#include "rxtx.h"
#endif



/*--------------------- Static Definitions -------------------------*/
static int msglevel =MSG_LEVEL_INFO;
Expand Down
16 changes: 0 additions & 16 deletions drivers/staging/vt6655/IEEE11h.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,9 @@
#ifndef __IEEE11h_H__
#define __IEEE11h_H__


#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif
#if !defined(__80211MGR_H__)
#include "80211mgr.h"
#endif


/*--------------------- Export Definitions -------------------------*/

Expand All @@ -52,17 +44,9 @@
/*--------------------- Export Types ------------------------------*/

/*--------------------- Export Functions --------------------------*/
#ifdef __cplusplus
extern "C" { /* Assume C declarations for C++ */
#endif /* __cplusplus */

BOOL IEEE11hbMSRRepTx (
IN PVOID pMgmtHandle
);

#ifdef __cplusplus
} /* End of extern "C" { */
#endif /* __cplusplus */


#endif // __IEEE11h_H__
4 changes: 2 additions & 2 deletions drivers/staging/vt6655/TODO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TODO:
- remove __cplusplus ifdefs
- remove __cplusplus ifdefs -- done
- prepare for merge with vt6656 driver:
- rename DEVICE_PRT() to DBG_PRT()
- rename DEVICE_PRT() to DBG_PRT() -- done
- share 80211*.h includes
- move code for channel mapping from card.c to channel.c
- split rf.c
Expand Down
7 changes: 0 additions & 7 deletions drivers/staging/vt6655/aes_ccmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,9 @@
*
*/

#if !defined(__UMEM_H__)
#include "umem.h"
#endif
#if !defined(__DEVICE_H__)
#include "device.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif


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

Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/vt6655/aes_ccmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#ifndef __AES_H__
#define __AES_H__

#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif

/*--------------------- Export Definitions -------------------------*/

Expand Down
17 changes: 0 additions & 17 deletions drivers/staging/vt6655/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,14 @@
*
*/


#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__TBIT_H__)
#include "tbit.h"
#endif
#if !defined(__TETHER_H__)
#include "tether.h"
#endif
#if !defined(__MAC_H__)
#include "mac.h"
#endif
#if !defined(__BASEBAND_H__)
#include "baseband.h"
#endif
#if !defined(__SROM_H__)
#include "srom.h"
#endif
#if !defined(__UMEM_H__)
#include "umem.h"
#endif
#if !defined(__RF_H__)
#include "rf.h"
#endif

/*--------------------- Static Definitions -------------------------*/
//static int msglevel =MSG_LEVEL_DEBUG;
Expand Down
18 changes: 0 additions & 18 deletions drivers/staging/vt6655/baseband.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,9 @@
#ifndef __BASEBAND_H__
#define __BASEBAND_H__

#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif

#if !defined(__TETHER_H__)
#include "tether.h"
#endif

#if !defined(__DEVICE_H__)
#include "device.h"
#endif


/*--------------------- Export Definitions -------------------------*/

Expand Down Expand Up @@ -126,9 +117,6 @@
/*--------------------- Export Variables --------------------------*/

/*--------------------- Export Functions --------------------------*/
#ifdef __cplusplus
extern "C" { /* Assume C declarations for C++ */
#endif /* __cplusplus */

UINT
BBuGetFrameTime(
Expand Down Expand Up @@ -186,10 +174,4 @@ void BBvAntennaDiversity(PSDevice pDevice, BYTE byRxRate, BYTE bySQ3);
VOID
BBvClearAntDivSQ3Value (PSDevice pDevice);


#ifdef __cplusplus
} /* End of extern "C" { */
#endif /* __cplusplus */


#endif // __BASEBAND_H__
40 changes: 0 additions & 40 deletions drivers/staging/vt6655/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,65 +39,25 @@
*
*/


#if !defined(__TBIT_H__)
#include "tbit.h"
#endif//chester
#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif
#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__TETHER_H__)
#include "tether.h"
#endif
#if !defined(__DEVICE_H__)
#include "device.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif
#if !defined(__BSSDB_H__)
#include "bssdb.h"
#endif
#if !defined(__WMGR_H__)
#include "wmgr.h"
#endif
#if !defined(__DATARATE_H__)
#include "datarate.h"
#endif
#if !defined(__DESC_H__)
#include "desc.h"
#endif
#if !defined(__WCMD_H__)
#include "wcmd.h"
#endif
#if !defined(__WPA_H__)
#include "wpa.h"
#endif
#if !defined(__BASEBAND_H__)
#include "baseband.h"
#endif
#if !defined(__RF_H__)
#include "rf.h"
#endif
#if !defined(__CARD_H__)
#include "card.h"
#endif
#if !defined(__MAC_H__)
#include "mac.h"
#endif
#if !defined(__WPA2_H__)
#include "wpa2.h"
#endif
#if !defined(__UMEM_H__)
#include "umem.h"
#endif
//DavidWang
#if !defined(__IOWPA_H__)
#include "iowpa.h"
#endif

//#define PLICE_DEBUG
/*--------------------- Static Definitions -------------------------*/
Expand Down
13 changes: 0 additions & 13 deletions drivers/staging/vt6655/bssdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,10 @@
#ifndef __BSSDB_H__
#define __BSSDB_H__

//#if !defined(__DEVICE_H__)
//#include "device.h"
//#endif

#include <linux/skbuff.h>

#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif
#if !defined(__80211MGR_H__)
#include "80211mgr.h"
#endif
#if !defined(__CARD_H__)
#include "card.h"
#endif



/*--------------------- Export Definitions -------------------------*/

Expand Down
28 changes: 0 additions & 28 deletions drivers/staging/vt6655/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,47 +45,19 @@
*
*/

#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__CARD_H__)
#include "card.h"
#endif
#if !defined(__TBIT_H__)
#include "tbit.h"
#endif
#if !defined(__BASEBAND_H__)
#include "baseband.h"
#endif
#if !defined(__MAC_H__)
#include "mac.h"
#endif
#if !defined(__DESC_H__)
#include "desc.h"
#endif
#if !defined(__RF_H__)
#include "rf.h"
#endif
#if !defined(__VNTWIFI_H__)
#include "vntwifi.h"
#endif
#if !defined(__POWER_H__)
#include "power.h"
#endif
#if !defined(__KEY_H__)
#include "key.h"
#endif
#if !defined(__RC4_H__)
#include "rc4.h"
#endif
#if !defined(__COUNTRY_H__)
#include "country.h"
#endif
#if !defined(__UMEM_H__)
#include "umem.h"
#endif



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

Expand Down
Loading

0 comments on commit a7ad322

Please sign in to comment.