net: uqmi: fix blocking in endless loops when unplugging device
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 15 Feb 2018 14:15:58 +0000 (15:15 +0100)
committerJohn Crispin <john@phrozen.org>
Sun, 18 Feb 2018 08:34:32 +0000 (09:34 +0100)
commit0393009ec84e0f22d854e8e11e630d393d44efe9
treee0093f12b526f5baebf9910ef91208f358aee77c
parent31ae7381b8db6ba58b1943b26c4a23b04928f363
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