Commit c21b4c3d authored by Lubomir Rintel's avatar Lubomir Rintel 🥕

cli: add support for wpan.page and wpan.channel properties

parent bd607409
......@@ -992,8 +992,10 @@ usage_connection_add (void)
" [source-port-min <0-65535>]\n"
" [source-port-max <0-65535>]\n"
" [destination-port <0-65535>]\n\n"
" wpan: [short-addr <0x0000-0xffff>]\n\n"
" [pan-id <0x0000-0xffff>]\n\n"
" wpan: [short-addr <0x0000-0xffff>]\n"
" [pan-id <0x0000-0xffff>]\n"
" [page <default|0-31>]\n"
" [channel <default|0-26>]\n"
" [mac <MAC address>]\n\n"
" 6lowpan: dev <parent device (connection UUID, ifname, or MAC)>\n"
" dummy:\n\n"
......
......@@ -7827,6 +7827,34 @@ static const NMMetaPropertyInfo *const property_infos_WPAN[] = {
),
),
),
PROPERTY_INFO_WITH_DESC (NM_SETTING_WPAN_PAGE,
.is_cli_option = TRUE,
.property_alias = "page",
.prompt = N_("Page (<default|0-31>)"),
.property_type = &_pt_gobject_int,
.property_typ_data = DEFINE_PROPERTY_TYP_DATA_SUBTYPE (gobject_int, \
.value_infos = INT_VALUE_INFOS (
{
.value = NM_SETTING_WPAN_PAGE_DEFAULT,
.nick = "default",
}
),
),
),
PROPERTY_INFO_WITH_DESC (NM_SETTING_WPAN_CHANNEL,
.is_cli_option = TRUE,
.property_alias = "channel",
.prompt = N_("Channel (<default|0-26>)"),
.property_type = &_pt_gobject_int,
.property_typ_data = DEFINE_PROPERTY_TYP_DATA_SUBTYPE (gobject_int, \
.value_infos = INT_VALUE_INFOS (
{
.value = NM_SETTING_WPAN_CHANNEL_DEFAULT,
.nick = "default",
}
),
),
),
NULL
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment