commands-wds.h 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * uqmi -- tiny QMI support implementation
  3. *
  4. * Copyright (C) 2014-2015 Felix Fietkau <nbd@openwrt.org>
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19. * Boston, MA 02110-1301 USA.
  20. */
  21. #define __uqmi_wds_commands \
  22. __uqmi_command(wds_start_network, start-network, no, QMI_SERVICE_WDS), \
  23. __uqmi_command(wds_set_apn, apn, required, CMD_TYPE_OPTION), \
  24. __uqmi_command(wds_set_auth, auth-type, required, CMD_TYPE_OPTION), \
  25. __uqmi_command(wds_set_username, username, required, CMD_TYPE_OPTION), \
  26. __uqmi_command(wds_set_password, password, required, CMD_TYPE_OPTION), \
  27. __uqmi_command(wds_set_ip_family_pref, ip-family, required, CMD_TYPE_OPTION), \
  28. __uqmi_command(wds_set_autoconnect, autoconnect, no, CMD_TYPE_OPTION), \
  29. __uqmi_command(wds_set_profile, profile, required, CMD_TYPE_OPTION), \
  30. __uqmi_command(wds_stop_network, stop-network, required, QMI_SERVICE_WDS), \
  31. __uqmi_command(wds_get_packet_service_status, get-data-status, no, QMI_SERVICE_WDS), \
  32. __uqmi_command(wds_set_ip_family, set-ip-family, required, QMI_SERVICE_WDS), \
  33. __uqmi_command(wds_set_autoconnect_settings, set-autoconnect, required, QMI_SERVICE_WDS), \
  34. __uqmi_command(wds_reset, reset-wds, no, QMI_SERVICE_WDS), \
  35. __uqmi_command(wds_get_profile_settings, get-profile-settings, required, QMI_SERVICE_WDS), \
  36. __uqmi_command(wds_get_default_profile, get-default-profile, required, QMI_SERVICE_WDS), \
  37. __uqmi_command(wds_create_profile, create-profile, required, QMI_SERVICE_WDS), \
  38. __uqmi_command(wds_modify_profile, modify-profile, required, QMI_SERVICE_WDS), \
  39. __uqmi_command(wds_set_pdp_type, pdp-type, required, CMD_TYPE_OPTION), \
  40. __uqmi_command(wds_no_roaming, no-roaming, required, CMD_TYPE_OPTION), \
  41. __uqmi_command(wds_get_current_settings, get-current-settings, no, QMI_SERVICE_WDS) \
  42. #define wds_helptext \
  43. " --start-network: Start network connection (use with options below)\n" \
  44. " --apn <apn>: Use APN\n" \
  45. " --auth-type pap|chap|both|none: Use network authentication type\n" \
  46. " --username <name>: Use network username\n" \
  47. " --password <password>: Use network password\n" \
  48. " --ip-family <family>: Use ip-family for the connection (ipv4, ipv6, unspecified)\n" \
  49. " --autoconnect: Enable automatic connect/reconnect\n" \
  50. " --profile <index>: Use connection profile\n" \
  51. " --stop-network <pdh>: Stop network connection (use with option below)\n" \
  52. " --autoconnect: Disable automatic connect/reconnect\n" \
  53. " --get-data-status: Get current data access status\n" \
  54. " --set-ip-family <val>: Set ip-family (ipv4, ipv6, unspecified)\n" \
  55. " --set-autoconnect <val>: Set automatic connect/reconnect (disabled, enabled, paused)\n" \
  56. " --get-profile-settings <val,#>: Get APN profile settings (3gpp, 3gpp2),#\n" \
  57. " --get-default-profile <val>: Get default profile number (3gpp, 3gpp2)\n" \
  58. " --create-profile <val> Create profile (3gpp, 3gpp2)\n" \
  59. " --apn <apn>: Use APN\n" \
  60. " --pdp-type ipv4|ipv6|ipv4v6>: Use pdp-type for the connection\n" \
  61. " --username <name>: Use network username\n" \
  62. " --password <password>: Use network password\n" \
  63. " --auth-type pap|chap|both|none: Use network authentication type\n" \
  64. " --no-roaming false|true To allow roaming, set to false\n" \
  65. " --modify-profile <val>,# Modify profile number (3gpp, 3gpp2)\n" \
  66. " --apn <apn>: Use APN\n" \
  67. " --pdp-type ipv4|ipv6|ipv4v6>: Use pdp-type for the connection\n" \
  68. " --username <name>: Use network username\n" \
  69. " --password <password>: Use network password\n" \
  70. " --auth-type pap|chap|both|none: Use network authentication type\n" \
  71. " --no-roaming false|true To allow roaming, set to false\n" \
  72. " --get-current-settings: Get current connection settings\n" \