Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141190
b: refs/heads/master
c: ea045ba
h: refs/heads/master
v: v3
  • Loading branch information
Moritz Muehlenhoff authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 147673c commit df0778c
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 49 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: 40a67411debb802a4e8d03f0c435a7495a8fc8c4
refs/heads/master: ea045ba02086c008505ab1a6a7a60856072be65f
8 changes: 0 additions & 8 deletions trunk/drivers/staging/wlan-ng/hfa384x_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@

/*================================================================*/
/* System Includes */
#define WLAN_DBVAR prism2_debug

#include <linux/version.h>

Expand Down Expand Up @@ -170,13 +169,6 @@ typedef enum cmd_mode CMD_MODE;

#define ROUNDUP64(a) (((a)+63)&~63)

/*================================================================*/
/* Local Types */

/*================================================================*/
/* Local Static Definitions */
extern int prism2_debug;

/*================================================================*/
/* Local Function Declarations */

Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/staging/wlan-ng/p80211netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ int wlan_wext_write = 1;
module_param(wlan_wext_write, int, 0644);
MODULE_PARM_DESC(wlan_wext_write, "enable write wireless extensions");

#ifdef WLAN_INCLUDE_DEBUG
int wlan_debug=0;
module_param(wlan_debug, int, 0644);
MODULE_PARM_DESC(wlan_debug, "p80211 debug level");
#endif

/*================================================================*/
/* Function Definitions */

Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/wlan-ng/prism2mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@

/*================================================================*/
/* System Includes */
#define WLAN_DBVAR prism2_debug


#include <linux/if_arp.h>
#include <linux/module.h>
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/wlan-ng/prism2mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
/*=============================================================*/
/*------ Static variable externs ------------------------------*/

extern int prism2_debug;
extern int prism2_reset_holdtime;
extern int prism2_reset_settletime;
/*=============================================================*/
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/wlan-ng/prism2mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

/*================================================================*/
/* System Includes */
#define WLAN_DBVAR prism2_debug

#include <linux/version.h>

Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/staging/wlan-ng/prism2sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

/*================================================================*/
/* System Includes */
#define WLAN_DBVAR prism2_debug

#include <linux/version.h>
#include <linux/module.h>
Expand Down Expand Up @@ -115,12 +114,6 @@ int prism2_reset_settletime=100; /* Reset settle time in ms */

static int prism2_doreset=0; /* Do a reset at init? */

#ifdef WLAN_INCLUDE_DEBUG
int prism2_debug=0;
module_param( prism2_debug, int, 0644);
MODULE_PARM_DESC(prism2_debug, "prism2 debugging");
#endif

module_param( prism2_doreset, int, 0644);
MODULE_PARM_DESC(prism2_doreset, "Issue a reset on initialization");

Expand Down
28 changes: 5 additions & 23 deletions trunk/drivers/staging/wlan-ng/wlan_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,20 @@
#ifndef _WLAN_COMPAT_H
#define _WLAN_COMPAT_H

#undef netdevice_t
typedef struct net_device netdevice_t;

/*=============================================================*/
/*------ OS Portability Macros --------------------------------*/
/*=============================================================*/

#ifndef WLAN_DBVAR
#define WLAN_DBVAR wlan_debug
#endif

#include <linux/hardirq.h>
#include <linux/ctype.h>

#if defined(WLAN_INCLUDE_DEBUG)
#define WLAN_HEX_DUMP( l, x, p, n) if( WLAN_DBVAR >= (l) ){ \
int __i__; \
printk(KERN_DEBUG x ":"); \
for( __i__=0; __i__ < (n); __i__++) \
printk( " %02x", ((u8*)(p))[__i__]); \
printk("\n"); }

#define WLAN_LOG_DEBUG(l,x,args...) if ( WLAN_DBVAR >= (l)) printk(KERN_DEBUG "%s(%lu): " x , __func__, (preempt_count() & PREEMPT_MASK), ##args );
#else
#define WLAN_HEX_DUMP( l, s, p, n)
#define WLAN_HEX_DUMP( l, s, p, n)

#define WLAN_LOG_DEBUG(l, s, args...)
#endif

#undef netdevice_t
typedef struct net_device netdevice_t;
#define WLAN_LOG_DEBUG(l, s, args...)

/*=============================================================*/
/*--- General Macros ------------------------------------------*/
Expand Down Expand Up @@ -108,8 +94,4 @@ typedef struct net_device netdevice_t;
/*--- Variables -----------------------------------------------*/
/*=============================================================*/

#ifdef WLAN_INCLUDE_DEBUG
extern int wlan_debug;
#endif

#endif /* _WLAN_COMPAT_H */

0 comments on commit df0778c

Please sign in to comment.