提交 5e9fae48 编写于 作者: M Michał Narajowski 提交者: Marcel Holtmann

Bluetooth: Add supported data types to ext info changed event

This patch adds EIR data to extended info changed event.
Signed-off-by: NMichał Narajowski <michal.narajowski@codecoup.pl>
Signed-off-by: NSzymon Janc <szymon.janc@codecoup.pl>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 6a9e90bf
...@@ -954,12 +954,18 @@ static int read_ext_controller_info(struct sock *sk, struct hci_dev *hdev, ...@@ -954,12 +954,18 @@ static int read_ext_controller_info(struct sock *sk, struct hci_dev *hdev,
static int ext_info_changed(struct hci_dev *hdev, struct sock *skip) static int ext_info_changed(struct hci_dev *hdev, struct sock *skip)
{ {
struct mgmt_ev_ext_info_changed ev; char buf[512];
struct mgmt_ev_ext_info_changed *ev = (void *)buf;
u16 eir_len;
ev.eir_len = cpu_to_le16(0); memset(buf, 0, sizeof(buf));
eir_len = append_eir_data_to_buf(hdev, ev->eir);
ev->eir_len = cpu_to_le16(eir_len);
return mgmt_limited_event(MGMT_EV_EXT_INFO_CHANGED, hdev, &ev, return mgmt_limited_event(MGMT_EV_EXT_INFO_CHANGED, hdev, ev,
sizeof(ev), HCI_MGMT_EXT_INFO_EVENTS, skip); sizeof(*ev) + eir_len,
HCI_MGMT_EXT_INFO_EVENTS, skip);
} }
static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev) static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册