1 From: Hante Meuleman <meuleman@broadcom.com>
2 Date: Wed, 25 Nov 2015 11:32:39 +0100
3 Subject: [PATCH] brcmfmac: Change error print on wlan0 existence.
5 During initialization of the device, but also on some other
6 moments the driver prints an error that the netdev already exists.
7 This is a result of the way the driver is initializing the
8 firmware and not really an error. The code is not treating it as
9 an error either. This error print has resulted in many questions
10 by users and is confusing and incorrect. This patch changes the
11 error log into a debug info log.
13 Reviewed-by: Arend Van Spriel <arend@broadcom.com>
14 Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
15 Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
16 Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
17 Signed-off-by: Arend van Spriel <arend@broadcom.com>
18 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
21 --- a/drivers/net/wireless/brcm80211/brcmfmac/core.c
22 +++ b/drivers/net/wireless/brcm80211/brcmfmac/core.c
23 @@ -811,14 +811,15 @@ struct brcmf_if *brcmf_add_if(struct brc
24 * in case we missed the BRCMF_E_IF_DEL event.
27 - brcmf_err("ERROR: netdev:%s already exists\n",
30 + brcmf_err("ERROR: netdev:%s already exists\n",
32 netif_stop_queue(ifp->ndev);
33 brcmf_net_detach(ifp->ndev);
34 drvr->iflist[bsscfgidx] = NULL;
36 - brcmf_err("ignore IF event\n");
37 + brcmf_dbg(INFO, "netdev:%s ignore IF event\n",
39 return ERR_PTR(-EINVAL);