mac80211: brcmfmac: return -ENFILE if interface exists
authorRafał Miłecki <zajec5@gmail.com>
Mon, 30 May 2016 06:29:43 +0000 (06:29 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Mon, 30 May 2016 06:29:43 +0000 (06:29 +0000)
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>
SVN-Revision: 49378

package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch

index 4295b4bd339374216416e305dfac2e9cd8ddd4b2..473f6615045ab74bc92ab420ab796d00230778f4 100644 (file)
@@ -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);