*     that configured the indoor setting, and the indoor operation would be
  *     cleared when the socket is closed.
  *     If set during NAN interface creation, the interface will be destroyed
- *     if the socket is closed just like any other interface. Moreover, only
- *     the netlink socket that created the interface will be allowed to add
- *     and remove functions. NAN notifications will be sent in unicast to that
- *     socket. Without this attribute, any socket can add functions and the
- *     notifications will be sent to the %NL80211_MCGRP_NAN multicast group.
+ *     if the socket is closed just like any other interface. Moreover, NAN
+ *     notifications will be sent in unicast to that socket. Without this
+ *     attribute, the notifications will be sent to the %NL80211_MCGRP_NAN
+ *     multicast group.
  *     If set during %NL80211_CMD_ASSOCIATE or %NL80211_CMD_CONNECT the
  *     station will deauthenticate when the socket is closed.
  *
 
        if (!info->attrs[NL80211_ATTR_NAN_FUNC])
                return -EINVAL;
 
-       if (wdev->owner_nlportid &&
-           wdev->owner_nlportid != info->snd_portid)
-               return -ENOTCONN;
-
        err = nla_parse_nested(tb, NL80211_NAN_FUNC_ATTR_MAX,
                               info->attrs[NL80211_ATTR_NAN_FUNC],
                               nl80211_nan_func_policy, info->extack);
        if (!info->attrs[NL80211_ATTR_COOKIE])
                return -EINVAL;
 
-       if (wdev->owner_nlportid &&
-           wdev->owner_nlportid != info->snd_portid)
-               return -ENOTCONN;
-
        cookie = nla_get_u64(info->attrs[NL80211_ATTR_COOKIE]);
 
        rdev_del_nan_func(rdev, wdev, cookie);