cfg80211/mac80211: add connected to auth server to meshconf
[linux-block.git] / net / wireless / nl80211.c
index 257c0631546431eba614566f48d1dd73fecca11d..434fd06dc5cfb20c2cc1c5604df183d9c694a059 100644 (file)
@@ -6887,7 +6887,9 @@ static int nl80211_get_mesh_config(struct sk_buff *skb,
            nla_put_u8(msg, NL80211_MESHCONF_CONNECTED_TO_GATE,
                       cur_params.dot11MeshConnectedToMeshGate) ||
            nla_put_u8(msg, NL80211_MESHCONF_NOLEARN,
-                      cur_params.dot11MeshNolearn))
+                      cur_params.dot11MeshNolearn) ||
+           nla_put_u8(msg, NL80211_MESHCONF_CONNECTED_TO_AS,
+                      cur_params.dot11MeshConnectedToAuthServer))
                goto nla_put_failure;
        nla_nest_end(msg, pinfoattr);
        genlmsg_end(msg, hdr);
@@ -6946,6 +6948,7 @@ nl80211_meshconf_params_policy[NL80211_MESHCONF_ATTR_MAX+1] = {
        [NL80211_MESHCONF_PLINK_TIMEOUT] = { .type = NLA_U32 },
        [NL80211_MESHCONF_CONNECTED_TO_GATE] = NLA_POLICY_RANGE(NLA_U8, 0, 1),
        [NL80211_MESHCONF_NOLEARN] = NLA_POLICY_RANGE(NLA_U8, 0, 1),
+       [NL80211_MESHCONF_CONNECTED_TO_AS] = NLA_POLICY_RANGE(NLA_U8, 0, 1),
 };
 
 static const struct nla_policy
@@ -7058,6 +7061,9 @@ do {                                                                      \
        FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConnectedToMeshGate, mask,
                                  NL80211_MESHCONF_CONNECTED_TO_GATE,
                                  nla_get_u8);
+       FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConnectedToAuthServer, mask,
+                                 NL80211_MESHCONF_CONNECTED_TO_AS,
+                                 nla_get_u8);
        /*
         * Check HT operation mode based on
         * IEEE 802.11-2016 9.4.2.57 HT Operation element.