Hi Johan,
When an Advertising Instance is removed, the Advertising Removed event
shouldn't be sent to the same socket that issued the Remove
Advertising command (it gets a command complete event instead). The
mgmt_advertising_removed() function already has a parameter for
skipping a specific socket, but there was no code to propagate the
right value to this parameter. This patch fixes the issue by making
sure the intermediate hci_req_clear_adv_instance() function gets the
socket pointer.
Signed-off-by: Johan Hedberg <redacted>
---
net/bluetooth/hci_request.c | 11 ++++++-----
net/bluetooth/hci_request.h | 5 +++--
net/bluetooth/mgmt.c | 6 +++---
3 files changed, 12 insertions(+), 10 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel