nl80211: Allow setting multicast rate on OCB interfaces
authorBertold Van den Bergh <bertold.vandenbergh@esat.kuleuven.be>
Wed, 5 Aug 2015 14:02:21 +0000 (16:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Aug 2015 15:49:48 +0000 (17:49 +0200)
Allow setting multicast rate on OCB interfaces.
Current behaviour results in EOPNOTSUPP when attempting this.

Signed-off-by: Bertold Van den Bergh <bertold.vandenbergh@esat.kuleuven.be>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index 5849fa199f7733a0a67291b19ec2acdf2be72c23..5d8748b4c8a2d20f76c38a8394888c7fe56924bf 100644 (file)
@@ -7391,7 +7391,8 @@ static int nl80211_set_mcast_rate(struct sk_buff *skb, struct genl_info *info)
        int err;
 
        if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_ADHOC &&
-           dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT)
+           dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT &&
+           dev->ieee80211_ptr->iftype != NL80211_IFTYPE_OCB)
                return -EOPNOTSUPP;
 
        if (!rdev->ops->set_mcast_rate)