diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-09-02 16:55:30 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-09-02 19:07:57 +0300 |
commit | 5774e8c8834fcfb2995203b137fb3b886a3f2c82 (patch) | |
tree | e407ccae2b60bd50ced21d736eb2d571efd9b7e9 /input | |
parent | 3ba95c2c6e3ae23b385d70e96cd733626ca87244 (diff) | |
download | bluez-5774e8c8834fcfb2995203b137fb3b886a3f2c82.tar.gz |
Fix Connected status when PS3 BD remote connects
The PS3 BD remote isn't connectable from the outside,
so the only way to use it with BlueZ is to make it connect. But
the code to create a new connection was never setting the
connected flags on the fake connection, so the remote wrongly
appeared as disconnected even though it was present.
Diffstat (limited to 'input')
-rw-r--r-- | input/device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/input/device.c b/input/device.c index 5187f418..0bcbbdb7 100644 --- a/input/device.c +++ b/input/device.c @@ -640,6 +640,8 @@ static int hidp_add_connection(const struct input_device *idev, fake->disconnect = fake_hid_disconnect; fake->priv = fake_hid; err = fake_hid_connadd(fake, iconn->intr_io, fake_hid); + if (err == 0) + fake->flags |= FI_FLAG_CONNECTED; goto cleanup; } |