Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300955
b: refs/heads/master
c: 474a64c
h: refs/heads/master
i:
  300953: d048a31
  300951: 2903dbe
v: v3
  • Loading branch information
Arend van Spriel authored and John W. Linville committed Apr 13, 2012
1 parent a397dc5 commit 5dbc67d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3625c149d60a70f039b34a45ddec67bbff4b7053
refs/heads/master: 474a64c80e2979bbc290a7eccf76e5694cbd5fee
5 changes: 5 additions & 0 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,11 @@ int brcmf_bus_start(struct device *dev)
if (ret < 0)
return ret;

/* add primary networking interface */
ret = brcmf_add_if(dev, 0, "wlan%d", drvr->mac);
if (ret < 0)
return ret;

/* signal bus ready */
bus_if->state = BRCMF_BUS_DATA;
return 0;
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3948,12 +3948,6 @@ void *brcmf_sdbrcm_probe(u32 regsva, struct brcmf_sdio_dev *sdiodev)
}
}

/* add interface and open for business */
if (brcmf_add_if(bus->sdiodev->dev, 0, "wlan%d", NULL)) {
brcmf_dbg(ERROR, "Add primary net device interface failed!!\n");
goto fail;
}

return bus;

fail:
Expand Down
8 changes: 0 additions & 8 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,14 +1383,6 @@ static int brcmf_usb_probe_cb(struct device *dev, const char *desc,
goto fail;
}

/* add interface and open for business */
ret = brcmf_add_if(dev, 0, "wlan%d", NULL);
if (ret) {
brcmf_dbg(ERROR, "Add primary net device interface failed!!\n");
brcmf_detach(dev);
goto fail;
}

return 0;
fail:
/* Release resources in reverse order */
Expand Down

0 comments on commit 5dbc67d

Please sign in to comment.