diff options
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 | ||||
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 0a3a10a76b6c..d987c795ba14 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -283,6 +283,8 @@ struct hci_dev { | |||
283 | __s8 adv_tx_power; | 283 | __s8 adv_tx_power; |
284 | __u8 adv_data[HCI_MAX_AD_LENGTH]; | 284 | __u8 adv_data[HCI_MAX_AD_LENGTH]; |
285 | __u8 adv_data_len; | 285 | __u8 adv_data_len; |
286 | __u8 scan_rsp_data[HCI_MAX_AD_LENGTH]; | ||
287 | __u8 scan_rsp_data_len; | ||
286 | 288 | ||
287 | int (*open)(struct hci_dev *hdev); | 289 | int (*open)(struct hci_dev *hdev); |
288 | int (*close)(struct hci_dev *hdev); | 290 | int (*close)(struct hci_dev *hdev); |
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 7450626b7704..e71c98fedc9b 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -195,6 +195,9 @@ static void hci_cc_reset(struct hci_dev *hdev, struct sk_buff *skb) | |||
195 | 195 | ||
196 | memset(hdev->adv_data, 0, sizeof(hdev->adv_data)); | 196 | memset(hdev->adv_data, 0, sizeof(hdev->adv_data)); |
197 | hdev->adv_data_len = 0; | 197 | hdev->adv_data_len = 0; |
198 | |||
199 | memset(hdev->scan_rsp_data, 0, sizeof(hdev->scan_rsp_data)); | ||
200 | hdev->scan_rsp_data_len = 0; | ||
198 | } | 201 | } |
199 | 202 | ||
200 | static void hci_cc_write_local_name(struct hci_dev *hdev, struct sk_buff *skb) | 203 | static void hci_cc_write_local_name(struct hci_dev *hdev, struct sk_buff *skb) |