diff options
author | John Klug <john.klug@multitech.com> | 2017-09-01 18:02:57 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-09-06 09:51:23 -0500 |
commit | ced6639aecb9f093e36ee0a6d676c3dde363ce59 (patch) | |
tree | 304dff48edd1041a282929bb00a973dd503f60e2 /io-module/mtcap.c | |
parent | a447551d0421c5dab50a8493d52f3f2635c89661 (diff) | |
download | mts-io-ced6639aecb9f093e36ee0a6d676c3dde363ce59.tar.gz mts-io-ced6639aecb9f093e36ee0a6d676c3dde363ce59.tar.bz2 mts-io-ced6639aecb9f093e36ee0a6d676c3dde363ce59.zip |
Remove radio-reset on MTCAP when radio not preesnt. Add MTCDTIP
Diffstat (limited to 'io-module/mtcap.c')
-rw-r--r-- | io-module/mtcap.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/io-module/mtcap.c b/io-module/mtcap.c index f8b7d4b..804b364 100644 --- a/io-module/mtcap.c +++ b/io-module/mtcap.c @@ -440,7 +440,15 @@ static struct attribute *mtcap_0_0_platform_attributes[] = { &dev_attr_reset_monitor_intervals.attr, &dev_attr_eth_reset_mtcap.attr, + &dev_attr_led_status.attr, + &dev_attr_led_cd_gpio.attr, + &dev_attr_led_lora_gpio_mtcap.attr, + &dev_attr_led_wifi_gpio_mtcap.attr, + &dev_attr_wlan_en_gpio_mtcap.attr, + &dev_attr_wlan_rst_gpio_mtcap.attr, + + /* Set to NULL if no radio -- should be 1st radio attribute */ &dev_attr_radio_power_mtcap.attr, &dev_attr_radio_reset_mtcap.attr, @@ -448,16 +456,15 @@ static struct attribute *mtcap_0_0_platform_attributes[] = { &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, - &dev_attr_led_lora_gpio_mtcap.attr, - &dev_attr_led_wifi_gpio_mtcap.attr, - - &dev_attr_wlan_en_gpio_mtcap.attr, - &dev_attr_wlan_rst_gpio_mtcap.attr, NULL, }; +static int +is_radio_power_attr(struct attribute *attr) +{ + return (attr == &dev_attr_radio_power_mtcap.attr); +} + static struct attribute_group mtcap_0_0_platform_attribute_group = { .attrs = mtcap_0_0_platform_attributes }; |