brcmfmac: set interface carrier to off by default
It's important as brcmfmac creates one main interface for each PHY and doesn't allow deleting it. Not setting carrier could result in other subsystems misbehaving (e.g. LEDs "netdev" trigger turning LED on). Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Родитель
1c9f329b08
Коммит
8d9627b05b
|
@ -661,6 +661,8 @@ int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
netif_carrier_off(ndev);
|
||||
|
||||
ndev->priv_destructor = brcmf_cfg80211_free_netdev;
|
||||
brcmf_dbg(INFO, "%s: Broadcom Dongle Host Driver\n", ndev->name);
|
||||
return 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче