nas: fix network scan
authorMatti Laakso <malaakso@elisanet.fi>
Sun, 20 Nov 2016 21:27:34 +0000 (23:27 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 21 Nov 2016 10:01:58 +0000 (11:01 +0100)
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
commands-nas.c

index fd51a132c1c052852a1c6a2b78191040f6a6650c..5874bfba505c4b9655b097500419aa2b681d4e63 100644 (file)
@@ -364,7 +364,13 @@ cmd_nas_network_scan_cb(struct qmi_dev *qmi, struct qmi_request *req, struct qmi
 static enum qmi_cmd_result
 cmd_nas_network_scan_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
 {
-       struct qmi_nas_network_scan_request sreq = {};
+       struct qmi_nas_network_scan_request sreq = {
+               QMI_INIT(network_type,
+                    QMI_NAS_NETWORK_SCAN_TYPE_GSM |
+                    QMI_NAS_NETWORK_SCAN_TYPE_UMTS |
+                    QMI_NAS_NETWORK_SCAN_TYPE_LTE |
+                    QMI_NAS_NETWORK_SCAN_TYPE_TD_SCDMA),
+       };
 
        qmi_set_nas_network_scan_request(msg, &sreq);
        return QMI_CMD_REQUEST;