From: Rafał Miłecki Date: Mon, 30 May 2016 06:29:43 +0000 (+0000) Subject: mac80211: brcmfmac: return -ENFILE if interface exists X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ce8f648042393d02d9f1d2b86123028cbbe7be99;p=openwrt%2Fsvn-archive%2Fopenwrt.git mac80211: brcmfmac: return -ENFILE if interface exists This makes brcmfmac compatible with mac80211 which uses dev_alloc_name (and so returns -ENFILE on error). Signed-off-by: Rafał Miłecki SVN-Revision: 49378 --- 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 4295b4bd33..473f661504 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);