uqmi: Change returned value to QMI_CMD_REQUEST for 'sync' command.
[project/uqmi.git] / commands-dms.h
index a370425..82ae592 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * 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_dms_commands                                                                                            \
        __uqmi_command(dms_get_capabilities, get-capabilities, no, QMI_SERVICE_DMS), \
        __uqmi_command(dms_get_pin_status, get-pin-status, no, QMI_SERVICE_DMS), \
        __uqmi_command(dms_set_new_pin, new-pin, required, CMD_TYPE_OPTION), \
        __uqmi_command(dms_get_iccid, get-iccid, no, QMI_SERVICE_DMS), \
        __uqmi_command(dms_get_imsi, get-imsi, no, QMI_SERVICE_DMS), \
+       __uqmi_command(dms_get_imei, get-imei, no, QMI_SERVICE_DMS), \
        __uqmi_command(dms_get_msisdn, get-msisdn, no, QMI_SERVICE_DMS), \
        __uqmi_command(dms_set_operating_mode, set-device-operating-mode, required, QMI_SERVICE_DMS), \
-       __uqmi_command(dms_reset, reset-dms, no, QMI_SERVICE_DMS) \
+       __uqmi_command(dms_reset, reset-dms, no, QMI_SERVICE_DMS), \
+       __uqmi_command(dms_set_fcc_authentication, fcc-auth, no, QMI_SERVICE_DMS) \
 
 #define dms_helptext \
                "  --get-capabilities:               List device capabilities\n" \
                "    --new-pin <new pin>:            New pin\n" \
                "  --get-iccid:                      Get the ICCID\n" \
                "  --get-imsi:                       Get International Mobile Subscriber ID\n" \
+               "  --get-imei:                       Get International Mobile Equipment ID\n" \
                "  --get-msisdn:                     Get the MSISDN (telephone number)\n" \
                "  --reset-dms:                      Reset the DMS service\n" \
                "  --set-device-operating-mode <m>   Set the device operating mode\n" \
                "                                    (modes: online, low_power, factory_test, offline\n" \
                "                                     reset, shutting_down, persistent_low_power,\n" \
                "                                     mode_only_low_power)\n" \
+               "  --fcc-auth:                       Set FCC authentication\n" \