add missing license headers (LGPL v2)
[project/uqmi.git] / commands-wds.h
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
22 #define __uqmi_wds_commands \
23 __uqmi_command(wds_start_network, start-network, required, QMI_SERVICE_WDS), \
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_autoconnect, autoconnect, no, CMD_TYPE_OPTION), \
28 __uqmi_command(wds_stop_network, stop-network, required, QMI_SERVICE_WDS), \
29 __uqmi_command(wds_get_packet_service_status, get-data-status, no, QMI_SERVICE_WDS), \
30 __uqmi_command(wds_set_autoconnect_setting, set-autoconnect, required, QMI_SERVICE_WDS), \
31 __uqmi_command(wds_reset, reset-wds, no, QMI_SERVICE_WDS) \
32
33
34 #define wds_helptext \
35 " --start-network <apn>: Start network connection (use with options below)\n" \
36 " --auth-type pap|chap|both|none: Use network authentication type\n" \
37 " --username <name>: Use network username\n" \
38 " --password <password>: Use network password\n" \
39 " --autoconnect: Enable automatic connect/reconnect\n" \
40 " --stop-network <pdh>: Stop network connection (use with option below)\n" \
41 " --autoconnect: Disable automatic connect/reconnect\n" \
42 " --get-data-status: Get current data access status\n" \
43 " --set-autoconnect <val>: Get current data access status (disabled, enabled, paused)\n" \
44