MLK-21493 brcmfmac: move .brcmf_bus_preinit() after changing bus state

Moving the brcmf_bus_preinit() call allows the bus code to do some
required initialization before handling firmware control messages.

.brcmf_bus_preinit() already is called in .brcmf_bus_started() when
bus is ready. So remove it from .brcmf_c_preinit_dcmds().

Fixes: 383c26d2ea2f(MLK-18675-20 brcmfmac: Support wake on ping packet)
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
This commit is contained in:
Fugang Duan 2019-04-18 16:21:20 +08:00 committed by Dong Aisheng
parent 41d3b41dd5
commit a0f14445b3

View file

@ -352,8 +352,6 @@ int brcmf_c_preinit_dcmds(struct brcmf_if *ifp)
if (err)
brcmf_info("Add unicast filter error (%d)\n", err);
/* do bus specific preinit here */
err = brcmf_bus_preinit(ifp->drvr->bus_if);
done:
return err;
}