]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/wireless/core.c
cfg80211: don't add p2p device while in RFKILL
[karo-tx-linux.git] / net / wireless / core.c
index fe8d4f2be49b623a08dd2090be7f3c2b4f3053f0..aff959e5a1b360e7cb467cade7f7d617544b3909 100644 (file)
@@ -958,8 +958,6 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb,
        case NETDEV_PRE_UP:
                if (!(wdev->wiphy->interface_modes & BIT(wdev->iftype)))
                        return notifier_from_errno(-EOPNOTSUPP);
-               if (rfkill_blocked(rdev->rfkill))
-                       return notifier_from_errno(-ERFKILL);
                ret = cfg80211_can_add_interface(rdev, wdev->iftype);
                if (ret)
                        return notifier_from_errno(ret);