diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-09-20 14:43:47 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-09-20 14:43:47 +0000 |
commit | ffee48e182962699136a618c9fba5961718de0e1 (patch) | |
tree | c77009735783b6d567415624863b82484bb6c1fa | |
parent | bdad9f66c2e7341a73b19e1b2b7ad6dfd0a13df5 (diff) |
StopPeriodicDiscovery: removed the owner verification
-rw-r--r-- | hcid/dbus-adapter.c | 5 | ||||
-rw-r--r-- | hcid/dbus-api.txt | 4 |
2 files changed, 1 insertions, 8 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c index 9edaec79..2d51b22e 100644 --- a/hcid/dbus-adapter.c +++ b/hcid/dbus-adapter.c @@ -2373,11 +2373,6 @@ static DBusHandlerResult handle_dev_stop_periodic_req(DBusConnection *conn, DBus if (!dbus_data->pdisc_active) return error_not_authorized(conn, msg); - /* only the requestor can stop the periodic inquiry */ - if (!dbus_data->pdiscovery_requestor || - strcmp(dbus_data->pdiscovery_requestor, dbus_message_get_sender(msg))) - return error_not_authorized(conn, msg); - /* * Cleanup the discovered devices list and send the cmd to exit * from periodic inquiry mode or cancel remote name request. diff --git a/hcid/dbus-api.txt b/hcid/dbus-api.txt index 42da902b..7205d349 100644 --- a/hcid/dbus-api.txt +++ b/hcid/dbus-api.txt @@ -712,13 +712,11 @@ Methods string GetAddress() void StopPeriodicDiscovery() - This method stops a periodic discovery that was started using - the StartPeriodicDiscovery method. + This method stops a periodic discovery. Possible errors: org.bluez.Error.Failed org.bluez.Error.NotAuthorized - org.bluez.Error.NotInProgress org.bluez.Error.NoSuchAdapter array{uint32} GetRemoteServiceHandles(string address, string match) |