[LEDE-DEV] [PATCH][uqmi 5/5] nas: fix network scan

Matti Laakso malaakso at elisanet.fi
Sun Nov 20 13:27:34 PST 2016


Signed-off-by: Matti Laakso <malaakso at elisanet.fi>
---
 commands-nas.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/commands-nas.c b/commands-nas.c
index fd51a13..5874bfb 100644
--- a/commands-nas.c
+++ b/commands-nas.c
@@ -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;
-- 
2.7.4




More information about the Lede-dev mailing list