mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Bluetooth: Set appearance only for LE capable controllers
Setting appearance on controllers without LE support will result in No Supported error. Signed-off-by: Michał Narajowski <[email protected]> Signed-off-by: Johan Hedberg <[email protected]>
This commit is contained in:
parent
e74317f43f
commit
af4168c5a9
1 changed files with 4 additions and 0 deletions
|
|
@ -3178,6 +3178,10 @@ static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data,
|
|||
|
||||
BT_DBG("");
|
||||
|
||||
if (!lmp_le_capable(hdev))
|
||||
return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_APPEARANCE,
|
||||
MGMT_STATUS_NOT_SUPPORTED);
|
||||
|
||||
apperance = le16_to_cpu(cp->appearance);
|
||||
|
||||
hci_dev_lock(hdev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue