From: Rafał Miłecki Date: Mon, 30 May 2016 06:18:41 +0000 (+0200) Subject: mac80211: brcmfmac: return -ENFILE if interface exists X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cdff5406238c6d6f38c789a78546bc94a8ab6b41;p=openwrt%2Fstaging%2Fynezz.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 --- 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 5f69043ada..4f22a4e719 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);