Parent: 80107630396d3d3a3984c599e0cb9b015be0499c
Author: Pauli Virtanen <pav@iki.fi>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2023-08-03 00:00:38
Tree: 1badc2ea636b703696abec88b2d5055a829470d1
btdev: check error conditions for HCI_Create_Connection_Cancel Create Connection Cancel shall return Command Complete with error status when there is no Create Connection that can be canceled. In these cases, we should not send a (spurious) Connection Complete event. Fix by keeping a list of pending Create Connection commands, and returning command errors if there is none pending at the moment.
Diffstat
| M | emulator/btdev.c | | | 86 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - |
| M | monitor/bt.h | | | 4 | ++++ |
2 files changed, 79 insertions(+), 11 deletions(-)