diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-09-19 19:37:37 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2018-10-07 15:46:02 +0200 |
commit | 2eb138d09aa7ec9e7fff62d1093955f01ea53249 (patch) | |
tree | 9894c2a7b453392c2545afaaa7f1adaf48d859e6 | |
parent | ba6ea0bfe07544e7f5df887a2d45700e3c582478 (diff) |
cli: add support for wpan.page and wpan.channel properties
-rw-r--r-- | clients/cli/connections.c | 6 | ||||
-rw-r--r-- | clients/common/nm-meta-setting-desc.c | 28 |
2 files changed, 32 insertions, 2 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 6666d0294..eb18350ef 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -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" diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c index 353afd6c5..29ce89f74 100644 --- a/clients/common/nm-meta-setting-desc.c +++ b/clients/common/nm-meta-setting-desc.c @@ -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 }; |