One checkpatch warning was remaining in the brcmsmac driver. The
code has been restructured to get rid of this last checkpatch
warning.
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/* merge rateset coming in with the current mcsset */
if (N_ENAB(wlc->pub)) {
+ struct brcms_bss_info *mcsset_bss;
if (bsscfg->associated)
- memcpy(rs.mcs,
- ¤t_bss->rateset.mcs[0],
- MCSSET_LEN);
+ mcsset_bss = current_bss;
else
- memcpy(rs.mcs,
- &wlc->default_bss->rateset.mcs[0],
- MCSSET_LEN);
+ mcsset_bss = wlc->default_bss;
+ memcpy(rs.mcs, &mcsset_bss->rateset.mcs[0],
+ MCSSET_LEN);
}
bcmerror = brcms_c_set_rateset(wlc, &rs);