[BlueZ PATCH v1] adv_monitor: Avoid skipping non-discoverable dev on Monitor match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do no skip a non-discoverable device if it matches any Advertisement
Monitor.

Reviewed-by: mcchou@xxxxxxxxxx
Reviewed-by: alainmichaud@xxxxxxxxxx
Signed-off-by: Manish Mandlik <mmandlik@xxxxxxxxxx>
---

 src/adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/adapter.c b/src/adapter.c
index 98fc78f1e..2175120f4 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -6656,7 +6656,7 @@ static void update_found_devices(struct btd_adapter *adapter,
 
 	dev = btd_adapter_find_device(adapter, bdaddr, bdaddr_type);
 	if (!dev) {
-		if (!discoverable) {
+		if (!discoverable && !matched_monitors) {
 			eir_data_free(&eir_data);
 			return;
 		}
-- 
2.32.0.288.g62a8d224e6-goog




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux