Skip to content

Commit

Permalink
Staging: w35und: Kill _USE_FALLBACK_RATE_ macro
Browse files Browse the repository at this point in the history
The _USE_FALLBACK_RATE_ macro parametrizes DEFAULT_RATE_RETRY_LIMIT. It's only
used in Mxx_initial() in reg.c where _USE_FALLBACK_RATE_ is always defined
because the reg.c file includes sysdef.h at the top. It's therefore safe to
remove the _USE_FALLBACK_RATE_ macro.

Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Dec 1, 2010
1 parent ac5435b commit 1140bd9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/winbond/sysdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#ifndef SYS_DEF_H
#define SYS_DEF_H

#define _USE_FALLBACK_RATE_

#define _WPA2_

/* debug print options, mark what debug you don't need */
Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/winbond/wb35reg_s.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ struct hw_data;
#define DEFAULT_CWMAX 1023 /* (M2C) CWmax. Its value is in the range 0-1023. */
#define DEFAULT_AID 1 /* (M34) AID. Its value is in the range 1-2007. */

#ifdef _USE_FALLBACK_RATE_
#define DEFAULT_RATE_RETRY_LIMIT 2 /* (M38) as named */
#else
#define DEFAULT_RATE_RETRY_LIMIT 7 /* (M38) as named */
#endif

#define DEFAULT_LONG_RETRY_LIMIT 7 /* (M38) LongRetryLimit. Its value is in the range 0-15. */
#define DEFAULT_SHORT_RETRY_LIMIT 7 /* (M38) ShortRetryLimit. Its value is in the range 0-15. */
Expand Down

0 comments on commit 1140bd9

Please sign in to comment.