#include "iw.h"
SECTION(mesh);
+SECTION(mesh_param);
typedef struct _any_t {
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]) {
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");
NL80211_CMD_GET_MESH_PARAMS, 0, CIB_NETDEV, get_interface_meshparam,
"Retrieve mesh parameter (run command without any to see available ones).");
+static int dump_interface_meshparam(struct nl80211_state *state,
+ struct nl_msg *msg,
+ int argc, char **argv,
+ enum id_input id)
+{
+ register_handler(print_mesh_param_handler, NULL);
+ return 0;
+}
+
+COMMAND(mesh_param, dump, "",
+ NL80211_CMD_GET_MESH_PARAMS, 0, CIB_NETDEV, dump_interface_meshparam,
+ "List all supported mesh parameters");
+
static int join_mesh(struct nl80211_state *state,
struct nl_msg *msg, int argc, char **argv,
enum id_input id)
int err, parsed;
err = parse_freqchan(&chandef, false, argc - 1, argv + 1,
- &parsed);
+ &parsed, false);
if (err)
return err;