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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 28 Feb 2024 14:43:20 +0000 (09:43 -0500)
commit0bd1fb586235224048c726922db048d1bce6354a
treedafebd923b0b6c644d038d33a552e3f925ad5441
parent61a5ab72edea7ebc3ad2c6beea29d966f528ebfb
Bluetooth: mgmt: Fix limited discoverable off timeout

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>
net/bluetooth/mgmt.c