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-01 18:02:57 -0500 |
| commit | 08958c7881357a502ea80a13e4f9e45eb61bffcb (patch) | |
| tree | 304dff48edd1041a282929bb00a973dd503f60e2 /io-module/mtcap.c | |
| parent | 22a9fd546f9020dabd8c9272412cefd941adf020 (diff) | |
| download | mts-io-08958c7881357a502ea80a13e4f9e45eb61bffcb.tar.gz mts-io-08958c7881357a502ea80a13e4f9e45eb61bffcb.tar.bz2 mts-io-08958c7881357a502ea80a13e4f9e45eb61bffcb.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 }; |
