[PATCH] adapter: Fix setting discoverable mode from settings

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

 



Discoverable mode was not set to correct value read from settings.
---
 src/adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/adapter.c b/src/adapter.c
index 55f03a4..6ff20e1 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2630,7 +2630,7 @@ static void load_config(struct btd_adapter *adapter)
 	} else if (stored_discoverable != adapter->discoverable) {
 		if (adapter->connectable)
 			mgmt_set_discoverable(adapter->dev_id,
-						adapter->discoverable,
+						stored_discoverable,
 						adapter->discov_timeout);
 		else
 			adapter->toggle_discoverable = true;
-- 
1.8.0

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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