Parent: fd184248cfd1cb0e05b1f257a20188c11ed3a99f
Author: Marcin Kraglak <marcin.kraglak@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-03-13 13:28:23
Tree: 3192f5d11bcc74f65df39ab768d7f2e7227c7a21
plugins/policy: Try reconnect Control/Target services If state of Control/Remote services changed from CONNECTING to DISCONNECTED, and error is set to -EAGAIN, set random timer and try reconnect. This approach is described in AVRCP Spec 1.5 4.1.1: "If both devices open an AVCTP channel at the same time both channels shall be closed and each device shall wait a random time (not more than 1 s and not less than 100ms) and then try to open the AVCTP channel again."
Diffstat
| M | plugins/policy.c | | | 57 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - |
1 files changed, 49 insertions(+), 8 deletions(-)