Bluetooth: mgmt: Fix sending redundant event for Advertising Instance
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 28 Aug 2016 17:53:34 +0000 (20:53 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 1 Sep 2016 16:34:26 +0000 (18:34 +0200)
commit367dd2b155e2297e0fb1743c8c98114ccdb27893
tree27dd9ba599d8d956a3bc989104c5daaf25187bca
parent185338ab421d080c37a72549d3e8c5161a4d0754
Bluetooth: mgmt: Fix sending redundant event for Advertising Instance

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 <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c
net/bluetooth/hci_request.h
net/bluetooth/mgmt.c
This page took 0.0242 seconds and 5 git commands to generate.