Commit 6613baba authored by Alain Michaud's avatar Alain Michaud Committed by Marcel Holtmann

Bluetooth: fix appearance typo in mgmt.c

This change addresses a typo in the set_appearance handler.
Signed-off-by: default avatarAlain Michaud <alainm@chromium.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent bdf2aca7
...@@ -3291,7 +3291,7 @@ static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data, ...@@ -3291,7 +3291,7 @@ static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data,
u16 len) u16 len)
{ {
struct mgmt_cp_set_appearance *cp = data; struct mgmt_cp_set_appearance *cp = data;
u16 apperance; u16 appearance;
int err; int err;
BT_DBG(""); BT_DBG("");
...@@ -3300,12 +3300,12 @@ static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data, ...@@ -3300,12 +3300,12 @@ static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data,
return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_APPEARANCE, return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_APPEARANCE,
MGMT_STATUS_NOT_SUPPORTED); MGMT_STATUS_NOT_SUPPORTED);
apperance = le16_to_cpu(cp->appearance); appearance = le16_to_cpu(cp->appearance);
hci_dev_lock(hdev); hci_dev_lock(hdev);
if (hdev->appearance != apperance) { if (hdev->appearance != appearance) {
hdev->appearance = apperance; hdev->appearance = appearance;
if (hci_dev_test_flag(hdev, HCI_LE_ADV)) if (hci_dev_test_flag(hdev, HCI_LE_ADV))
adv_expire(hdev, MGMT_ADV_FLAG_APPEARANCE); adv_expire(hdev, MGMT_ADV_FLAG_APPEARANCE);
......
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