summaryrefslogtreecommitdiff
path: root/include/btle_hci_int.h
diff options
context:
space:
mode:
authorPaul Fagerburg <pfagerburg@google.com>2020-07-27 15:52:15 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-28 22:59:41 +0000
commit6efabc79d3519baa56ba1c065035a491fc6918ec (patch)
tree9981d7bbdc897ef485226c8f13000c4a2ef83403 /include/btle_hci_int.h
parent63498074bd3a77b28d2a96ef43aeceed51aa2bde (diff)
downloadchrome-ec-6efabc79d3519baa56ba1c065035a491fc6918ec.tar.gz
ec: change usage of whitelist/blacklist
Google is working to change its source code to use more inclusive language. To that end, replace the terms "whitelist", "blacklist", and similar with inclusive alternatives. BUG=b:162262297 BRANCH=None TEST=`grep -Eirl "(white|black)[ _\-]*list" .` The only results are in "private/nordic_keyboard/sdk8.0.0" which is not our code. Signed-off-by: Paul Fagerburg <pfagerburg@google.com> Change-Id: Ie5210b98e1096c22d0e9284c101a42820bd3d79d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321549 Tested-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'include/btle_hci_int.h')
-rw-r--r--include/btle_hci_int.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/btle_hci_int.h b/include/btle_hci_int.h
index 32349eff61..ba0b3e6041 100644
--- a/include/btle_hci_int.h
+++ b/include/btle_hci_int.h
@@ -2236,7 +2236,7 @@ struct hciLeSetScanParams {
uint16_t scanInterval; /* in units of 0.625ms, 4..0x4000 */
uint16_t scanWindow; /* in units of 0.625ms, 4..0x4000 */
uint8_t useOwnRandomAddr;
- uint8_t onlyWhitelist;
+ uint8_t onlyAllowlist;
} __packed;
struct hciCmplLeSetScanParams {
uint8_t status;
@@ -2255,7 +2255,7 @@ struct hciCmplLeSetScanEnable {
struct hciLeCreateConnection {
uint16_t scanInterval; /* in units of 0.625ms, 4..0x4000 */
uint16_t scanWindow; /* in units of 0.625ms, 4..0x4000 */
- uint8_t connectToAnyWhitelistedDevice; /* if so, ignore next 2 params */
+ uint8_t connectToAnyAllowlistedDevice; /* if so, ignore next 2 params */
uint8_t peerRandomAddr;
uint8_t peerMac[6];
uint8_t useOwnRandomAddr;
@@ -2272,32 +2272,32 @@ struct hciCmplLeCreateConnectionCancel {
uint8_t status;
} __packed;
-#define HCI_CMD_LE_Read_White_List_Size 0x000F /* complete */
-struct hciCmplLeReadWhiteListSize {
+#define HCI_CMD_LE_Read_Allow_List_Size 0x000F /* complete */
+struct hciCmplLeReadAllowListSize {
uint8_t status;
- uint8_t whitelistSize;
+ uint8_t allowlistSize;
} __packed;
-#define HCI_CMD_LE_Clear_White_List 0x0010 /* complete */
-struct hciCmplLeClearWhiteList {
+#define HCI_CMD_LE_Clear_Allow_List 0x0010 /* complete */
+struct hciCmplLeClearAllowList {
uint8_t status;
} __packed;
-#define HCI_CMD_LE_Add_Device_To_White_List 0x0011 /* complete */
-struct hciLeAddDeviceToWhiteList {
+#define HCI_CMD_LE_Add_Device_To_Allow_List 0x0011 /* complete */
+struct hciLeAddDeviceToAllowList {
uint8_t randomAddr;
uint8_t mac[6];
} __packed;
-struct hciCmplLeAddDeviceToWhiteList {
+struct hciCmplLeAddDeviceToAllowList {
uint8_t status;
} __packed;
-#define HCI_CMD_LE_Remove_Device_From_White_List 0x0012 /* complete */
-struct hciLeRemoveDeviceFromWhiteList {
+#define HCI_CMD_LE_Remove_Device_From_Allow_List 0x0012 /* complete */
+struct hciLeRemoveDeviceFromAllowList {
uint8_t randomAddr;
uint8_t mac[6];
} __packed;
-struct hciCmplLeRemoveDeviceFromWhiteList {
+struct hciCmplLeRemoveDeviceFromAllowList {
uint8_t status;
} __packed;