diff options
author | Alwin Beukers <alwin@broadcom.com> | 2011-10-04 23:19:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-05 13:39:03 -0700 |
commit | b2d62733e6ea427921e201269c1b55bca3a87936 (patch) | |
tree | b929ebae37d7a6144238c092835f9dced3f3f50b /drivers | |
parent | 96b74847813ace67a7778c9f0c86958b17b36d3c (diff) | |
download | op-kernel-dev-b2d62733e6ea427921e201269c1b55bca3a87936.zip op-kernel-dev-b2d62733e6ea427921e201269c1b55bca3a87936.tar.gz |
staging: brcm80211: removed redundant code from brcms_c_set_gmode
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/brcm80211/brcmsmac/main.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/brcm80211/brcmsmac/main.c b/drivers/staging/brcm80211/brcmsmac/main.c index 3349716..9988e03 100644 --- a/drivers/staging/brcm80211/brcmsmac/main.c +++ b/drivers/staging/brcm80211/brcmsmac/main.c @@ -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; |