summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
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"