nl80211: multicast_to_unicast can be changed while IFF_UP
authorMichael Braun <michael-dev@fami-braun.de>
Mon, 31 Oct 2016 13:40:59 +0000 (14:40 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2016 15:04:57 +0000 (16:04 +0100)
There is no need to prevent toggling multicast_to_unicast while
interface is already up. This change simplifies reconfiguration
from hostapd.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index db1a434f6169751085a79e9a900484cdef72e5a0..7762231abd327518ee7b76d164eebcb33f875f50 100644 (file)
@@ -11804,9 +11804,6 @@ static int nl80211_set_multicast_to_unicast(struct sk_buff *skb,
        const struct nlattr *nla;
        bool enabled;
 
-       if (netif_running(dev))
-               return -EBUSY;
-
        if (!rdev->ops->set_multicast_to_unicast)
                return -EOPNOTSUPP;