summaryrefslogtreecommitdiff
path: root/io-module/mtcdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mtcdt.c')
-rw-r--r--io-module/mtcdt.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/io-module/mtcdt.c b/io-module/mtcdt.c
index b84e67a..0fca7aa 100644
--- a/io-module/mtcdt.c
+++ b/io-module/mtcdt.c
@@ -679,15 +679,10 @@ static struct attribute *mtcdt_platform_attributes[] = {
&dev_attr_hw_version.attr,
&dev_attr_imei.attr,
&dev_attr_eth_mac.attr,
+ &dev_attr_has_radio.attr,
&dev_attr_reset.attr,
&dev_attr_reset_monitor.attr,
&dev_attr_reset_monitor_intervals.attr,
- &dev_attr_radio_power.attr,
- &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,
&dev_attr_led_status.attr,
&dev_attr_led_cd_gpio.attr,
@@ -700,6 +695,13 @@ static struct attribute *mtcdt_platform_attributes[] = {
&dev_attr_led_c_gpio.attr,
&dev_attr_led_d_gpio.attr,
&dev_attr_eth_reset.attr,
+
+ &dev_attr_radio_power.attr,
+ &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,
};
@@ -711,6 +713,7 @@ static struct attribute *mtcdt_0_1_platform_attributes[] = {
&dev_attr_hw_version.attr,
&dev_attr_imei.attr,
&dev_attr_eth_mac.attr,
+ &dev_attr_has_radio.attr,
&dev_attr_reset.attr,
&dev_attr_reset_monitor.attr,
&dev_attr_reset_monitor_intervals.attr,
@@ -731,9 +734,9 @@ static struct attribute *mtcdt_0_1_platform_attributes[] = {
// radio feature is last to be able to
// easily remove radio.
- // is_radio_power_attr_mtcdt() truncates
- // this list.
- &dev_attr_radio_power.attr,
+ // is_radio_power_attr_mtcdt() searches
+ // for this for truncation.
+ &dev_attr_radio_power.attr, /* Must be first radio attribute */
&dev_attr_radio_reset.attr,
&dev_attr_radio_reset_backoffs.attr,
@@ -748,7 +751,7 @@ static struct attribute *mtcdt_0_1_wifi_bt_attributes[] = {
&dev_attr_wifi_bt_ulpwkup.attr,
&dev_attr_wifi_bt_reset.attr,
&dev_attr_wifi_bt_lpmode.attr,
- &dev_attr_wifi_bt_int,
+ &dev_attr_wifi_bt_int.attr,
};
static struct attribute *mtcdt_0_1_gnss_attributes[] = {
@@ -769,4 +772,4 @@ static int
is_radio_power_attr_mtcdt(struct attribute *attr)
{
return (attr == &dev_attr_radio_power.attr);
-} \ No newline at end of file
+}