]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/wireless/mesh.c
cfg80211/nl80211: Add userspace authentication flag to mesh setup
[mirror_ubuntu-bionic-kernel.git] / net / wireless / mesh.c
index 0d4b2260f96fe5eb577165c7409473f488734196..0e5c122ce32445236efa490d7ae5eef5425aa351 100644 (file)
@@ -72,6 +72,10 @@ int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev,
        if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT)
                return -EOPNOTSUPP;
 
+       if (!(rdev->wiphy.flags & WIPHY_FLAG_MESH_AUTH) &&
+             setup->is_secure)
+               return -EOPNOTSUPP;
+
        if (wdev->mesh_id_len)
                return -EALREADY;