|
@@ -1069,11 +1069,7 @@ static struct brcms_info *brcms_attach(struct bcma_device *pdev)
|
|
|
wiphy_err(wl->wiphy, "%s: ieee80211_register_hw failed, status"
|
|
|
"%d\n", __func__, err);
|
|
|
|
|
|
- if (wl->pub->srom_ccode[0])
|
|
|
- err = brcms_set_hint(wl, wl->pub->srom_ccode);
|
|
|
- else
|
|
|
- err = brcms_set_hint(wl, "US");
|
|
|
- if (err)
|
|
|
+ if (wl->pub->srom_ccode[0] && brcms_set_hint(wl, wl->pub->srom_ccode))
|
|
|
wiphy_err(wl->wiphy, "%s: regulatory_hint failed, status %d\n",
|
|
|
__func__, err);
|
|
|
|