summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAyush Garg <ayush.garg@samsung.com>2021-03-17 16:52:14 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-19 10:12:52 +0200
commit18df2bc13b1f0bce0338ccc77b184a2fa6a6645e (patch)
tree5f1bbe35527c23a86656b13b853f6ba5f366db4f /net
parent879a96d817ed7268712ed65e6551ed4654d86ce8 (diff)
Bluetooth: Fix incorrect status handling in LE PHY UPDATE event
[ 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>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index e0a542849735..4676e4b0be2b 100644
--- 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);