patch-2.4.20 linux-2.4.20/net/bluetooth/hci_conn.c
Next file: linux-2.4.20/net/bluetooth/hci_core.c
Previous file: linux-2.4.20/net/bluetooth/bnep/sock.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/net/bluetooth/hci_conn.c
- Orig date:
Fri Aug 2 17:39:46 2002
diff -urN linux-2.4.19/net/bluetooth/hci_conn.c linux-2.4.20/net/bluetooth/hci_conn.c
@@ -25,7 +25,7 @@
/*
* HCI Connection handling.
*
- * $Id: hci_conn.c,v 1.3 2002/06/25 22:03:39 maxk Exp $
+ * $Id: hci_conn.c,v 1.5 2002/07/17 18:46:25 maxk Exp $
*/
#include <linux/config.h>
@@ -73,7 +73,7 @@
bacpy(&cp.bdaddr, &conn->dst);
if ((ie = inquiry_cache_lookup(hdev, &conn->dst)) &&
- inquiry_entry_age(ie) > INQUIRY_ENTRY_AGE_MAX) {
+ inquiry_entry_age(ie) <= INQUIRY_ENTRY_AGE_MAX) {
cp.pscan_rep_mode = ie->info.pscan_rep_mode;
cp.pscan_mode = ie->info.pscan_mode;
cp.clock_offset = ie->info.clock_offset | __cpu_to_le16(0x8000);
@@ -217,7 +217,7 @@
BT_DBG("%s -> %s", batostr(src), batostr(dst));
- spin_lock_bh(&hdev_list_lock);
+ read_lock_bh(&hdev_list_lock);
list_for_each(p, &hdev_list) {
struct hci_dev *d;
@@ -245,7 +245,7 @@
if (hdev)
hci_dev_hold(hdev);
- spin_unlock_bh(&hdev_list_lock);
+ read_unlock_bh(&hdev_list_lock);
return hdev;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)