diff options
-rw-r--r-- | net/bluetooth/hci_event.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index e0aaf3053667..da4c662dbc30 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2371,9 +2371,14 @@ static inline void hci_io_capa_request_evt(struct hci_dev *hdev, struct sk_buff | |||
2371 | 2371 | ||
2372 | bacpy(&cp.bdaddr, &ev->bdaddr); | 2372 | bacpy(&cp.bdaddr, &ev->bdaddr); |
2373 | cp.capability = conn->io_capability; | 2373 | cp.capability = conn->io_capability; |
2374 | cp.oob_data = 0; | ||
2375 | cp.authentication = hci_get_auth_req(conn); | 2374 | cp.authentication = hci_get_auth_req(conn); |
2376 | 2375 | ||
2376 | if ((conn->out == 0x01 || conn->remote_oob == 0x01) && | ||
2377 | hci_find_remote_oob_data(hdev, &conn->dst)) | ||
2378 | cp.oob_data = 0x01; | ||
2379 | else | ||
2380 | cp.oob_data = 0x00; | ||
2381 | |||
2377 | hci_send_cmd(hdev, HCI_OP_IO_CAPABILITY_REPLY, | 2382 | hci_send_cmd(hdev, HCI_OP_IO_CAPABILITY_REPLY, |
2378 | sizeof(cp), &cp); | 2383 | sizeof(cp), &cp); |
2379 | } else { | 2384 | } else { |