add --network-register
authorFelix Fietkau <nbd@openwrt.org>
Sun, 17 Feb 2013 15:25:32 +0000 (16:25 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 17 Feb 2013 15:25:32 +0000 (16:25 +0100)
commands-nas.c
commands-nas.h

index 81975b28a4d96f4d4b9825bf3db2f88e14844c48..eacf99475f7d1e83ac0e41bf2e0ad6a7870fa60d 100644 (file)
@@ -45,6 +45,15 @@ cmd_nas_set_network_modes_prepare(struct qmi_dev *qmi, struct qmi_request *req,
        return QMI_CMD_REQUEST;
 }
 
+#define cmd_nas_initiate_network_register_cb no_cb
+static enum qmi_cmd_result
+cmd_nas_initiate_network_register_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
+{
+       static struct qmi_nas_initiate_network_register_request register_req;
+       qmi_set_nas_initiate_network_register_request(msg, &register_req);
+       return QMI_CMD_REQUEST;
+}
+
 static void
 cmd_nas_get_signal_info_cb(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg)
 {
index 0cc11a138dad27c737e4d5425a1a691dd8190d6e..6b5c05d33c3f260ca348d4845bc9cb4479be2881 100644 (file)
@@ -1,9 +1,11 @@
 #define __uqmi_nas_commands \
        __uqmi_command(nas_set_network_modes, set-network-modes, required, QMI_SERVICE_NAS), \
+       __uqmi_command(nas_initiate_network_register, network-register, no, QMI_SERVICE_NAS), \
        __uqmi_command(nas_get_signal_info, get-signal-info, no, QMI_SERVICE_NAS) \
 
 #define nas_helptext \
                "  --set-network-modes <modes>:      Set preferred network mode (Syntax: <mode1>[,<mode2>,...])\n" \
                "                                    Available modes: all, lte, umts, gsm, cdma, td-scdma\n" \
+               "  --network-register:               Initiate network register\n" \
                "  --get-signal-info:                Get signal strength info\n"