From 9202cc83c31579f56736de15ebc74a4faa9ae8b3 Mon Sep 17 00:00:00 2001 From: Serhii Voloshynov Date: Fri, 23 Sep 2022 16:11:44 +0300 Subject: add missing has-radio --- io-module/mts-io.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'io-module/mts-io.c') diff --git a/io-module/mts-io.c b/io-module/mts-io.c index 59106a4..b8b9c94 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -822,17 +822,13 @@ mts_id_eeprom_load(void) return -ENODEV; } - /* If we are an MTCPM-0.0, the base board sets the radio existance, and we always - * add the radio-reset, etc */ - if (strncmp(id_eeprom.hw_version,HW_VERSION_MTCPM_0_0,sizeof HW_VERSION_MTCPM_0_0) != 0) { - if (id_eeprom.eeprom_layout_version == 0) { - noradio = ! mts_has_radio(id_eeprom.product_id,sizeof id_eeprom.product_id); - } else { - has_cellular_capaflag = 1; - noradio = ! DEVICE_CAPA(id_eeprom.capa, CAPA_CELLULAR); - } - log_debug("mts_id_eeprom_load: noradio=%d",noradio); - } + if (id_eeprom.eeprom_layout_version == 0) { + noradio = ! mts_has_radio(id_eeprom.product_id,sizeof id_eeprom.product_id); + } else { + has_cellular_capaflag = 1; + noradio = ! DEVICE_CAPA(id_eeprom.capa, CAPA_CELLULAR); + } + log_debug("mts_id_eeprom_load: noradio=%d",noradio); if (found_board(HW_VERSION_MTCAP_0_0,MTCAP_0_0,&hw_version_str,&mts_hw_version) || found_board(HW_VERSION_MTCAP_0_1,MTCAP_0_1,&hw_version_str,&mts_hw_version) || -- cgit v1.2.3