[Feature][S300][task-view-617][webui] add band information on the network status page
Change-Id: I8c679732c2de6bb0a8ece7fa81fb579fd266245f
diff --git a/lynq/S300/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/S300/ap/app/goahead/interface5.0/zte_web_mgmt.c
index e57fa47..532a94f 100755
--- a/lynq/S300/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/S300/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -3186,6 +3186,7 @@
(void)websWrite(wp, T("\"%s\":\"%s\","), "lte_plmn", "--");
(void)websWrite(wp, T("\"%s\":\"%s\","), "lte_cellid", "--");
(void)websWrite(wp, T("\"%s\":\"%s\"}"), "lte_pci", "--");
+ (void)websWrite(wp, T("\"%s\":\"%s\"}"), "lte_band", "--");
}
else
{
@@ -3194,7 +3195,7 @@
{
printf("Parameter[%d]: %s\n", i, params[i]);
}
- printf("======set lte_plmn=%s lte_pci=%s lte_rsrq=%s\n", params[5], params[6], params[10]);
+ printf("======set lte_plmn=%s lte_pci=%s lte_band=%s lte_rsrq=%s\n", params[5], params[6], params[8], params[10]);
float db_value = get_rsrq_db_value(atoi(params[10]));
if (db_value == -1000.0)
{
@@ -3229,6 +3230,7 @@
}
(void)websWrite(wp, T("\"%s\":\"%s\","), "lte_plmn", plmn);
(void)websWrite(wp, T("\"%s\":\"%s\","), "lte_cellid", cell_id);
+ (void)websWrite(wp, T("\"%s\":\"%s\","), "lte_band", params[8]);
(void)websWrite(wp, T("\"%s\":\"%s\"}"), "lte_pci", params[6]);
}
diff --git a/lynq/S300/ap/app/zte_webui/i18n/Messages_en.properties b/lynq/S300/ap/app/zte_webui/i18n/Messages_en.properties
index 12eb7fb..6a50372 100755
--- a/lynq/S300/ap/app/zte_webui/i18n/Messages_en.properties
+++ b/lynq/S300/ap/app/zte_webui/i18n/Messages_en.properties
@@ -453,6 +453,7 @@
rsrp = RSRP
rsrq = RSRQ
plmn = PLMN
+band = BAND
#phonebook
search = Search
diff --git a/lynq/S300/ap/app/zte_webui/i18n/Messages_zh-cn.properties b/lynq/S300/ap/app/zte_webui/i18n/Messages_zh-cn.properties
index 8ef611f..083d6cb 100755
--- a/lynq/S300/ap/app/zte_webui/i18n/Messages_zh-cn.properties
+++ b/lynq/S300/ap/app/zte_webui/i18n/Messages_zh-cn.properties
@@ -455,6 +455,7 @@
rsrp = RSRP
rsrq = RSRQ
plmn = PLMN
+band = BAND
#phonebook
search = 搜索
diff --git a/lynq/S300/ap/app/zte_webui/js/com.js b/lynq/S300/ap/app/zte_webui/js/com.js
index 3daac4e..f1bdf25 100755
--- a/lynq/S300/ap/app/zte_webui/js/com.js
+++ b/lynq/S300/ap/app/zte_webui/js/com.js
@@ -512,7 +512,8 @@
rsrq: result.lte_rsrq,
plmn: result.lte_plmn,
pci: result.lte_pci,
- cellid: result.lte_cellid
+ cellid: result.lte_cellid,
+ band: result.lte_band
};
}
}
diff --git a/lynq/S300/ap/app/zte_webui/js/net.js b/lynq/S300/ap/app/zte_webui/js/net.js
index 92b5c90..b4866ce 100755
--- a/lynq/S300/ap/app/zte_webui/js/net.js
+++ b/lynq/S300/ap/app/zte_webui/js/net.js
@@ -4245,6 +4245,7 @@
target.rsrq = ko.observable(network_status.rsrq);
target.plmn = ko.observable(network_status.plmn);
target.cellid = ko.observable(network_status.cellid);
+ target.band = ko.observable(network_status.band);
}
function initialize() {
diff --git a/lynq/S300/ap/app/zte_webui/subpg/network_info.html b/lynq/S300/ap/app/zte_webui/subpg/network_info.html
index bbef515..84dabe4 100755
--- a/lynq/S300/ap/app/zte_webui/subpg/network_info.html
+++ b/lynq/S300/ap/app/zte_webui/subpg/network_info.html
@@ -52,6 +52,10 @@
<label data-trans="cellid" class="col-xs-5"></label>
<label data-bind="text: cellid" class="col-xs-7"></label>
</div>
+ <div class="row form-group">
+ <label data-trans="band" class="col-xs-5"></label>
+ <label data-bind="text: band" class="col-xs-7"></label>
+ </div>
</div>
</div>
</form>