Diff between 45a70b63e0610b51ee2039af99c4aa678fbd20bc and c136ebbc3332a2af3281cc86074698f2c1626765
Changed Files
| File | Additions | Deletions | Status |
| src/adapter.c | +2 | -0 | modified |
Full Patch
diff --git a/src/adapter.c b/src/adapter.c
index f286bbd..b2d19dd 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -7039,6 +7039,8 @@ static void read_info_complete(uint8_t status, uint16_t length,
if (!kernel_conn_control)
set_mode(adapter, MGMT_OP_SET_CONNECTABLE, 0x01);
+ else if (adapter->current_settings & MGMT_SETTING_CONNECTABLE)
+ set_mode(adapter, MGMT_OP_SET_CONNECTABLE, 0x00);
if (adapter->stored_discoverable && !adapter->discoverable_timeout)
set_discoverable(adapter, 0x01, 0);