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 | c21b4c3d0a2b8937b2902a71be7b5f575af12d25 (patch) | |
tree | 9894c2a7b453392c2545afaaa7f1adaf48d859e6 /clients | |
parent | bd6074095d11dff843e17071f41b0dbdacee34c4 (diff) | |
download | NetworkManager-c21b4c3d0a2b8937b2902a71be7b5f575af12d25.tar.gz |
cli: add support for wpan.page and wpan.channel propertieslr/wpan-channel
Diffstat (limited to 'clients')
-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 6666d0294c..eb18350efa 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 353afd6c52..29ce89f740 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 }; |