MLK-21493 brcmfmac: move .brcmf_bus_preinit() after changing bus state
authorFugang Duan <fugang.duan@nxp.com>
Thu, 18 Apr 2019 08:21:20 +0000 (16:21 +0800)
committerFugang Duan <fugang.duan@nxp.com>
Thu, 18 Apr 2019 09:08:13 +0000 (17:08 +0800)
commit50ca4a99ea695a053083dd9a7514d01fb07e0b81
treef9896274bf70e529b04e584af21b92c39cbccc4b
parentbbae879e0b44f270163519e7e6a9f0391cb73a8d
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>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c