brcmfmac: avoid firmware command in brcmf_netdev_open() when bus is down
authorArend van Spriel <arend.vanspriel@broadcom.com>
Thu, 11 Jul 2019 09:05:08 +0000 (11:05 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jul 2019 11:51:23 +0000 (14:51 +0300)
commitc613085b74941024194e41b200601b9aa6ee388f
tree14f13406919449d78fd44c70c82e8c271553aacc
parent14fcfd1cc0c05ea58f47dd693fdd13f25dfe995e
brcmfmac: avoid firmware command in brcmf_netdev_open() when bus is down

No point in sending a firmware command when bus is down so make it
conditional checking the state.

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c