Fix dev_info v1
Change-Id: Id8e1d6cf146d616a58c1115a1ba396a5351122e6
diff --git a/mbtk/mbtk_rild_v2/src/ril_net.c b/mbtk/mbtk_rild_v2/src/ril_net.c
index 2848bf9..3c0ee24 100755
--- a/mbtk/mbtk_rild_v2/src/ril_net.c
+++ b/mbtk/mbtk_rild_v2/src/ril_net.c
@@ -260,8 +260,11 @@
if(band->gsm_band == 0 && band->umts_band == 0
&& band->tdlte_band == 0 && band->fddlte_band == 0 && band->lte_ext_band == 0
+#ifdef MBTK_DEV_INFO_VERSION_2
&& band->nr_3_band == 0 && band->nr_2_band == 0
- && band->nr_1_band == 0 && band->nr_0_band == 0) {
+ && band->nr_1_band == 0 && band->nr_0_band == 0
+#endif
+ ) {
sprintf(cmd, "AT*BAND=%d", band->net_pref);
} else {
log_hex("BAND_SUPPORT", &band_info.band_support, sizeof(mbtk_band_info_t));
@@ -282,6 +285,7 @@
if(band->lte_ext_band == 0) {
band->lte_ext_band = band_info.band_support.lte_ext_band;
}
+#ifdef MBTK_DEV_INFO_VERSION_2
if(band->nr_3_band == 0) {
band->nr_3_band = band_info.band_support.nr_3_band;
}
@@ -294,7 +298,7 @@
if(band->nr_0_band == 0) {
band->nr_0_band = band_info.band_support.nr_0_band;
}
-
+#endif
if((band->gsm_band & band_info.band_support.gsm_band) != band->gsm_band) {
LOG("GSM band error.");
goto exit;
@@ -319,7 +323,7 @@
LOG("EXT_LTE band error.");
goto exit;
}
-
+#ifdef MBTK_DEV_INFO_VERSION_2
if((band->nr_3_band & band_info.band_support.nr_3_band) != band->nr_3_band) {
LOG("nr_3_band band error.");
goto exit;
@@ -339,7 +343,7 @@
LOG("nr_0_band band error.");
goto exit;
}
-
+#endif
if(band->net_pref == 0xFF) { // No change net_pref.
int tmp_int;
err = at_send_command_singleline(port, "AT*BAND?", "*BAND:", &response);