]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
Bluetooth: Fix handling of HCI_LE_Advertising_Set_Terminated event
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 23 Jun 2021 03:59:02 +0000 (20:59 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:45:54 +0000 (09:45 +0200)
commit71b850a57c5b96fb83ed77ddf9616ef0960398d1
treef2778eda623e55e2d71ce00b4076375d3012beaf
parent867592c2a42f2b6de204cd10ae02fc43490f6442
Bluetooth: Fix handling of HCI_LE_Advertising_Set_Terminated event

BugLink: https://bugs.launchpad.net/bugs/1938199
[ Upstream commit 23837a6d7a1a61818ed94a6b8af552d6cf7d32d5 ]

Error status of this event means that it has ended due reasons other
than a connection:

 'If advertising has terminated as a result of the advertising duration
 elapsing, the Status parameter shall be set to the error code
 Advertising Timeout (0x3C).'

 'If advertising has terminated because the
 Max_Extended_Advertising_Events was reached, the Status parameter
 shall be set to the error code Limit Reached (0x43).'

Fixes: acf0aeae431a0 ("Bluetooth: Handle ADv set terminated event")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/bluetooth/hci_event.c