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>
This commit is contained in:
committed by
Marcel Holtmann
parent
f3d3444a4d
commit
d2f5a196d7
@@ -1123,6 +1123,7 @@ void hci_sock_dev_event(struct hci_dev *hdev, int event);
|
|||||||
int mgmt_control(struct sock *sk, struct msghdr *msg, size_t len);
|
int mgmt_control(struct sock *sk, struct msghdr *msg, size_t len);
|
||||||
int mgmt_index_added(struct hci_dev *hdev);
|
int mgmt_index_added(struct hci_dev *hdev);
|
||||||
int mgmt_index_removed(struct hci_dev *hdev);
|
int mgmt_index_removed(struct hci_dev *hdev);
|
||||||
|
int mgmt_new_settings(struct hci_dev *hdev);
|
||||||
int mgmt_set_powered_failed(struct hci_dev *hdev, int err);
|
int mgmt_set_powered_failed(struct hci_dev *hdev, int err);
|
||||||
int mgmt_powered(struct hci_dev *hdev, u8 powered);
|
int mgmt_powered(struct hci_dev *hdev, u8 powered);
|
||||||
int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable);
|
int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable);
|
||||||
|
@@ -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);
|
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 cmd_lookup {
|
||||||
struct sock *sk;
|
struct sock *sk;
|
||||||
struct hci_dev *hdev;
|
struct hci_dev *hdev;
|
||||||
|
Reference in New Issue
Block a user