patch-2.4.25 linux-2.4.25/net/bluetooth/hci_core.c

Next file: linux-2.4.25/net/bluetooth/hci_event.c
Previous file: linux-2.4.25/net/bluetooth/hci_conn.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/net/bluetooth/hci_core.c linux-2.4.25/net/bluetooth/hci_core.c
@@ -408,6 +408,7 @@
 
 	hci_dev_lock_bh(hdev);
 	if (inquiry_cache_age(hdev) > INQUIRY_CACHE_AGE_MAX || 
+					inquiry_cache_empty(hdev) ||
 					ir.flags & IREQ_CACHE_FLUSH) {
 		inquiry_cache_flush(hdev);
 		do_inquiry = 1;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)