Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103676
b: refs/heads/master
c: 8b6b3da
h: refs/heads/master
v: v3
  • Loading branch information
Marcel Holtmann committed Jul 14, 2008
1 parent 0a077c7 commit 840c3ce
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca37bdd53b5af06d00e792f2415b93206aa2a541
refs/heads/master: 8b6b3da765af9600b5edd8e3e84a20523e975884
1 change: 1 addition & 0 deletions trunk/include/net/bluetooth/rfcomm.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ struct rfcomm_dlc {
u8 addr;
u8 priority;
u8 v24_sig;
u8 remote_v24_sig;
u8 mscex;
u8 out;

Expand Down
4 changes: 4 additions & 0 deletions trunk/net/bluetooth/rfcomm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,8 +1463,12 @@ static int rfcomm_recv_msc(struct rfcomm_session *s, int cr, struct sk_buff *skb
clear_bit(RFCOMM_TX_THROTTLED, &d->flags);

rfcomm_dlc_lock(d);

d->remote_v24_sig = msc->v24_sig;

if (d->modem_status)
d->modem_status(d, msc->v24_sig);

rfcomm_dlc_unlock(d);

rfcomm_send_msc(s, 0, dlci, msc->v24_sig);
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/bluetooth/rfcomm/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ static int rfcomm_dev_add(struct rfcomm_dev_req *req, struct rfcomm_dlc *dlc)

dlc->owner = dev;
dev->dlc = dlc;

rfcomm_dev_modem_status(dlc, dlc->remote_v24_sig);

rfcomm_dlc_unlock(dlc);

/* It's safe to call __module_get() here because socket already
Expand Down

0 comments on commit 840c3ce

Please sign in to comment.