diff options
author | Jeff Hatch <jhatch@multitech.com> | 2017-05-24 16:25:53 -0500 |
---|---|---|
committer | Jeff Hatch <jhatch@multitech.com> | 2017-05-24 16:25:53 -0500 |
commit | c113a1d5d7ab480039d52a7de6c98f22928ce4c4 (patch) | |
tree | 8c353433fd2c2d4d53130c9d2c7589b99ed61948 /io-module/mts_io.c | |
parent | 066312ffe878c4bee809684eb1fd59366ed73730 (diff) | |
parent | 29d8bf9b50bfc3c43efe89961eed6bf61d62eba7 (diff) | |
download | mts-io-c113a1d5d7ab480039d52a7de6c98f22928ce4c4.tar.gz mts-io-c113a1d5d7ab480039d52a7de6c98f22928ce4c4.tar.bz2 mts-io-c113a1d5d7ab480039d52a7de6c98f22928ce4c4.zip |
Merge branch 'mtcap_lna3' into 'master'
1.5.12
mtcap: fix radio power sequence for LNA3 radios
See merge request !12
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r-- | io-module/mts_io.c | 13 |
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" |