diff options
author | John Crispin <john@openwrt.org> | 2015-01-20 06:33:49 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-01-20 06:33:49 +0000 |
commit | eb6acdf6b4b90ace25bc5194c81442a84dd0a026 (patch) | |
tree | 7602fb2bd7efa71e45f8ccc0f454c0c7fb06c345 /target/linux/ramips/base-files/lib | |
parent | 7aba4f15399afcbdcea93144861aedbb9f3206af (diff) | |
download | mtk-20170518-eb6acdf6b4b90ace25bc5194c81442a84dd0a026.zip mtk-20170518-eb6acdf6b4b90ace25bc5194c81442a84dd0a026.tar.gz mtk-20170518-eb6acdf6b4b90ace25bc5194c81442a84dd0a026.tar.bz2 |
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
Diffstat (limited to 'target/linux/ramips/base-files/lib')
0 files changed, 0 insertions, 0 deletions