From: Matti Laakso Date: Sun, 20 Nov 2016 21:27:34 +0000 (+0200) Subject: nas: fix network scan X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=23a6a70a77b120ce89b265ccda6fe037b27e960b;p=project%2Fuqmi.git nas: fix network scan Signed-off-by: Matti Laakso --- 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;