projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
879a96d
)
Bluetooth: Fix incorrect status handling in LE PHY UPDATE event
author
Ayush Garg
<ayush.garg@samsung.com>
Wed, 17 Mar 2021 11:22:14 +0000
(16:52 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:12:52 +0000
(10:12 +0200)
[ Upstream commit
87df8bcccd2cede62dfb97dc3d4ca1fe66cb4f83
]
Skip updation of tx and rx PHYs values, when PHY Update
event's status is not successful.
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_event.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_event.c
b/net/bluetooth/hci_event.c
index
e0a5428
..
4676e4b
100644
(file)
--- a/
net/bluetooth/hci_event.c
+++ b/
net/bluetooth/hci_event.c
@@
-5897,7
+5897,7
@@
static void hci_le_phy_update_evt(struct hci_dev *hdev, struct sk_buff *skb)
BT_DBG("%s status 0x%2.2x", hdev->name, ev->status);
- if (
!
ev->status)
+ if (ev->status)
return;
hci_dev_lock(hdev);