Don't throw out pending data on rfcomm tty
Subsystems (2)
PATCH 1/1 Don't throw out pending data on rfcomm tty
Fix the problem of disappearing packets when the socket is meant to be
used as an rfcomm tty server. The data needs to be queued since packets might arrive after the socket has been connected, but before the tty has been opened
Signed-off-by Denis Kenzior <[email protected]>
net/bluetooth/rfcomm/core.c +1 -1
@@ -457,7 +457,6 @@ int rfcomm_dlc_send(struct rfcomm_dlc *d, struct sk_buff *skb)if (len > d->mtu)return -EINVAL ; -rfcomm_make_uih (skb, d->addr);skb_queue_tail (&d->tx_queue, skb);if (!test_bit (RFCOMM_TX_THROTTLED , &d->flags))
@@ -1675,6 +1674,7 @@ static inline int rfcomm_process_tx(struct rfcomm_dlc *d)return skb_queue_len (&d->tx_queue);while (d->tx_credits && (skb =skb_dequeue (&d->tx_queue))) { +rfcomm_make_uih (skb, d->addr); err =rfcomm_send_frame (d->session, skb->data, skb->len);if (err <0 ) {skb_queue_head (&d->tx_queue, skb);
net/bluetooth/rfcomm/tty.c +53 -1
102 lines not on this page · raw message
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel