aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-11-11 09:07:22 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-11-16 16:39:08 -0500
commit885a46d0f7942d76c2f3860acb45f75237d3bb42 (patch)
treef116fcc9b8204f7a113693e307de76e4098ebb36 /net/wireless
parenta619a4c0e1fd4e8c360c63d0df3fa0a401107d69 (diff)
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.c5
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] = {
171 171
172 [NL80211_ATTR_WIPHY_ANTENNA_TX] = { .type = NLA_U32 }, 172 [NL80211_ATTR_WIPHY_ANTENNA_TX] = { .type = NLA_U32 },
173 [NL80211_ATTR_WIPHY_ANTENNA_RX] = { .type = NLA_U32 }, 173 [NL80211_ATTR_WIPHY_ANTENNA_RX] = { .type = NLA_U32 },
174
175 [NL80211_ATTR_MCAST_RATE] = { .type = NLA_U32 },
174}; 176};
175 177
176/* policy for the key attributes */ 178/* policy for the key attributes */
@@ -3681,6 +3683,9 @@ static int nl80211_join_ibss(struct sk_buff *skb, struct genl_info *info)
3681 return -EINVAL; 3683 return -EINVAL;
3682 } 3684 }
3683 } 3685 }
3686 if (info->attrs[NL80211_ATTR_MCAST_RATE])
3687 ibss.mcast_rate =
3688 nla_get_u32(info->attrs[NL80211_ATTR_MCAST_RATE]);
3684 3689
3685 if (ibss.privacy && info->attrs[NL80211_ATTR_KEYS]) { 3690 if (ibss.privacy && info->attrs[NL80211_ATTR_KEYS]) {
3686 connkeys = nl80211_parse_connkeys(rdev, 3691 connkeys = nl80211_parse_connkeys(rdev,