Parent: 0273602c19e6c392622f3eabd866e6be618ecc6d
Author: Archie Pusaka <apusaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-01-30 20:32:54
Tree: 7a058f2858af845bb532e7dcafd2ef019fc1f36e
Monitor: Remove handle before assigning It is possible to have some handles not removed, for example the host may decide not to wait for disconnection complete event when it is suspending. In this case, when the peer device reconnected, we might have two of the some handle assigned and create problem down the road. This patch solves the issue by always removing any previous handles when assigning a new handle if they are the same. Reviewed-by: Zhengping Jiang <jiangzp@google.com>
Diffstat
| M | monitor/packet.c | | | 79 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 43 insertions(+), 36 deletions(-)