diff options
author | Jeff Hatch <jhatch@multitech.com> | 2024-02-16 15:22:29 -0600 |
---|---|---|
committer | Jeff Hatch <jhatch@multitech.com> | 2024-02-16 15:22:29 -0600 |
commit | 404810002f0b4ce92a027376f946f077eefefb27 (patch) | |
tree | 019af08d4c5dee224420cfd52e1c661bc526eec6 /src | |
parent | d2fc936a71fc31fe9b42c64391454fa2f84bd234 (diff) | |
parent | 46e62807fddafc9602f06002c99653b7189767f8 (diff) | |
download | mts-io-sysfs-404810002f0b4ce92a027376f946f077eefefb27.tar.gz mts-io-sysfs-404810002f0b4ce92a027376f946f077eefefb27.tar.bz2 mts-io-sysfs-404810002f0b4ce92a027376f946f077eefefb27.zip |
Merge branch 'im/MTX-5234/remove_unused_capa' into 'master'
[MTX-5234] IoT Router 2023: api/system/capabilities - remove capa that are outdated and not used (GP-2252)
See merge request !17
Diffstat (limited to 'src')
-rw-r--r-- | src/Device/Device.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/Device/Device.cpp b/src/Device/Device.cpp index 7f92e75..fca88e7 100644 --- a/src/Device/Device.cpp +++ b/src/Device/Device.cpp @@ -40,8 +40,6 @@ std::map<std::string, bool> Device::capabilityList = { {"battery", false}, {"bluetooth", false}, {"cell", false}, - {"cellPpp", false}, - {"cellWwan", false}, {"din", false}, {"dout", false}, {"externalSerialPort", false}, @@ -351,19 +349,6 @@ void Device::mapFileToCapability() { S_IFREG) { /* lora-network-server is a regular file */ capabilityList["loraNetworkServer"] = true; } - if (capabilityList["cell"]) { /* only on devices with Cellular */ - if (fileType("/dev/cdc-wdm0") == S_IFCHR) { - /* Cellular modem is wwan/qmi/mbim character device */ - capabilityList["cellWwan"] = true; - } - if (!fileExists("/dev/modem_at0") && fileType("/dev/modem_at1") == S_IFCHR) { - /* Cellular modem without PPP support, probably uses ECM WWAN */ - capabilityList["cellWwan"] = true; - } else { - /* all other radios - assume PPP is supported */ - capabilityList["cellPpp"] = true; - } - } if (fileType("/dev/ext_serial") == S_IFCHR) { /* ext_serial is a character device */ capabilityList["externalSerialPort"] = true; |