mac80211: brcmfmac: return -ENFILE if interface exists
authorRafał Miłecki <zajec5@gmail.com>
Mon, 30 May 2016 06:18:41 +0000 (08:18 +0200)
committerRafał Miłecki <zajec5@gmail.com>
Mon, 30 May 2016 06:25:44 +0000 (08:25 +0200)
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>
package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch

index 5f69043ada615e0eeae2ac623cde66c3f370c9bb..4f22a4e719036ef77ea6105feb2ea0fa0456c891 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);