|
@@ -4575,7 +4575,9 @@ static int nl80211_get_mesh_config(struct sk_buff *skb,
|
|
|
nla_put_u32(msg, NL80211_MESHCONF_POWER_MODE,
|
|
|
cur_params.power_mode) ||
|
|
|
nla_put_u16(msg, NL80211_MESHCONF_AWAKE_WINDOW,
|
|
|
- cur_params.dot11MeshAwakeWindowDuration))
|
|
|
+ cur_params.dot11MeshAwakeWindowDuration) ||
|
|
|
+ nla_put_u32(msg, NL80211_MESHCONF_PLINK_TIMEOUT,
|
|
|
+ cur_params.plink_timeout))
|
|
|
goto nla_put_failure;
|
|
|
nla_nest_end(msg, pinfoattr);
|
|
|
genlmsg_end(msg, hdr);
|
|
@@ -4616,6 +4618,7 @@ static const struct nla_policy nl80211_meshconf_params_policy[NL80211_MESHCONF_A
|
|
|
[NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL] = { .type = NLA_U16 },
|
|
|
[NL80211_MESHCONF_POWER_MODE] = { .type = NLA_U32 },
|
|
|
[NL80211_MESHCONF_AWAKE_WINDOW] = { .type = NLA_U16 },
|
|
|
+ [NL80211_MESHCONF_PLINK_TIMEOUT] = { .type = NLA_U32 },
|
|
|
};
|
|
|
|
|
|
static const struct nla_policy
|
|
@@ -4753,6 +4756,9 @@ do { \
|
|
|
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshAwakeWindowDuration,
|
|
|
0, 65535, mask,
|
|
|
NL80211_MESHCONF_AWAKE_WINDOW, nla_get_u16);
|
|
|
+ FILL_IN_MESH_PARAM_IF_SET(tb, cfg, plink_timeout, 1, 0xffffffff,
|
|
|
+ mask, NL80211_MESHCONF_PLINK_TIMEOUT,
|
|
|
+ nla_get_u32);
|
|
|
if (mask_out)
|
|
|
*mask_out = mask;
|
|
|
|