]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: mesh: add comments in the mesh confguration parameter printing sections
authorGokul Sivakumar <gokulkumar792@gmail.com>
Fri, 10 Sep 2021 14:16:18 +0000 (19:46 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 Sep 2021 11:35:05 +0000 (13:35 +0200)
Signed-off-by: Gokul Sivakumar <gokulkumar792@gmail.com>
Link: https://lore.kernel.org/r/20210910141618.1594617-4-gokulkumar792@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
mesh.c

diff --git a/mesh.c b/mesh.c
index 943edf5ae364b7568c5a42b00b715d6e21e18705..0fb98a3030ed5264c06e1f9f7a25a2d7523542ab 100644 (file)
--- a/mesh.c
+++ b/mesh.c
@@ -400,6 +400,7 @@ static int print_mesh_param_handler(struct nl_msg *msg, void *arg)
        if (!mdescr) {
                unsigned int i;
 
+               /* print out all the supported mesh parameters */
                for (i = 0; i < ARRAY_SIZE(_mesh_param_descrs); i++) {
                        mdescr = &_mesh_param_descrs[i];
                        if (mesh_params[mdescr->mesh_param_num]) {
@@ -411,7 +412,7 @@ static int print_mesh_param_handler(struct nl_msg *msg, void *arg)
                return NL_SKIP;
        }
 
-       /* print out the mesh parameter */
+       /* print out the requested mesh parameter */
        if (mesh_params[mdescr->mesh_param_num]) {
                mdescr->nla_print_fn(mesh_params[mdescr->mesh_param_num]);
                printf("\n");