On 12/10/2019 6:38, Soeren Moch wrote: > 4359 dongles do not support setting roaming parameters (error -52). > Do not fail the 80211 configuration in this case. > > Signed-off-by: Soeren Moch <smoch@xxxxxx> Acked-by: Chi-Hsien Lin <chi-hsien.lin@xxxxxxxxxxx> > --- > Cc: Kalle Valo <kvalo@xxxxxxxxxxxxxx> > Cc: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx> > Cc: Franky Lin <franky.lin@xxxxxxxxxxxx> > Cc: Hante Meuleman <hante.meuleman@xxxxxxxxxxxx> > Cc: Chi-Hsien Lin <chi-hsien.lin@xxxxxxxxxxx> > Cc: Wright Feng <wright.feng@xxxxxxxxxxx> > Cc: linux-wireless@xxxxxxxxxxxxxxx > Cc: brcm80211-dev-list.pdl@xxxxxxxxxxxx > Cc: brcm80211-dev-list@xxxxxxxxxxx > Cc: netdev@xxxxxxxxxxxxxxx > Cc: linux-kernel@xxxxxxxxxxxxxxx > --- > .../wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c > index 5598bbd09b62..0cf13cea1dbe 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c > @@ -6012,19 +6012,17 @@ static s32 brcmf_dongle_roam(struct brcmf_if *ifp) > roamtrigger[1] = cpu_to_le32(BRCM_BAND_ALL); > err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_ROAM_TRIGGER, > (void *)roamtrigger, sizeof(roamtrigger)); > - if (err) { > + if (err) > bphy_err(drvr, "WLC_SET_ROAM_TRIGGER error (%d)\n", err); > - goto roam_setup_done; > - } > > roam_delta[0] = cpu_to_le32(WL_ROAM_DELTA); > roam_delta[1] = cpu_to_le32(BRCM_BAND_ALL); > err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_ROAM_DELTA, > (void *)roam_delta, sizeof(roam_delta)); > - if (err) { > + if (err) > bphy_err(drvr, "WLC_SET_ROAM_DELTA error (%d)\n", err); > - goto roam_setup_done; > - } > + > + return 0; > > roam_setup_done: > return err; > -- > 2.17.1 > > . >