]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: mgmt: Fix limited discoverable off timeout
authorFrédéric Danis <frederic.danis@collabora.com>
Mon, 22 Jan 2024 16:59:55 +0000 (17:59 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:14 +0000 (18:19 -0400)
commitbdfc6e5310e5e146bd7dd09bd38b3ac981661b13
tree9d4472974961efc04e29a06b4e6784ace542baeb
parent3ead59bafad05f2967ae2438c0528d53244cfde5
Bluetooth: mgmt: Fix limited discoverable off timeout

[ Upstream commit 0bd1fb586235224048c726922db048d1bce6354a ]

LIMITED_DISCOVERABLE flag is not reset from Class of Device and
advertisement on limited discoverable timeout. This prevents to pass PTS
test GAP/DISC/LIMM/BV-02-C

Calling set_discoverable_sync as when the limited discovery is set
correctly update the Class of Device and advertisement.

Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/mgmt.c