mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
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>
This commit is contained in:
parent
14fcfd1cc0
commit
c613085b74
1 changed files with 2 additions and 1 deletions
|
@ -579,7 +579,8 @@ static int brcmf_netdev_stop(struct net_device *ndev)
|
|||
|
||||
brcmf_cfg80211_down(ndev);
|
||||
|
||||
brcmf_fil_iovar_data_set(ifp, "arp_hostip_clear", NULL, 0);
|
||||
if (ifp->drvr->bus_if->state == BRCMF_BUS_UP)
|
||||
brcmf_fil_iovar_data_set(ifp, "arp_hostip_clear", NULL, 0);
|
||||
|
||||
brcmf_net_setcarrier(ifp, false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue