2 * uqmi -- tiny QMI support implementation
4 * Copyright (C) 2014-2015 Felix Fietkau <nbd@openwrt.org>
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.
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.
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.
22 #define __uqmi_nas_commands \
23 __uqmi_command(nas_do_set_system_selection, __set-system-selection, no, QMI_SERVICE_NAS), \
24 __uqmi_command(nas_set_network_modes, set-network-modes, required, CMD_TYPE_OPTION), \
25 __uqmi_command(nas_initiate_network_register, network-register, no, QMI_SERVICE_NAS), \
26 __uqmi_command(nas_set_plmn, set-plmn, no, QMI_SERVICE_NAS), \
27 __uqmi_command(nas_set_mcc, mcc, required, CMD_TYPE_OPTION), \
28 __uqmi_command(nas_set_mnc, mnc, required, CMD_TYPE_OPTION), \
29 __uqmi_command(nas_network_scan, network-scan, no, QMI_SERVICE_NAS), \
30 __uqmi_command(nas_get_signal_info, get-signal-info, no, QMI_SERVICE_NAS), \
31 __uqmi_command(nas_get_serving_system, get-serving-system, no, QMI_SERVICE_NAS), \
32 __uqmi_command(nas_set_network_preference, set-network-preference, required, CMD_TYPE_OPTION), \
33 __uqmi_command(nas_set_roaming, set-network-roaming, required, CMD_TYPE_OPTION) \
35 #define nas_helptext \
36 " --set-network-modes <modes>: Set usable network modes (Syntax: <mode1>[,<mode2>,...])\n" \
37 " Available modes: all, lte, umts, gsm, cdma, td-scdma\n" \
38 " --set-network-preference <mode>: Set preferred network mode to <mode>\n" \
39 " Available modes: auto, gsm, wcdma\n" \
40 " --set-network-roaming <mode>: Set roaming preference:\n" \
41 " Available modes: any, off, only\n" \
42 " --network-scan: Initiate network scan\n" \
43 " --network-register: Initiate network register\n" \
44 " --set-plmn: Register at specified network\n" \
45 " --mcc <mcc>: Mobile Country Code (0 - auto)\n" \
46 " --mnc <mnc>: Mobile Network Code\n" \
47 " --get-signal-info: Get signal strength info\n" \
48 " --get-serving-system: Get serving system info\n" \