diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_scan.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_scan.sh index 2cf6cc5..ef4d1a1 100755 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_scan.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_scan.sh @@ -278,6 +278,10 @@ match_config() platform=$(echo $modem_config | jq -r ".platform") define_connect=$(echo $modem_config | jq -r ".define_connect") modes=$(echo $modem_config | jq -r ".modes[]") + wcdma_available_band=$(echo $modem_config | jq -r ".wcdma_band") + lte_available_band=$(echo $modem_config | jq -r ".lte_band") + nsa_available_band=$(echo $modem_config | jq -r ".nsa_band") + sa_available_band=$(echo $modem_config | jq -r ".sa_band") } get_modem_model() @@ -378,6 +382,12 @@ set qmodem.$section_name.manufacturer=$manufacturer set qmodem.$section_name.platform=$platform set qmodem.$section_name.define_connect=$define_connect EOF + + [ -n "$wcdma_available_band" ] && uci set qmodem.$section_name.wcdma_band=$wcdma_available_band + [ -n "$lte_available_band" ] && uci set qmodem.$section_name.lte_band=$lte_available_band + [ -n "$nsa_available_band" ] && uci set qmodem.$section_name.nsa_band=$nsa_available_band + [ -n "$sa_available_band" ] && uci set qmodem.$section_name.sa_band=$sa_available_band + for mode in $modes; do uci add_list qmodem.$section_name.modes=$mode done diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_support.json b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_support.json index 514e8b0..842b652 100644 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_support.json +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_support.json @@ -7,6 +7,10 @@ "platform": "lte", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/18/19/20/25/26/28/66/71/38/39/40/41", + "nsa_band": "0", + "sa_band": "0", "modes": [ "qmi", "ecm", @@ -21,6 +25,10 @@ "platform": "lte12", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/31/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "0", + "sa_band": "0", "modes": [ "qmi", "ecm", @@ -35,6 +43,10 @@ "platform": "unisoc", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/8", + "lte_band": "1/3/5/8/34/38/39/40/41", + "nsa_band": "1/3/5/8/28/41/77/78/79", + "sa_band": "1/3/5/8/28/41/77/78/79", "modes": [ "ecm", "mbim", @@ -48,6 +60,10 @@ "platform": "unisoc", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/5/8", + "lte_band": "1/3/5/8/34/38/39/40/41", + "nsa_band": "1/3/5/8/28/41/77/78/79", + "sa_band": "1/3/5/8/28/41/77/78/79", "modes": [ "ecm", "mbim", @@ -61,6 +77,10 @@ "platform": "unisoc", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/5/8", + "lte_band": "1/2/3/4/5/7/8/20/28/38/40/41/66", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/66/77/78", + "sa_band": "1/3/5/7/8/20/28/38/40/41/66/77/78", "modes": [ "ecm", "mbim", @@ -74,6 +94,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/5/8", + "lte_band": "1/2/3/4/5/7/8/20/28/38/40/41/66", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/66/77/78", + "sa_band": "1/3/5/7/8/20/28/38/40/41/66/77/78", "modes": [ "qmi", "gobinet", @@ -89,6 +113,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/8", + "lte_band": "1/3/5/8/34/38/39/40/41", + "nsa_band": "41/78/79", + "sa_band": "1/28/41/78/79", "modes": [ "qmi", "gobinet", @@ -104,6 +132,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79/257/258/260/261", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79/257/258/260/261", "modes": [ "qmi", "gobinet", @@ -119,6 +151,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79/257/258/260/261", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79/257/258/260/261", "modes": [ "qmi", "gobinet", @@ -134,6 +170,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/3/5/6/8/19", + "lte_band": "1/3/5/7/8/18/19/20/26/28/32/34/38/39/40/41/42/43", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/77/78/79", + "sa_band": "1/3/5/7/8/20/28/38/40/41/77/78/79", "modes": [ "qmi", "gobinet", @@ -149,6 +189,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -164,6 +208,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -179,6 +227,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -194,6 +246,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -209,6 +265,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -224,6 +284,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/8", + "lte_band": "1/3/5/8/34/38/39/40/41", + "nsa_band": "41/78/79", + "sa_band": "1/3/5/8/28/41/78/79", "modes": [ "qmi", "gobinet", @@ -239,6 +303,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/4/5/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/13/14/18/20/25/26/28/29/30/38/40/41/48/66/70/71/75/76/77/78/79", + "sa_band": "1/2/3/5/7/8/12/13/14/18/20/25/26/28/29/30/38/40/41/48/66/70/71/75/76/77/78/79", "modes": [ "qmi", "gobinet", @@ -254,6 +322,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/5/8", + "lte_band": "1/3/5/7/8/20/28/32/38/40/41/42/43", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/77/78", + "sa_band": "1/3/5/7/8/20/28/38/40/41/77/78", "modes": [ "qmi", "gobinet", @@ -269,6 +341,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/5/8", + "lte_band": "1/3/5/7/8/20/28/32/38/40/41/42/43", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/75/76/77/78", + "sa_band": "1/3/5/7/8/20/28/38/40/41/75/76/77/78", "modes": [ "qmi", "gobinet", @@ -299,6 +375,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/5/8", + "lte_band": "1/3/5/7/8/20/28/32/38/40/41/42/43/71", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/71/75/76/77/78", + "sa_band": "1/3/5/7/8/20/28/38/40/41/71/75/76/77/78", "modes": [ "qmi", "gobinet", @@ -314,6 +394,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "0", + "lte_band": "2/4/5/7/12/13/14/17/25/26/29/30/38/41/42/43/46/48/66/71", + "nsa_band": "2/5/7/12/13/14/25/26/29/30/38/41/48/66/70/71/77/78/257/258/260/261", + "sa_band": "2/5/7/12/13/14/25/26/29/30/38/41/48/66/70/71/77/78/257/258/260/261", "modes": [ "qmi", "gobinet", @@ -537,6 +621,10 @@ "platform": "qualcomm", "data_interface": "usb", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/8", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "rndis" @@ -560,6 +648,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/8", + "lte_band": "1/3/5/8/34/38/39/40/41", + "nsa_band": "41/78/79", + "sa_band": "1/28/41/78/79", "modes": [ "qmi", "gobinet", @@ -571,6 +663,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -582,6 +678,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -593,6 +693,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/3/5/6/8/19", + "lte_band": "1/3/5/7/8/18/19/20/26/28/32/34/38/39/40/41/42/43", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/77/78/79", + "sa_band": "1/3/5/7/8/20/28/38/40/41/77/78/79", "modes": [ "qmi", "gobinet", @@ -605,6 +709,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/5/8", + "lte_band": "1/3/5/7/8/20/28/32/38/40/41/42/43", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/77/78", + "sa_band": "1/3/5/7/8/20/28/38/40/41/77/78", "modes": [ "qmi", "gobinet", @@ -616,6 +724,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -627,6 +739,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/2/3/4/5/6/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", + "sa_band": "1/2/3/5/7/8/12/20/25/28/38/40/41/48/66/71/77/78/79", "modes": [ "qmi", "gobinet", @@ -638,6 +754,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/2/4/5/8/19", + "lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71", + "nsa_band": "1/2/3/5/7/8/12/13/14/18/20/25/26/28/29/30/38/40/41/48/66/70/71/75/76/77/78/79", + "sa_band": "1/2/3/5/7/8/12/13/14/18/20/25/26/28/29/30/38/40/41/48/66/70/71/75/76/77/78/79", "modes": [ "qmi", "gobinet", @@ -649,6 +769,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/5/8", + "lte_band": "1/3/5/7/8/20/28/32/38/40/41/42/43", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/75/76/77/78", + "sa_band": "1/3/5/7/8/20/28/38/40/41/75/76/77/78", "modes": [ "qmi", "gobinet", @@ -671,6 +795,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "1/5/8", + "lte_band": "1/3/5/7/8/20/28/32/38/40/41/42/43/71", + "nsa_band": "1/3/5/7/8/20/28/38/40/41/71/75/76/77/78", + "sa_band": "1/3/5/7/8/20/28/38/40/41/71/75/76/77/78", "modes": [ "qmi", "gobinet", @@ -682,6 +810,10 @@ "platform": "qualcomm", "data_interface": "pcie", "define_connect": "1", + "wcdma_band": "0", + "lte_band": "2/4/5/7/12/13/14/17/25/26/29/30/38/41/42/43/46/48/66/71", + "nsa_band": "2/5/7/12/13/14/25/26/29/30/38/41/48/66/70/71/77/78/257/258/260/261", + "sa_band": "2/5/7/12/13/14/25/26/29/30/38/41/48/66/70/71/77/78/257/258/260/261", "modes": [ "qmi", "gobinet", @@ -863,4 +995,4 @@ } } } -} \ No newline at end of file +} diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/quectel.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/quectel.sh index a0fb13b..664e8f1 100755 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/quectel.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/quectel.sh @@ -518,6 +518,10 @@ get_lockband_nr() lte_avalible_band="1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,34,38,39,40,41,42,66,71" nsa_nr_avalible_band="1,2,3,5,7,8,12,20,25,28,38,40,41,48,66,71,77,78,79,257,258,260,261" sa_nr_avalible_band="1,2,3,5,7,8,12,20,25,28,38,40,41,48,66,71,77,78,79" + [ -n $(uci -q get qmodem.$config_section.sa_band) ] && sa_nr_avalible_band=$(uci -q get qmodem.$config_section.sa_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.nsa_band) ] && nsa_nr_avalible_band=$(uci -q get qmodem.$config_section.nsa_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.lte_band) ] && lte_avalible_band=$(uci -q get qmodem.$config_section.lte_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.wcdma_band) ] && wcdma_avalible_band=$(uci -q get qmodem.$config_section.wcdma_band | tr '/' ',') gw_band=$(at $at_port $get_wcdma_config_command |grep -e "+QNWPREFCFG: " ) lte_band=$(at $at_port $get_lte_config_command|grep -e "+QNWPREFCFG: ") nsa_nr_band=$(at $at_port $get_nsa_nr_config_command|grep -e "+QNWPREFCFG: ") @@ -626,6 +630,10 @@ get_lockband_lte12() lte_avalible_band="1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,34,38,39,40,41,42,66,71" nsa_nr_avalible_band="1,2,3,5,7,8,12,20,25,28,38,40,41,48,66,71,77,78,79,257,258,260,261" sa_nr_avalible_band="1,2,3,5,7,8,12,20,25,28,38,40,41,48,66,71,77,78,79" + [ -n $(uci -q get qmodem.$config_section.sa_band) ] && sa_nr_avalible_band=$(uci -q get qmodem.$config_section.sa_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.nsa_band) ] && nsa_nr_avalible_band=$(uci -q get qmodem.$config_section.nsa_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.lte_band) ] && lte_avalible_band=$(uci -q get qmodem.$config_section.lte_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.wcdma_band) ] && wcdma_avalible_band=$(uci -q get qmodem.$config_section.wcdma_band | tr '/' ',') gw_band=$(at $at_port $get_wcdma_config_command |grep -e "+QNWPREFCFG: " ) lte_band=$(at $at_port $get_lte_config_command|grep -e "+QNWPREFCFG: ") nsa_nr_band=$(at $at_port $get_nsa_nr_config_command|grep -e "+QNWPREFCFG: ") @@ -690,6 +698,10 @@ get_lockband_unisoc() lte_avalible_band="1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,34,38,39,40,41,42,66,71" nsa_nr_avalible_band="1,2,3,5,7,8,12,20,25,28,38,40,41,48,66,71,77,78,79,257,258,260,261" sa_nr_avalible_band="1,2,3,5,7,8,12,20,25,28,38,40,41,48,66,71,77,78,79" + [ -n $(uci -q get qmodem.$config_section.sa_band) ] && sa_nr_avalible_band=$(uci -q get qmodem.$config_section.sa_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.nsa_band) ] && nsa_nr_avalible_band=$(uci -q get qmodem.$config_section.nsa_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.lte_band) ] && lte_avalible_band=$(uci -q get qmodem.$config_section.lte_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.wcdma_band) ] && wcdma_avalible_band=$(uci -q get qmodem.$config_section.wcdma_band | tr '/' ',') gw_band=$(at $at_port $get_wcdma_config_command |grep -e "+QNWPREFCFG: " ) lte_band=$(at $at_port $get_lte_config_command|grep -e "+QNWPREFCFG: ") nsa_nr_band=$(at $at_port $get_nsa_nr_config_command|grep -e "+QNWPREFCFG: ") @@ -1677,3 +1689,4 @@ cell_info() ;; esac } + diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/simcom.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/simcom.sh index 03282bc..afcebd1 100644 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/simcom.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/simcom.sh @@ -377,6 +377,10 @@ get_lockband_nr() lte_avalible_band="1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,34,38,39,40,41,42,43,48,66,71" nsa_nr_avalible_band="1,2,3,5,7,8,12,20,28,38,40,41,48,66,71,77,78,79" sa_nr_avalible_band="1,2,3,5,7,8,12,20,28,38,40,41,48,66,71,77,78,79" + [ -n $(uci -q get qmodem.$config_section.sa_band) ] && sa_nr_avalible_band=$(uci -q get qmodem.$config_section.sa_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.nsa_band) ] && nsa_nr_avalible_band=$(uci -q get qmodem.$config_section.nsa_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.lte_band) ] && lte_avalible_band=$(uci -q get qmodem.$config_section.lte_band | tr '/' ',') + [ -n $(uci -q get qmodem.$config_section.wcdma_band) ] && wcdma_avalible_band=$(uci -q get qmodem.$config_section.wcdma_band | tr '/' ',') gw_band=$(at $at_port $get_wcdma_config_command |grep -e "+CSYSSEL: " ) lte_band=$(at $at_port $get_lte_config_command|grep -e "+CSYSSEL: ") nsa_nr_band=$(at $at_port $get_nsa_nr_config_command|grep -e "+CSYSSEL: ") @@ -1012,3 +1016,4 @@ cell_info() ;; esac } +