net: uqmi: fix blocking in endless loops when unplugging device
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Fri, 29 Sep 2017 13:35:30 +0000 (16:35 +0300)
committerAlexander Couzens <lynxis@fe80.eu>
Mon, 9 Oct 2017 14:07:42 +0000 (16:07 +0200)
commita5d016f3615c10a326a507dcb24afe8adcd48396
tree4a2ae0ba70b54956f37d6761c8c977db56b64268
parentf8595a51d9558bbccb904eb39f43479bda8a8797
net: uqmi: fix blocking in endless loops when unplugging device

If you unplug a QMI device, the /dev/cdc-wdmX device
disappears but uqmi will continue to poll it endlessly.

Then, when you plug it back, you have 2 uqmi processes,
and that's bad, because 2 processes talking QMI to the
same device [and the same time] doesn't seem to work well.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh