-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: BR: Support limited discoverable mode
Add a Kconfig BT_LIMITED_DISCOVERABLE_TIME_SPAN to set the timeout for limited discoverable mode. Add a argument `limited` to function `bt_br_set_discoverable()` to support the limited discoverable mode. When enabling discoverable mode with `limited` is true, both write LIAC and GIAC to controller and set the bit 13 of COD in function `bt_br_set_discoverable()`. And start a delay worker with the timeout CONFIG_BT_LIMITED_DISCOVERABLE_TIME_SPAN to disable the discoverable mode. When disabling discoverable mode, only set GIAC to controller and clear bit 13 of COD. Signed-off-by: Lyle Zhu <[email protected]>
- Loading branch information
1 parent
838c011
commit 1738e46
Showing
6 changed files
with
199 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters