linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 1/4] Bluetooth: Use __l2cap_no_conn_pending helper
@ 2012-11-15 16:14 Andrei Emeltchenko
  2012-11-15 16:14 ` [RFC 2/4] Bluetooth: Fix sending L2CAP Create Chan Req Andrei Emeltchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Andrei Emeltchenko @ 2012-11-15 16:14 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

Use helper instead of test_bit. This is the only place left using
test CONF_CONNECT_PEND flag.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
 net/bluetooth/l2cap_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 04e26e6..751d8a7 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -6469,7 +6469,7 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
 			continue;
 		}
 
-		if (test_bit(CONF_CONNECT_PEND, &chan->conf_state)) {
+		if (!__l2cap_no_conn_pending(chan)) {
 			l2cap_chan_unlock(chan);
 			continue;
 		}
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-11-20 17:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-15 16:14 [RFC 1/4] Bluetooth: Use __l2cap_no_conn_pending helper Andrei Emeltchenko
2012-11-15 16:14 ` [RFC 2/4] Bluetooth: Fix sending L2CAP Create Chan Req Andrei Emeltchenko
2012-11-15 23:56   ` Marcel Holtmann
2012-11-15 16:14 ` [RFC 3/4] Bluetooth: Remove unneeded local_amp_id initialization Andrei Emeltchenko
2012-11-15 23:53   ` Marcel Holtmann
2012-11-15 16:14 ` [RFC 4/4] Bluetooth: Set local_amp_id after getting Phylink Completed evt Andrei Emeltchenko
2012-11-15 23:54   ` Marcel Holtmann
2012-11-19 21:28   ` Gustavo Padovan
2012-11-20 15:16     ` [RFC 0/4] Bluetooth: AMP fixes Andrei Emeltchenko
2012-11-20 15:16       ` [RFC 1/4] Bluetooth: Fix sending L2CAP Create Chan Req Andrei Emeltchenko
2012-11-20 15:16       ` [RFC 2/4] Bluetooth: Set local_amp_id after getting Phylink Completed evt Andrei Emeltchenko
2012-11-20 15:16       ` [RFC 3/4] Bluetooth: Improve error message printing Andrei Emeltchenko
2012-11-20 15:16       ` [RFC 4/4] Bluetooth: AMP: Set no FCS for incoming L2CAP chan Andrei Emeltchenko
2012-11-20 17:56         ` Gustavo Padovan
2012-11-15 23:53 ` [RFC 1/4] Bluetooth: Use __l2cap_no_conn_pending helper Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).