Closed Bug 938529 Opened 11 years ago Closed 11 years ago

[bluedroid] Set BT_SCAN_MODE to Connectable after Bluetooth turned on

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
1.3 Sprint 5 - 11/22

People

(Reporter: shawnjohnjr, Assigned: shawnjohnjr)

Details

Attachments

(1 file, 1 obsolete file)

[bluedroid] Set BT_SCAN_MODE to Connectable after Bluetooth turned on. Otherwise, Page is disabled. All connection will be blocked.
This patch is based on new architecture after patch sets in Bug 936732 commit.
This can resolve incoming connection request ended up with Page Timeout.
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Comment on attachment 832168 [details] [diff] [review] Bug 938529 - [bluedroid] Set BT_SCAN_MODE to Connectable after Bluetooth turned on Review of attachment 832168 [details] [diff] [review]: ----------------------------------------------------------------- r=me with nit addressed. ::: dom/bluetooth/bluedroid/gonk/BluetoothServiceBluedroid.cpp @@ +167,5 @@ > BT_LOGD("%s, BT_STATE:%d", __FUNCTION__, aStatus); > nsAutoString signalName; > + bt_property_t prop; > + bt_scan_mode_t mode; > + prop.type = BT_PROPERTY_ADAPTER_SCAN_MODE; nit: please move these variables into the if-block since they are only used inside.
Attachment #832168 - Flags: review?(echou) → review+
The same concern that I have, these variables scope only in if-block, we could hit problem that we resolved previously regarding set_property. So do we really need to change it?
(In reply to Shawn Huang [:shuang] [:shawnjohnjr] from comment #5) > The same concern that I have, these variables scope only in if-block, we > could hit problem that we resolved previously regarding set_property. So do > we really need to change it? All we have to do is make sure arguments passed into set_adapter_property() would be still alive when set_adapter_property() is called.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3 Sprint 5 - 11/22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: