Closed Bug 1148314 Opened 10 years ago Closed 7 years ago

[Bluetooth] Discoverable property will be true to false immediately while turn Bluetooth state from off to on.

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: iliu, Unassigned)

Details

(Whiteboard: [webbt-api] [POVB])

== Description == Discoverable property will be true to false immediately while turn Bluetooth state from off to on. Since I'm working on Bug 1144532, I find out the problem that we have to fix. == STR == 1. Turn Bluetooth on and set visibility to be enabled. 2. Turn Bluetooth off while visibility is enabled. 3. Turn Bluetooth off --> on. == Expected == The visibility should be false. == Actual == The visibility is changed from enabled to disabled immediately.
Whiteboard: [webbt-api]
Jocelyn, I have checked that the 'discoverable' property is changed to be false while I just turn Bluetooth state off. Under the condition and general use case, I think Gaia would not need to do adapter.setDiscoverable(false) before we do adapter.disable(). If there is any limitation, please feel free to let me know. Thanks.
Flags: needinfo?(joliu)
I put the bug to meta for note.
Blocks: 1130946
Hi Bruce, Could you help to check on this? Thanks, Jocelyn
Flags: needinfo?(joliu) → needinfo?(brsun)
This is caused by the behavior of underlying bluedroid stack on flame. |bt_callbacks_t::adapter_properties_cb| is called with |BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE| first and then with |BT_SCAN_MODE_CONNECTABLE| afterwards. I'm going to try other devices for references.
Flags: needinfo?(brsun)
Assignee: nobody → brsun
On nexus-4 (JB), |bt_callbacks_t::adapter_properties_cb| is called with |BT_SCAN_MODE_NONE| first and then with |BT_SCAN_MODE_CONNECTABLE| afterwards.
On nexus-5 (KK), |bt_callbacks_t::adapter_properties_cb| is called with |BT_SCAN_MODE_NONE| first and then with |BT_SCAN_MODE_CONNECTABLE| afterwards, which is the same as nexus-4 (JB).
The behavior of Bluetooth API v2 on flame is the same as that of Bluetooth API v1.
This issue is related to the underlying behavior of different Bluetooth backend. Gecko handles the status correctly. Un-assign myself from this bug.
Assignee: brsun → nobody
Whiteboard: [webbt-api] → [webbt-api] [POVB]
No longer blocks APIv2 testing since it's POVB and the behavior is also the same as v1.
No longer blocks: 1130946
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.