From ae3537e309091d07c3a3ea2cf6dac5bff8684bb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C5=82awomir=20Demeszko?= Date: Wed, 17 Dec 2014 19:06:16 +0100 Subject: [PATCH] Add mandatory field to Initiate Network Register MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit According to json data Action field in Initiate Network Register is mandatory. I get "Missing argument" from qmi without it. Signed-off-by: SÅ‚awomir Demeszko --- commands-nas.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands-nas.c b/commands-nas.c index ccc58ab..be06ee4 100644 --- a/commands-nas.c +++ b/commands-nas.c @@ -103,7 +103,10 @@ cmd_nas_set_roaming_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct 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; + static struct qmi_nas_initiate_network_register_request register_req = { + QMI_INIT(action, QMI_NAS_NETWORK_REGISTER_TYPE_AUTOMATIC) + }; + qmi_set_nas_initiate_network_register_request(msg, ®ister_req); return QMI_CMD_REQUEST; } -- 2.25.1