Bluetooth: refactor set_exp_feature with a feature table
authorJoseph Hwang <josephsih@chromium.org>
Sun, 15 Aug 2021 12:17:15 +0000 (20:17 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Aug 2021 14:16:50 +0000 (16:16 +0200)
commit93fb70bc112e922def6e50b37e20ccfce0c67c0a
tree4b5365b2dc43c9cd0fc2ae2b65a3a874f60e7dcf
parent76a56bbd810dd62b203c4960ab6e224da0d99705
Bluetooth: refactor set_exp_feature with a feature table

This patch refactors the set_exp_feature with a feature table
consisting of UUIDs and the corresponding callback functions.
In this way, a new experimental feature setting function can be
simply added with its UUID and callback function.

Signed-off-by: Joseph Hwang <josephsih@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c