diff options
| author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2025-09-05 10:29:18 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-02 13:42:50 +0200 |
| commit | 6a0070c5c3ad37827a51b4e7e319b9b1d150aad9 (patch) | |
| tree | e8b755cf10f28a8a4701bce97a0196bde289b252 /net | |
| parent | c957284701353c403b9723c9515f57eaea4beb1b (diff) | |
| download | linux-6a0070c5c3ad37827a51b4e7e319b9b1d150aad9.tar.gz linux-6a0070c5c3ad37827a51b4e7e319b9b1d150aad9.tar.bz2 linux-6a0070c5c3ad37827a51b4e7e319b9b1d150aad9.zip | |
Bluetooth: hci_sync: Fix hci_resume_advertising_sync
[ Upstream commit 1488af7b8b5f9896ea88ee35aa3301713f72737c ]
hci_resume_advertising_sync is suppose to resume all instance paused by
hci_pause_advertising_sync, this logic is used for procedures are only
allowed when not advertising, but instance 0x00 was not being
re-enabled.
Fixes: ad383c2c65a5 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
| -rw-r--r-- | net/bluetooth/hci_sync.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index 7f3f700faebc..dc9209f9f1a6 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -2639,6 +2639,13 @@ static int hci_resume_advertising_sync(struct hci_dev *hdev) hci_remove_ext_adv_instance_sync(hdev, adv->instance, NULL); } + + /* If current advertising instance is set to instance 0x00 + * then we need to re-enable it. + */ + if (!hdev->cur_adv_instance) + err = hci_enable_ext_advertising_sync(hdev, + hdev->cur_adv_instance); } else { /* Schedule for most recent instance to be restarted and begin * the software rotation loop |
