Patch "Bluetooth: Fix incorrect status handling in LE PHY UPDATE event" has been added to the 5.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Bluetooth: Fix incorrect status handling in LE PHY UPDATE event

to the 5.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bluetooth-fix-incorrect-status-handling-in-le-phy-up.patch
and it can be found in the queue-5.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 544f07470990ed6a219921f1b7c788a4b239a573
Author: Ayush Garg <ayush.garg@xxxxxxxxxxx>
Date:   Wed Mar 17 16:52:14 2021 +0530

    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@xxxxxxxxxxx>
    Signed-off-by: Marcel Holtmann <marcel@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 7a3e42e75235..82f4973a011d 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -5912,7 +5912,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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux