diff options
| -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) | 
