Bluetooth: mgmt: Fix Experimental Feature Changed event
authorTedd Ho-Jeong An <tedd.an@intel.com>
Wed, 6 Oct 2021 16:32:28 +0000 (09:32 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 7 Oct 2021 15:57:23 +0000 (17:57 +0200)
commitb15bfa4df63529150df9ff0585675f728436e0c1
tree6d935ab3b6e62414dd54b7f9beb6486ade8be76f
parent8b89637dbac2d73d9f3dadf91b4a7dcdb1fc23af
Bluetooth: mgmt: Fix Experimental Feature Changed event

This patch fixes the controller index in the Experimental Features
Changed event for the offload_codec and the quality_report features to
use the actual hdev index instead of non-controller index(0xffff) so the
client can receive the event and know which controller the event is for.

Fixes: ad93315183285 ("Bluetooth: Add offload feature under experimental flag")
Fixes: ae7d925b5c043 ("Bluetooth: Support the quality report events")
Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c