OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by andres-h - 12.08.2019

FS#2439 - comgt hotplug mishandles "bind" event

My 3g modem goes “unavailable” shortly after being plugged in. Even though the device /dev/ttyUSB* exists, “ifup” has no effect and “ifstatus” shows:

{

      "up": false,
      "pending": false,
      "available": false,
      "autostart": true,
      "dynamic": false,
      "proto": "3g",
      "data": {
      },
      "errors": [
              {
                      "subsystem": "interface",
                      "code": "NO_DEVICE"
              }
      ]

}

I found that this is caused by incorrect logic at https://github.com/openwrt/openwrt/blob/7ec092e64125b920aee6d1767dacea3f61b2fa6f/package/network/utils/comgt/files/3g.usb#L17

Namely, the “add” event is followed by “bind” event, which causes:

proto_set_available “$cfg” 0

And BTW, isn’t there a race condition with hotplug at https://github.com/openwrt/openwrt/blob/7ec092e64125b920aee6d1767dacea3f61b2fa6f/package/network/utils/comgt/files/3g.sh#L38 ?

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing