Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6317
b: refs/heads/master
c: 7b9eb9e
h: refs/heads/master
i:
  6315: 8522573
v: v3
  • Loading branch information
Timo Ter�s authored and David S. Miller committed Aug 29, 2005
1 parent 7743448 commit 1c353f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 85a1e930bf628700e8e9c166b1f5c1c26d3651cc
refs/heads/master: 7b9eb9e2099f6f4acd6a36bcd7820d27c3cf5ee3
7 changes: 6 additions & 1 deletion trunk/net/bluetooth/rfcomm/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,14 @@ static void rfcomm_dev_modem_status(struct rfcomm_dlc *dlc, u8 v24_sig)
struct rfcomm_dev *dev = dlc->owner;
if (!dev)
return;

BT_DBG("dlc %p dev %p v24_sig 0x%02x", dlc, dev, v24_sig);

if ((dev->modem_status & TIOCM_CD) && !(v24_sig & RFCOMM_V24_DV)) {
if (dev->tty && !C_CLOCAL(dev->tty))
tty_hangup(dev->tty);
}

dev->modem_status =
((v24_sig & RFCOMM_V24_RTC) ? (TIOCM_DSR | TIOCM_DTR) : 0) |
((v24_sig & RFCOMM_V24_RTR) ? (TIOCM_RTS | TIOCM_CTS) : 0) |
Expand Down

0 comments on commit 1c353f7

Please sign in to comment.