summaryrefslogtreecommitdiff
path: root/io-module/machine
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-10-29 17:07:43 -0500
committerJohn Klug <john.klug@multitech.com>2020-10-29 17:07:43 -0500
commit7c357edfaad7cd9820d9cb664f33a126a7e25855 (patch)
treed74eb0c5430a995da4404b863c9e8197f665d777 /io-module/machine
parentaca8e691201a46bcdd2e9d9d1df581265d9e6a6c (diff)
downloadmts-io-7c357edfaad7cd9820d9cb664f33a126a7e25855.tar.gz
mts-io-7c357edfaad7cd9820d9cb664f33a126a7e25855.tar.bz2
mts-io-7c357edfaad7cd9820d9cb664f33a126a7e25855.zip
Fix radio-related issues in mts-io4.4.4
Diffstat (limited to 'io-module/machine')
-rw-r--r--io-module/machine/mtcpm.c33
1 files changed, 19 insertions, 14 deletions
diff --git a/io-module/machine/mtcpm.c b/io-module/machine/mtcpm.c
index df771cd..dfffef6 100644
--- a/io-module/machine/mtcpm.c
+++ b/io-module/machine/mtcpm.c
@@ -202,40 +202,40 @@ static struct attribute *mtcpm_platform_attributes[] = {
&dev_attr_usbhub_reset.attr,
&dev_attr_eth_reset.attr,
-
- // radio feature is last to be able to
- // easily remove radio.
- // is_radio_power_attr_mtcdt() searches
- // for this for truncation.
- &dev_attr_radio_power.attr, /* Must be first radio attribute */
+ &dev_attr_has_radio.attr,
+
+ // radio-reset must be first for mtcdt3
&dev_attr_radio_reset.attr,
&dev_attr_radio_reset_backoffs.attr,
&dev_attr_radio_reset_backoff_index.attr,
&dev_attr_radio_reset_backoff_seconds.attr,
+ NULL,
+};
+
+static struct attribute *mtcpm_wifi_bt_attributes[] = {
&dev_attr_wifi_reset_mtcpm.attr,
&dev_attr_bt_reset_mtcpm.attr,
&dev_attr_wifi_bt_int_mtcpm.attr,
-
- &dev_attr_gnss_reset_mtcpm.attr,
- &dev_attr_gnss_int_mtcpm.attr,
&dev_attr_wifi_mac_mtcpm.attr,
- &dev_attr_bluetooth_mac_mtcpm.attr,
- NULL,
+ &dev_attr_bluetooth_mac_mtcpm.attr,
};
-
+static struct attribute *mtcpm_gnss_attributes[] = {
+ &dev_attr_gnss_reset_mtcpm.attr,
+ &dev_attr_gnss_int_mtcpm.attr,
+};
static struct attribute_group mtcpm_platform_attribute_group = {
.attrs = mtcpm_platform_attributes
};
static int
-is_radio_power_attr_mtcpm(struct attribute *attr)
+is_radio_reset_attr_mtcpm(struct attribute *attr)
{
return (attr == &dev_attr_radio_power.attr);
-}
+};
static struct attribute *mtcpm_lora_attributes[] = {
&dev_attr_lora_eui_mtcpm.attr,
@@ -295,3 +295,8 @@ static void mts_cpu_dir_delete(void)
}
}
+static int
+is_radio_reset_attr_mtcdt(struct attribute *attr)
+{
+ return (attr == &dev_attr_radio_reset.attr);
+}