summaryrefslogtreecommitdiff
path: root/package/kernel
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-05-30 08:18:41 +0200
committerRafał Miłecki <zajec5@gmail.com>2016-05-30 08:25:44 +0200
commitcdff5406238c6d6f38c789a78546bc94a8ab6b41 (patch)
tree7d57716ff31bdac5b8ad1be1eb52ddfed776fd78 /package/kernel
parentefcaa046b78ae7c2b2bd9b3d8fd6879c099c95f2 (diff)
downloadmtk-20170518-cdff5406238c6d6f38c789a78546bc94a8ab6b41.zip
mtk-20170518-cdff5406238c6d6f38c789a78546bc94a8ab6b41.tar.gz
mtk-20170518-cdff5406238c6d6f38c789a78546bc94a8ab6b41.tar.bz2
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>
Diffstat (limited to 'package/kernel')
-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 5f69043..4f22a4e 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);