-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands-nas.h
59 lines (56 loc) · 3.45 KB
/
commands-nas.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* uqmi -- tiny QMI support implementation
*
* Copyright (C) 2014-2015 Felix Fietkau <nbd@openwrt.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*/
#define __uqmi_nas_commands \
__uqmi_command(nas_do_set_system_selection, __set-system-selection, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_set_network_modes, set-network-modes, required, CMD_TYPE_OPTION), \
__uqmi_command(nas_initiate_network_register, network-register, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_set_plmn, set-plmn, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_get_plmn, get-plmn, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_set_mcc, mcc, required, CMD_TYPE_OPTION), \
__uqmi_command(nas_set_mnc, mnc, required, CMD_TYPE_OPTION), \
__uqmi_command(nas_network_scan, network-scan, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_get_signal_info, get-signal-info, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_get_serving_system, get-serving-system, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_set_network_preference, set-network-preference, required, CMD_TYPE_OPTION), \
__uqmi_command(nas_set_roaming, set-network-roaming, required, CMD_TYPE_OPTION), \
__uqmi_command(nas_get_system_info, get-system-info, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_get_lte_cphy_ca_info, get-lte-cphy-ca-info, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_get_cell_location_info, get-cell-location-info, no, QMI_SERVICE_NAS), \
__uqmi_command(nas_get_tx_rx_info, get-tx-rx-info, required, QMI_SERVICE_NAS) \
#define nas_helptext \
" --set-network-modes <modes>: Set usable network modes (Syntax: <mode1>[,<mode2>,...])\n" \
" Available modes: all, lte, umts, gsm, cdma, td-scdma\n" \
" --set-network-preference <mode>: Set preferred network mode to <mode>\n" \
" Available modes: auto, gsm, wcdma\n" \
" --set-network-roaming <mode>: Set roaming preference:\n" \
" Available modes: any, off, only\n" \
" --network-scan: Initiate network scan\n" \
" --network-register: Initiate network register\n" \
" --set-plmn: Register at specified network\n" \
" --mcc <mcc>: Mobile Country Code (0 - auto)\n" \
" --mnc <mnc>: Mobile Network Code\n" \
" --get-plmn: Get preferred network selection info\n" \
" --get-signal-info: Get signal strength info\n" \
" --get-serving-system: Get serving system info\n" \
" --get-system-info: Get system info\n" \
" --get-lte-cphy-ca-info: Get LTE Cphy CA Info\n" \
" --get-cell-location-info: Get Cell Location Info\n" \
" --get-tx-rx-info <radio>: Get TX/RX Info (gsm, umts, lte)\n" \