hci_request.c (5c49bcce5c124406920843af65574104aaaa3309) | hci_request.c (cbbdfa6f331980c6786b4ca5df53c37b90df3246) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 4 Copyright (C) 2014 Intel Corporation 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License version 2 as 8 published by the Free Software Foundation; --- 664 unchanged lines hidden (view full) --- 673 674 memset(&cp, 0, sizeof(cp)); 675 cp.enable = LE_SCAN_DISABLE; 676 hci_req_add(req, HCI_OP_LE_SET_SCAN_ENABLE, sizeof(cp), &cp); 677 } 678 679 /* Disable address resolution */ 680 if (use_ll_privacy(hdev) && | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 4 Copyright (C) 2014 Intel Corporation 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License version 2 as 8 published by the Free Software Foundation; --- 664 unchanged lines hidden (view full) --- 673 674 memset(&cp, 0, sizeof(cp)); 675 cp.enable = LE_SCAN_DISABLE; 676 hci_req_add(req, HCI_OP_LE_SET_SCAN_ENABLE, sizeof(cp), &cp); 677 } 678 679 /* Disable address resolution */ 680 if (use_ll_privacy(hdev) && |
681 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && |
|
681 hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION) && !rpa_le_conn) { 682 __u8 enable = 0x00; | 682 hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION) && !rpa_le_conn) { 683 __u8 enable = 0x00; |
684 |
|
683 hci_req_add(req, HCI_OP_LE_SET_ADDR_RESOLV_ENABLE, 1, &enable); 684 } 685} 686 687static void del_from_white_list(struct hci_request *req, bdaddr_t *bdaddr, 688 u8 bdaddr_type) 689{ 690 struct hci_cp_le_del_from_white_list cp; --- 174 unchanged lines hidden (view full) --- 865{ 866 struct hci_dev *hdev = req->hdev; 867 868 if (hdev->scanning_paused) { 869 bt_dev_dbg(hdev, "Scanning is paused for suspend"); 870 return; 871 } 872 | 685 hci_req_add(req, HCI_OP_LE_SET_ADDR_RESOLV_ENABLE, 1, &enable); 686 } 687} 688 689static void del_from_white_list(struct hci_request *req, bdaddr_t *bdaddr, 690 u8 bdaddr_type) 691{ 692 struct hci_cp_le_del_from_white_list cp; --- 174 unchanged lines hidden (view full) --- 867{ 868 struct hci_dev *hdev = req->hdev; 869 870 if (hdev->scanning_paused) { 871 bt_dev_dbg(hdev, "Scanning is paused for suspend"); 872 return; 873 } 874 |
873 if (use_ll_privacy(hdev) && addr_resolv) { | 875 if (use_ll_privacy(hdev) && 876 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && 877 addr_resolv) { |
874 u8 enable = 0x01; | 878 u8 enable = 0x01; |
879 |
|
875 hci_req_add(req, HCI_OP_LE_SET_ADDR_RESOLV_ENABLE, 1, &enable); 876 } 877 878 /* Use ext scanning if set ext scan param and ext scan enable is 879 * supported 880 */ 881 if (use_ext_scan(hdev)) { 882 struct hci_cp_le_set_ext_scan_params *ext_param_cp; --- 2350 unchanged lines hidden --- | 880 hci_req_add(req, HCI_OP_LE_SET_ADDR_RESOLV_ENABLE, 1, &enable); 881 } 882 883 /* Use ext scanning if set ext scan param and ext scan enable is 884 * supported 885 */ 886 if (use_ext_scan(hdev)) { 887 struct hci_cp_le_set_ext_scan_params *ext_param_cp; --- 2350 unchanged lines hidden --- |