From cdff5406238c6d6f38c789a78546bc94a8ab6b41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 30 May 2016 08:18:41 +0200 Subject: [PATCH] mac80211: brcmfmac: return -ENFILE if interface exists MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This makes brcmfmac compatible with mac80211 which uses dev_alloc_name (and so returns -ENFILE on error). Signed-off-by: Rafał Miłecki --- ...2-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch b/package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch index 5f69043ada61..4f22a4e71903 100644 --- a/package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch +++ b/package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch @@ -42,7 +42,7 @@ Signed-off-by: Rafał Miłecki + dev = dev_get_by_name(&init_net, name); + if (dev) { + dev_put(dev); -+ return ERR_PTR(-EEXIST); ++ return ERR_PTR(-ENFILE); + } + brcmf_dbg(TRACE, "enter: %s type %d\n", name, type); -- 2.30.2