Diff between 92f9d578033bad9067ea448d4fa2ca3773ec5f50 and 226a06430538d4423f0415fde306655d5b97a4c3

Changed Files

File Additions Deletions Status
plugins/hciops.c +0 -1 modified
plugins/mgmtops.c +0 -7 modified
src/adapter.c +0 -8 modified
src/adapter.h +0 -1 modified

Full Patch

diff --git a/plugins/hciops.c b/plugins/hciops.c
index fdc1271..4f287f0 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -3886,7 +3886,6 @@ static struct btd_adapter_ops hci_ops = {
 	.cleanup = hciops_cleanup,
 	.set_powered = hciops_set_powered,
 	.set_discoverable = hciops_set_discoverable,
-	.set_limited_discoverable = hciops_set_limited_discoverable,
 	.set_pairable = hciops_set_pairable,
 	.start_discovery = hciops_start_discovery,
 	.stop_discovery = hciops_stop_discovery,
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 51279ef..89355ad 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -1877,12 +1877,6 @@ static void mgmt_cleanup(void)
 	}
 }
 
-static int mgmt_set_limited_discoverable(int index, gboolean limited)
-{
-	DBG("index %d limited %d", index, limited);
-	return -ENOSYS;
-}
-
 static int mgmt_start_discovery(int index)
 {
 	char buf[MGMT_HDR_SIZE + sizeof(struct mgmt_cp_start_discovery)];
@@ -2407,7 +2401,6 @@ static struct btd_adapter_ops mgmt_ops = {
 	.set_powered = mgmt_set_powered,
 	.set_discoverable = mgmt_set_discoverable,
 	.set_pairable = mgmt_set_pairable,
-	.set_limited_discoverable = mgmt_set_limited_discoverable,
 	.start_discovery = mgmt_start_discovery,
 	.stop_discovery = mgmt_stop_discovery,
 	.set_name = mgmt_set_name,
diff --git a/src/adapter.c b/src/adapter.c
index b9879bd..2695289 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -206,14 +206,6 @@ static uint8_t get_mode(const bdaddr_t *bdaddr, const char *mode)
 		return MODE_UNKNOWN;
 }
 
-static void adapter_set_limited_discoverable(struct btd_adapter *adapter,
-							gboolean limited)
-{
-	DBG("%s", limited ? "TRUE" : "FALSE");
-
-	adapter_ops->set_limited_discoverable(adapter->dev_id, limited);
-}
-
 static struct session_req *session_ref(struct session_req *req)
 {
 	req->refcount++;
diff --git a/src/adapter.h b/src/adapter.h
index c8de289..ceebb97 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -189,7 +189,6 @@ struct btd_adapter_ops {
 	int (*set_discoverable) (int index, gboolean discoverable,
 							uint16_t timeout);
 	int (*set_pairable) (int index, gboolean pairable);
-	int (*set_limited_discoverable) (int index, gboolean limited);
 	int (*start_discovery) (int index);
 	int (*stop_discovery) (int index);