summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-10-05 12:01:05 +0200
committerMarcel Holtmann <marcel@holtmann.org>2013-10-05 12:03:38 +0200
commitd2f5a196d7b401b79e2321b24cc0ac8636ffbc17 (patch)
treece813c364ec20ccee8e30ad42970d3d4ad520e2f /net
parentBluetooth: Rename HCI_LE_PERIPHERAL to HCI_ADVERTISING (diff)
downloadlinux-d2f5a196d7b401b79e2321b24cc0ac8636ffbc17.tar.xz
linux-d2f5a196d7b401b79e2321b24cc0ac8636ffbc17.zip
Bluetooth: Add public mgmt function to send New Settings event
A function is needed so that the HCI event processing can ask the mgmt code to emit a new settings event. This is necessary e.g. when the event processing does updates to mgmt related states without any dependency of actual mgmt commands. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/mgmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 7e43d376e2e6..6e808d1d78f3 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -890,6 +890,11 @@ static int new_settings(struct hci_dev *hdev, struct sock *skip)
return mgmt_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, sizeof(ev), skip);
}
+int mgmt_new_settings(struct hci_dev *hdev)
+{
+ return new_settings(hdev, NULL);
+}
+
struct cmd_lookup {
struct sock *sk;
struct hci_dev *hdev;