Commit 91641b79 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller

Bluetooth: Fix spelling mistakes

Fix some spelling mistakes in comments:
udpate  ==> update
retreive  ==> retrieve
accidentially  ==> accidentally
correspondig  ==> corresponding
adddress  ==> address
estabilish  ==> establish
commplete  ==> complete
Unkown  ==> Unknown
triggerd  ==> triggered
transtion  ==> transition
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8ab1784d
...@@ -758,7 +758,7 @@ void hci_le_conn_failed(struct hci_conn *conn, u8 status) ...@@ -758,7 +758,7 @@ void hci_le_conn_failed(struct hci_conn *conn, u8 status)
conn->state = BT_CLOSED; conn->state = BT_CLOSED;
/* If the status indicates successful cancellation of /* If the status indicates successful cancellation of
* the attempt (i.e. Unkown Connection Id) there's no point of * the attempt (i.e. Unknown Connection Id) there's no point of
* notifying failure since we'll go back to keep trying to * notifying failure since we'll go back to keep trying to
* connect. The only exception is explicit connect requests * connect. The only exception is explicit connect requests
* where a timeout + cancel does indicate an actual failure. * where a timeout + cancel does indicate an actual failure.
......
...@@ -648,7 +648,7 @@ static int hci_init3_req(struct hci_request *req, unsigned long opt) ...@@ -648,7 +648,7 @@ static int hci_init3_req(struct hci_request *req, unsigned long opt)
*/ */
/* If the controller supports Extended Scanner Filter /* If the controller supports Extended Scanner Filter
* Policies, enable the correspondig event. * Policies, enable the corresponding event.
*/ */
if (hdev->le_features[0] & HCI_LE_EXT_SCAN_POLICY) if (hdev->le_features[0] & HCI_LE_EXT_SCAN_POLICY)
events[1] |= 0x04; /* LE Direct Advertising events[1] |= 0x04; /* LE Direct Advertising
...@@ -1454,7 +1454,7 @@ static int hci_dev_do_open(struct hci_dev *hdev) ...@@ -1454,7 +1454,7 @@ static int hci_dev_do_open(struct hci_dev *hdev)
} }
/* Check for valid public address or a configured static /* Check for valid public address or a configured static
* random adddress, but let the HCI setup proceed to * random address, but let the HCI setup proceed to
* be able to determine if there is a public address * be able to determine if there is a public address
* or not. * or not.
* *
...@@ -3544,7 +3544,7 @@ void hci_conn_params_clear_disabled(struct hci_dev *hdev) ...@@ -3544,7 +3544,7 @@ void hci_conn_params_clear_disabled(struct hci_dev *hdev)
if (params->auto_connect != HCI_AUTO_CONN_DISABLED) if (params->auto_connect != HCI_AUTO_CONN_DISABLED)
continue; continue;
/* If trying to estabilish one time connection to disabled /* If trying to establish one time connection to disabled
* device, leave the params, but mark them as just once. * device, leave the params, but mark them as just once.
*/ */
if (params->explicit_connect) { if (params->explicit_connect) {
...@@ -4279,7 +4279,7 @@ void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 opcode) ...@@ -4279,7 +4279,7 @@ void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 opcode)
return hdev->sent_cmd->data + HCI_COMMAND_HDR_SIZE; return hdev->sent_cmd->data + HCI_COMMAND_HDR_SIZE;
} }
/* Send HCI command and wait for command commplete event */ /* Send HCI command and wait for command complete event */
struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen,
const void *param, u32 timeout) const void *param, u32 timeout)
{ {
......
...@@ -6032,7 +6032,7 @@ static bool hci_get_cmd_complete(struct hci_dev *hdev, u16 opcode, ...@@ -6032,7 +6032,7 @@ static bool hci_get_cmd_complete(struct hci_dev *hdev, u16 opcode,
return true; return true;
} }
/* Check if request ended in Command Status - no way to retreive /* Check if request ended in Command Status - no way to retrieve
* any extra parameters in this case. * any extra parameters in this case.
*/ */
if (hdr->evt == HCI_EV_CMD_STATUS) if (hdr->evt == HCI_EV_CMD_STATUS)
......
...@@ -1130,7 +1130,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, ...@@ -1130,7 +1130,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
if (!hci_sock_gen_cookie(sk)) { if (!hci_sock_gen_cookie(sk)) {
/* In the case when a cookie has already been assigned, /* In the case when a cookie has already been assigned,
* then there has been already an ioctl issued against * then there has been already an ioctl issued against
* an unbound socket and with that triggerd an open * an unbound socket and with that triggered an open
* notification. Send a close notification first to * notification. Send a close notification first to
* allow the state transition to bounded. * allow the state transition to bounded.
*/ */
...@@ -1326,9 +1326,9 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, ...@@ -1326,9 +1326,9 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
if (hci_pi(sk)->channel == HCI_CHANNEL_CONTROL) { if (hci_pi(sk)->channel == HCI_CHANNEL_CONTROL) {
if (!hci_sock_gen_cookie(sk)) { if (!hci_sock_gen_cookie(sk)) {
/* In the case when a cookie has already been /* In the case when a cookie has already been
* assigned, this socket will transtion from * assigned, this socket will transition from
* a raw socket into a control socket. To * a raw socket into a control socket. To
* allow for a clean transtion, send the * allow for a clean transition, send the
* close notification first. * close notification first.
*/ */
skb = create_monitor_ctrl_close(sk); skb = create_monitor_ctrl_close(sk);
......
...@@ -3341,7 +3341,7 @@ static int set_local_name(struct sock *sk, struct hci_dev *hdev, void *data, ...@@ -3341,7 +3341,7 @@ static int set_local_name(struct sock *sk, struct hci_dev *hdev, void *data,
} }
/* The name is stored in the scan response data and so /* The name is stored in the scan response data and so
* no need to udpate the advertising data here. * no need to update the advertising data here.
*/ */
if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING))
__hci_req_update_scan_rsp_data(&req, hdev->cur_adv_instance); __hci_req_update_scan_rsp_data(&req, hdev->cur_adv_instance);
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
((struct smp_dev *)((struct l2cap_chan *)((hdev)->smp_data))->data) ((struct smp_dev *)((struct l2cap_chan *)((hdev)->smp_data))->data)
/* Low-level debug macros to be used for stuff that we don't want /* Low-level debug macros to be used for stuff that we don't want
* accidentially in dmesg, i.e. the values of the various crypto keys * accidentally in dmesg, i.e. the values of the various crypto keys
* and the inputs & outputs of crypto functions. * and the inputs & outputs of crypto functions.
*/ */
#ifdef DEBUG #ifdef DEBUG
...@@ -560,7 +560,7 @@ int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]) ...@@ -560,7 +560,7 @@ int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16])
return err; return err;
/* This is unlikely, but we need to check that /* This is unlikely, but we need to check that
* we didn't accidentially generate a debug key. * we didn't accidentally generate a debug key.
*/ */
if (crypto_memneq(smp->local_pk, debug_pk, 64)) if (crypto_memneq(smp->local_pk, debug_pk, 64))
break; break;
...@@ -1902,7 +1902,7 @@ static u8 sc_send_public_key(struct smp_chan *smp) ...@@ -1902,7 +1902,7 @@ static u8 sc_send_public_key(struct smp_chan *smp)
return SMP_UNSPECIFIED; return SMP_UNSPECIFIED;
/* This is unlikely, but we need to check that /* This is unlikely, but we need to check that
* we didn't accidentially generate a debug key. * we didn't accidentally generate a debug key.
*/ */
if (crypto_memneq(smp->local_pk, debug_pk, 64)) if (crypto_memneq(smp->local_pk, debug_pk, 64))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment