]> git.baikalelectronics.ru Git - 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)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:45 +0000 (07:12 +0200)
commit1b6e8dcf2326d85591f6a7b58295b0a625e82f40
tree051e88775799c01f6e58c159f2481994c61011fc
parente70b53a7922e4ced4f1afe5759bca341fe82d85f
Bluetooth: Fix handling of HCI_LE_Advertising_Set_Terminated event

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: 6bc20ed664a57 ("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>
net/bluetooth/hci_event.c