Keep rfcomm tty modem status
Subsystems (2)
PATCH 1/1 Keep rfcomm tty modem status
Keep the modem status around in case the tty really needs it.
Signed-off-by Denis Kenzior <[email protected]>
include/net/bluetooth/rfcomm.h +1 -0
@@ -180,6 +180,7 @@ struct rfcomm_dlc {u8 addr;u8 priority;u8 v24_sig; +u8 remote_v24_sig;u8 mscex;u32 link_mode;
net/bluetooth/rfcomm/core.c +1 -0
@@ -1459,6 +1459,7 @@ static int rfcomm_recv_msc(struct rfcomm_session *s, int cr, struct sk_buff *skbclear_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);
net/bluetooth/rfcomm/tty.c +3 -0
@@ -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
-------------------------------------------------------------------------
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