|
@@ -6477,8 +6477,7 @@ static int brcmf_setup_wiphy(struct wiphy *wiphy, struct brcmf_if *ifp)
|
|
wiphy->bands[NL80211_BAND_5GHZ] = band;
|
|
wiphy->bands[NL80211_BAND_5GHZ] = band;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- err = brcmf_setup_wiphybands(wiphy);
|
|
|
|
- return err;
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static s32 brcmf_config_dongle(struct brcmf_cfg80211_info *cfg)
|
|
static s32 brcmf_config_dongle(struct brcmf_cfg80211_info *cfg)
|
|
@@ -6843,6 +6842,12 @@ struct brcmf_cfg80211_info *brcmf_cfg80211_attach(struct brcmf_pub *drvr,
|
|
goto priv_out;
|
|
goto priv_out;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ err = brcmf_setup_wiphybands(wiphy);
|
|
|
|
+ if (err) {
|
|
|
|
+ brcmf_err("Setting wiphy bands failed (%d)\n", err);
|
|
|
|
+ goto wiphy_unreg_out;
|
|
|
|
+ }
|
|
|
|
+
|
|
/* If cfg80211 didn't disable 40MHz HT CAP in wiphy_register(),
|
|
/* If cfg80211 didn't disable 40MHz HT CAP in wiphy_register(),
|
|
* setup 40MHz in 2GHz band and enable OBSS scanning.
|
|
* setup 40MHz in 2GHz band and enable OBSS scanning.
|
|
*/
|
|
*/
|