staging: brcm80211: remove usage of macro WL11N_20MHZONLY
authorArend van Spriel <arend@broadcom.com>
Fri, 26 Aug 2011 13:19:30 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 26 Aug 2011 17:53:10 +0000 (10:53 -0700)
The macro WL11N_20MHZONLY is never defined so code #ifdef'ed by
it has been removed.

Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/include/brcmu_wifi.h

index 717d88542b724856c8f1857b3ae884ff9a2bbd30..0ab432d91d2a7b345d4014dc6f5da247a2c8a214 100644 (file)
 #define CHSPEC_CHANNEL(chspec) ((u8)((chspec) & WL_CHANSPEC_CHAN_MASK))
 #define CHSPEC_BAND(chspec)    ((chspec) & WL_CHANSPEC_BAND_MASK)
 
-#ifdef WL11N_20MHZONLY
-
-#define CHSPEC_CTL_SB(chspec)  WL_CHANSPEC_CTL_SB_NONE
-#define CHSPEC_BW(chspec)      WL_CHANSPEC_BW_20
-#define CHSPEC_IS10(chspec)    0
-#define CHSPEC_IS20(chspec)    1
-#ifndef CHSPEC_IS40
-#define CHSPEC_IS40(chspec)    0
-#endif
-
-#else                          /* !WL11N_20MHZONLY */
-
 #define CHSPEC_CTL_SB(chspec)  ((chspec) & WL_CHANSPEC_CTL_SB_MASK)
 #define CHSPEC_BW(chspec)      ((chspec) & WL_CHANSPEC_BW_MASK)
 
        (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_40)
 #endif
 
-#endif                         /* !WL11N_20MHZONLY */
-
 #define CHSPEC_IS5G(chspec) \
        (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_5G)