diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-11-11 15:07:22 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-16 16:39:08 -0500 |
commit | 885a46d0f7942d76c2f3860acb45f75237d3bb42 (patch) | |
tree | f116fcc9b8204f7a113693e307de76e4098ebb36 /net/wireless | |
parent | a619a4c0e1fd4e8c360c63d0df3fa0a401107d69 (diff) | |
download | linux-stable-885a46d0f7942d76c2f3860acb45f75237d3bb42.tar.gz linux-stable-885a46d0f7942d76c2f3860acb45f75237d3bb42.tar.bz2 linux-stable-885a46d0f7942d76c2f3860acb45f75237d3bb42.zip |
cfg80211: add support for setting the ad-hoc multicast rate
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/nl80211.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 5e4dda4c0fd3..605553842226 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -171,6 +171,8 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = { [NL80211_ATTR_WIPHY_ANTENNA_TX] = { .type = NLA_U32 }, [NL80211_ATTR_WIPHY_ANTENNA_RX] = { .type = NLA_U32 }, + + [NL80211_ATTR_MCAST_RATE] = { .type = NLA_U32 }, }; /* policy for the key attributes */ @@ -3681,6 +3683,9 @@ static int nl80211_join_ibss(struct sk_buff *skb, struct genl_info *info) return -EINVAL; } } + if (info->attrs[NL80211_ATTR_MCAST_RATE]) + ibss.mcast_rate = + nla_get_u32(info->attrs[NL80211_ATTR_MCAST_RATE]); if (ibss.privacy && info->attrs[NL80211_ATTR_KEYS]) { connkeys = nl80211_parse_connkeys(rdev, |