comgt: Allow using non-TTY devices
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 20 Jan 2015 06:33:49 +0000 (06:33 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 20 Jan 2015 06:33:49 +0000 (06:33 +0000)
commit4c188987a7225cb579c674daba9f2842a970e4dd
treee358b221616faa3d7c48203d19188f2b0208483c
parent386a34758a1c4a1e4454acbf898e6c3c1f350c2d
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44054 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/utils/comgt/patches/004-check_tty.patch [new file with mode: 0644]