Bluetooth: use inclusive language in HCI role comments
[ Upstream commit 74be523ce6
]
This patch replaces some non-inclusive terms based on the appropriate
language mapping table compiled by the Bluetooth SIG:
https://specificationrefs.bluetooth.com/language-mapping/Appropriate_Language_Mapping_Table.pdf
Specifically, these terms are replaced:
master -> initiator (for smp) or central (everything else)
slave -> responder (for smp) or peripheral (everything else)
The #define preprocessor terms are unchanged for now to not disturb
dependent APIs.
Signed-off-by: Archie Pusaka <apusaka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c024f6f11d
commit
d763aa352c
@ -240,7 +240,7 @@ int hci_disconnect(struct hci_conn *conn, __u8 reason)
|
||||
{
|
||||
BT_DBG("hcon %p", conn);
|
||||
|
||||
/* When we are master of an established connection and it enters
|
||||
/* When we are central of an established connection and it enters
|
||||
* the disconnect timeout, then go ahead and try to read the
|
||||
* current clock offset. Processing of the result is done
|
||||
* within the event handling and hci_clock_offset_evt function.
|
||||
@ -1065,16 +1065,16 @@ struct hci_conn *hci_connect_le(struct hci_dev *hdev, bdaddr_t *dst,
|
||||
|
||||
hci_req_init(&req, hdev);
|
||||
|
||||
/* Disable advertising if we're active. For master role
|
||||
/* Disable advertising if we're active. For central role
|
||||
* connections most controllers will refuse to connect if
|
||||
* advertising is enabled, and for slave role connections we
|
||||
* advertising is enabled, and for peripheral role connections we
|
||||
* anyway have to disable it in order to start directed
|
||||
* advertising.
|
||||
*/
|
||||
if (hci_dev_test_flag(hdev, HCI_LE_ADV))
|
||||
__hci_req_disable_advertising(&req);
|
||||
|
||||
/* If requested to connect as slave use directed advertising */
|
||||
/* If requested to connect as peripheral use directed advertising */
|
||||
if (conn->role == HCI_ROLE_SLAVE) {
|
||||
/* If we're active scanning most controllers are unable
|
||||
* to initiate advertising. Simply reject the attempt.
|
||||
|
Reference in New Issue
Block a user