diff options
author | Rui Paulo <rpaulo@gmail.com> | 2009-11-09 18:46:57 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-13 17:43:57 -0500 |
commit | 63c5723bc3af8d4e86984dd4ff0c78218de418d0 (patch) | |
tree | fe900ef2a92377c49c6b3124bb5741a1ac04d436 /net/wireless/nl80211.c | |
parent | e304bfd30f356f7b75d30cad0029ecca705fd590 (diff) |
mac80211: add nl80211/cfg80211 handling of the new mesh root mode option.
Signed-off-by: Rui Paulo <rpaulo@gmail.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Reviewed-by: Andrey Yurovsky <andrey@cozybit.com>
Tested-by: Brian Cavagnolo <brian@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 7c1999872503..17bcad69428d 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -2616,6 +2616,8 @@ static int nl80211_get_mesh_params(struct sk_buff *skb, | |||
2616 | cur_params.dot11MeshHWMPpreqMinInterval); | 2616 | cur_params.dot11MeshHWMPpreqMinInterval); |
2617 | NLA_PUT_U16(msg, NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, | 2617 | NLA_PUT_U16(msg, NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, |
2618 | cur_params.dot11MeshHWMPnetDiameterTraversalTime); | 2618 | cur_params.dot11MeshHWMPnetDiameterTraversalTime); |
2619 | NLA_PUT_U8(msg, NL80211_MESHCONF_HWMP_ROOTMODE, | ||
2620 | cur_params.dot11MeshHWMPRootMode); | ||
2619 | nla_nest_end(msg, pinfoattr); | 2621 | nla_nest_end(msg, pinfoattr); |
2620 | genlmsg_end(msg, hdr); | 2622 | genlmsg_end(msg, hdr); |
2621 | err = genlmsg_reply(msg, info); | 2623 | err = genlmsg_reply(msg, info); |
@@ -2726,6 +2728,10 @@ static int nl80211_set_mesh_params(struct sk_buff *skb, struct genl_info *info) | |||
2726 | dot11MeshHWMPnetDiameterTraversalTime, | 2728 | dot11MeshHWMPnetDiameterTraversalTime, |
2727 | mask, NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, | 2729 | mask, NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, |
2728 | nla_get_u16); | 2730 | nla_get_u16); |
2731 | FILL_IN_MESH_PARAM_IF_SET(tb, cfg, | ||
2732 | dot11MeshHWMPRootMode, mask, | ||
2733 | NL80211_MESHCONF_HWMP_ROOTMODE, | ||
2734 | nla_get_u8); | ||
2729 | 2735 | ||
2730 | /* Apply changes */ | 2736 | /* Apply changes */ |
2731 | err = rdev->ops->set_mesh_params(&rdev->wiphy, dev, &cfg, mask); | 2737 | err = rdev->ops->set_mesh_params(&rdev->wiphy, dev, &cfg, mask); |