diff options
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); |