From: John Crispin Date: Tue, 20 Jan 2015 06:33:49 +0000 (+0000) Subject: comgt: Allow using non-TTY devices X-Git-Tag: reboot~4621 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=eb6acdf6b4b90ace25bc5194c81442a84dd0a026;hp=eb6acdf6b4b90ace25bc5194c81442a84dd0a026;p=openwrt%2Fopenwrt.git 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 SVN-Revision: 44054 ---