}
COMMAND(set, mesh_param, "<param> <value>",
- NL80211_CMD_SET_MESH_PARAMS, 0, CIB_NETDEV, set_interface_meshparam, NULL);
+ NL80211_CMD_SET_MESH_PARAMS, 0, CIB_NETDEV, set_interface_meshparam,
+ "Set mesh parameter (run command without any to see available ones).");
/* Getter */
static int print_mesh_param_handler(struct nl_msg *msg, void *arg)
}
COMMAND(get, mesh_param, "<param>",
- NL80211_CMD_GET_MESH_PARAMS, 0, CIB_NETDEV, get_interface_meshparam, NULL);
+ NL80211_CMD_GET_MESH_PARAMS, 0, CIB_NETDEV, get_interface_meshparam,
+ "Retrieve mesh parameter (run command without any to see available ones).");
return -ENOBUFS;
}
COMMAND(mpath, get, "<MAC address>",
- NL80211_CMD_GET_MPATH, 0, CIB_NETDEV, handle_mpath_get, NULL);
+ NL80211_CMD_GET_MPATH, 0, CIB_NETDEV, handle_mpath_get,
+ "Get information on mesh path to the given node.");
COMMAND(mpath, del, "<MAC address>",
- NL80211_CMD_DEL_MPATH, 0, CIB_NETDEV, handle_mpath_get, NULL);
+ NL80211_CMD_DEL_MPATH, 0, CIB_NETDEV, handle_mpath_get,
+ "Remove the mesh path to the given node.");
static int handle_mpath_set(struct nl80211_state *state,
struct nl_cb *cb,
return -ENOBUFS;
}
COMMAND(mpath, new, "<destination MAC address> next_hop <next hop MAC address>",
- NL80211_CMD_NEW_MPATH, 0, CIB_NETDEV, handle_mpath_set, NULL);
+ NL80211_CMD_NEW_MPATH, 0, CIB_NETDEV, handle_mpath_set,
+ "Create a new mesh path (instead of relying on automatic discovery).");
COMMAND(mpath, set, "<destination MAC address> next_hop <next hop MAC address>",
- NL80211_CMD_SET_MPATH, 0, CIB_NETDEV, handle_mpath_set, NULL);
+ NL80211_CMD_SET_MPATH, 0, CIB_NETDEV, handle_mpath_set,
+ "Set an existing mesh path's next hop.");
static int handle_mpath_dump(struct nl80211_state *state,
struct nl_cb *cb,
return 0;
}
COMMAND(mpath, dump, NULL,
- NL80211_CMD_GET_MPATH, NLM_F_DUMP, CIB_NETDEV, handle_mpath_dump, NULL);
+ NL80211_CMD_GET_MPATH, NLM_F_DUMP, CIB_NETDEV, handle_mpath_dump,
+ "List known mesh paths.");
return -ENOBUFS;
}
COMMAND(reg, set, "<ISO/IEC 3166-1 alpha2>",
- NL80211_CMD_REQ_SET_REG, 0, CIB_NONE, handle_reg_set, NULL);
+ NL80211_CMD_REQ_SET_REG, 0, CIB_NONE, handle_reg_set,
+ "Notify the kernel about the current regulatory domain.");
static int print_reg_handler(struct nl_msg *msg, void *arg)
nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_reg_handler, NULL);
return 0;
}
-COMMAND(reg, get, NULL, NL80211_CMD_GET_REG, 0, CIB_NONE, handle_reg_get, NULL);
+COMMAND(reg, get, NULL, NL80211_CMD_GET_REG, 0, CIB_NONE, handle_reg_get,
+ "Print out the kernel's current regulatory domain information.");
return -ENOBUFS;
}
COMMAND(station, get, "<MAC address>",
- NL80211_CMD_GET_STATION, 0, CIB_NETDEV, handle_station_get, NULL);
+ NL80211_CMD_GET_STATION, 0, CIB_NETDEV, handle_station_get,
+ "Get information for a specific station.");
COMMAND(station, del, "<MAC address>",
- NL80211_CMD_DEL_STATION, 0, CIB_NETDEV, handle_station_get, NULL);
+ NL80211_CMD_DEL_STATION, 0, CIB_NETDEV, handle_station_get,
+ "Remove the given station entry (use with caution!)");
static int handle_station_set(struct nl80211_state *state,
struct nl_cb *cb,
return -ENOBUFS;
}
COMMAND(station, set, "<MAC address> plink_action <open|block>",
- NL80211_CMD_SET_STATION, 0, CIB_NETDEV, handle_station_set, NULL);
+ NL80211_CMD_SET_STATION, 0, CIB_NETDEV, handle_station_set,
+ "Set mesh peer link action for this station (peer).");
static int handle_station_dump(struct nl80211_state *state,
struct nl_cb *cb,
return 0;
}
COMMAND(station, dump, NULL,
- NL80211_CMD_GET_STATION, NLM_F_DUMP, CIB_NETDEV, handle_station_dump, NULL);
+ NL80211_CMD_GET_STATION, NLM_F_DUMP, CIB_NETDEV, handle_station_dump,
+ "List all stations known, e.g. the AP on managed interfaces");