From: Alwin Beukers <[email protected]>

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 <[email protected]>
Reviewed-by: Roland Vossen <[email protected]>
Reviewed-by: Arend van Spriel <[email protected]>
Signed-off-by: Arend van Spriel <[email protected]>
---
 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;
-- 
1.7.4.1


_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to