diff mbox

[v7,1/2] nl80211: multicast_to_unicast can be changed while IFF_UP

Message ID 1477921260-24556-1-git-send-email-michael-dev@fami-braun.de (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show

Commit Message

michael-dev Oct. 31, 2016, 1:40 p.m. UTC
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>
---
 net/wireless/nl80211.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Johannes Berg Nov. 21, 2016, 12:50 p.m. UTC | #1
On Mon, 2016-10-31 at 14:40 +0100, Michael Braun wrote:
> There is no need to prevent toggling multicast_to_unicast while
> interface is already up. This change simplifies reconfiguration
> from hostapd.

Applied. This check never should've been there anyway, if desired,
NEED_NETDEV_UP should've been used.

johannes
diff mbox

Patch

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 5349c63..7554400 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -11006,9 +11006,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;