]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: brcm80211: removed redundant code from brcms_c_set_gmode
authorAlwin Beukers <alwin@broadcom.com>
Tue, 4 Oct 2011 21:19:02 +0000 (23:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 5 Oct 2011 20:39:03 +0000 (13:39 -0700)
The comment says the rateset is being cleared when switching to GMODE_LEGACY_B,
but the code that follows it does not do so. Besides, the rateset is already
valid at this point.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/main.c

index 33497164ac6114a2558b3cbc0a558213bf81e861..9988e03b7cf513772735f2d039f00b552b82d7a0 100644 (file)
@@ -5965,13 +5965,6 @@ int brcms_c_set_gmode(struct brcms_c_info *wlc, u8 gmode, bool config)
                return -ENOTSUPP;
        }
 
-       /*
-        * If we are switching to gmode == GMODE_LEGACY_B,
-        * clean up rate info that may refer to OFDM rates.
-        */
-       if ((gmode == GMODE_LEGACY_B) && (band->gmode != GMODE_LEGACY_B))
-               band->gmode = gmode;
-
        band->gmode = gmode;
 
        wlc->shortslot_override = shortslot;