兼容 dev_info v1
Change-Id: I5659a6275f96f68867d4fd753c05915576dee568
diff --git a/mbtk/mbtk_rild_v2/src/ril_net.c b/mbtk/mbtk_rild_v2/src/ril_net.c
index 6f2ad50..2848bf9 100755
--- a/mbtk/mbtk_rild_v2/src/ril_net.c
+++ b/mbtk/mbtk_rild_v2/src/ril_net.c
@@ -366,7 +366,7 @@
at_response_free(response);
}
-
+#ifdef MBTK_DEV_INFO_VERSION_2
// Only support 4G/5G
if(band_info.net_support & MBTK_NET_SUPPORT_5G) {
// AT*band=19,0,0,482,134742231,0,24576,256,134217877,0
@@ -384,6 +384,13 @@
sprintf(cmd, "AT*BAND=%d,%d,%d,%d,%d", band->net_pref, band->gsm_band, band->umts_band, band->tdlte_band, band->fddlte_band);
}
}
+#else
+ if(band->lte_ext_band > 0) {
+ sprintf(cmd, "AT*BAND=%d,%d,%d,%d,%d,,,,%d", band->net_pref, band->gsm_band, band->umts_band, band->tdlte_band, band->fddlte_band, band->lte_ext_band);
+ } else {
+ sprintf(cmd, "AT*BAND=%d,%d,%d,%d,%d", band->net_pref, band->gsm_band, band->umts_band, band->tdlte_band, band->fddlte_band);
+ }
+#endif
}
err = at_send_command(port, cmd, &response);
@@ -526,7 +533,9 @@
}
band->fddlte_band = (uint32)tmp_int;
- if(band_info.net_support & MBTK_NET_SUPPORT_5G) {
+#ifdef MBTK_DEV_INFO_VERSION_2
+ if(band_info.net_support & MBTK_NET_SUPPORT_5G)
+ {
err = at_tok_nextint(&line, &tmp_int);
if (err < 0)
{
@@ -555,6 +564,7 @@
}
band->nr_0_band = (uint32)tmp_int;
}
+#endif
// roamingConfig
err = at_tok_nextint(&line, &tmp_int);