comgt: Allow using non-TTY devices
authorJohn Crispin <john@openwrt.org>
Tue, 20 Jan 2015 06:33:49 +0000 (06:33 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 20 Jan 2015 06:33:49 +0000 (06:33 +0000)
commit38f9e345c5017b9e7f924572a2744a51eb12ff15
treee358b221616faa3d7c48203d19188f2b0208483c
parent18898b3bb0290c5907a8644b3233aebb4d7ec6e4
comgt: Allow using non-TTY devices

Some Huawei mobile broadband sticks utilizing the NCM protocol expose
the control channel as a cdc-wdm device node instead of a virtual TTY.
This device node does not support the terminal ioctls. This patch
adds a check whether the provided device is a TTY or not and does not
attempt to use the terminal ioctls if they are not supported.

v2: reduce diffstat by simplifying code a little
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 44054
package/network/utils/comgt/patches/004-check_tty.patch [new file with mode: 0644]