aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-05-30 06:29:43 +0000
committerLuka Perkov <luka@openwrt.org>2016-06-19 19:56:13 +0200
commit97f92677969845ae32eb93bffd25d81a0b6d60e2 (patch)
treef8b662212a864b8d1fb1321212162ee41ab99f2a /package
parent1b9467f15f4f92bb01a78b927af82333e7460d31 (diff)
downloadupstream-97f92677969845ae32eb93bffd25d81a0b6d60e2.tar.gz
upstream-97f92677969845ae32eb93bffd25d81a0b6d60e2.tar.bz2
upstream-97f92677969845ae32eb93bffd25d81a0b6d60e2.zip
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 <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49378 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch2
1 files changed, 1 insertions, 1 deletions
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 <zajec5@gmail.com>
+ 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);