summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2017-05-23 14:12:28 -0500
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2017-05-24 09:58:27 -0500
commit29d8bf9b50bfc3c43efe89961eed6bf61d62eba7 (patch)
tree8c353433fd2c2d4d53130c9d2c7589b99ed61948 /io-module/mts_io.c
parent066312ffe878c4bee809684eb1fd59366ed73730 (diff)
downloadmts-io-29d8bf9b50bfc3c43efe89961eed6bf61d62eba7.tar.gz
mts-io-29d8bf9b50bfc3c43efe89961eed6bf61d62eba7.tar.bz2
mts-io-29d8bf9b50bfc3c43efe89961eed6bf61d62eba7.zip
mtcap: fix radio power sequence for LNA3 radios
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 1217250..f47e2ea 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -47,7 +47,7 @@
#include "mts_io.h"
-#define DRIVER_VERSION "v1.5.11"
+#define DRIVER_VERSION "v1.5.12"
#define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>"
#define DRIVER_DESC "MTS-IO Controller"
#define DRIVER_NAME "mts-io"
@@ -642,6 +642,17 @@ static DEVICE_ATTR_RO_MTS(dev_attr_imei, "imei",
static DEVICE_ATTR_RO_MTS(dev_attr_eth_mac, "mac-eth",
mts_attr_show_product_info);
+static int get_radio_model_from_product_id() {
+ int rc = RADIO_UNKNOWN;
+
+ if (strstr(id_eeprom.product_id, "LEU1")) rc = RADIO_LEU1;
+ else if (strstr(id_eeprom.product_id, "LNA3")) rc = RADIO_LNA3;
+
+ // Add other radios as needed.
+ return rc;
+}
+
+
/* include on-board lora peripheral */
#include "mts_lora.c"