Closed
Bug 1227907
Opened 9 years ago
Closed 7 years ago
[bluedroid] Support PAN feature
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
2.6 S2 - 12/4
People
(Reporter: tt, Unassigned, Mentored)
References
Details
Attachments
(1 file, 1 obsolete file)
Support PAN profile for bluedroid
Reporter | ||
Comment 2•9 years ago
|
||
Support PAN feature on bluetoothd
Reporter | ||
Comment 3•9 years ago
|
||
It looks like we need to require the root permission (modify the "init.bluetooth.rc") to build special device nodes(e.g. dev/tun, socket, ..., etc.) for supporting PAN profile. I will file another bug to discussing whether we need to require the root permission on bluetoothd.
Attachment #8692461 -
Flags: review?(tzimmermann)
Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Tom Tung from comment #3)
> Created attachment 8692461 [details]
> Bug 1227907 - Support PAN feature on bluetoothd - bluetoothd change
>
> It looks like we need to require the root permission (modify the
> "init.bluetooth.rc") to build special device nodes(e.g. dev/tun, socket,
> ..., etc.) for supporting PAN profile. I will file another bug to discussing
> whether we need to require the root permission on bluetoothd.
Bug 1228283
Comment 5•9 years ago
|
||
Comment on attachment 8692461 [details]
Bug 1227907 - Support PAN feature on bluetoothd - bluetoothd change
Thanks! Having PAN support is pretty cool.
Just r- until the comments have been addresses, but most of it is trivial.
I'd prefer to not land this patch until there's a patch for the Gecko side and some example code that makes use of PAN.
Attachment #8692461 -
Flags: review?(tzimmermann) → review-
Reporter | ||
Comment 6•9 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #5)
> Comment on attachment 8692461 [details]
> Bug 1227907 - Support PAN feature on bluetoothd - bluetoothd change
>
> Thanks! Having PAN support is pretty cool.
>
> Just r- until the comments have been addresses, but most of it is trivial.
>
> I'd prefer to not land this patch until there's a patch for the Gecko side
> and some example code that makes use of PAN.
Hi Thomas,
Thank you for your reviews and comments! I revise my code and update it to [1].
Actually I have done part of basic functions(connect/disconnect) of PAN profile for the Gecko side and uploaded them as a patch to Bug 972780. Would you like to review it?
[1] https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/40
Comment 7•9 years ago
|
||
Hi Tom
> Actually I have done part of basic functions(connect/disconnect) of PAN
> profile for the Gecko side and uploaded them as a patch to Bug 972780. Would
> you like to review it?
Ah, I see. WebIDL is not my domain, but I can review the IPC protocol code from that patch.
Comment 8•9 years ago
|
||
> [1] https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/40
I left more comments in the pull request.
Reporter | ||
Comment 9•9 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #7)
> Ah, I see. WebIDL is not my domain, but I can review the IPC protocol code
> from that patch.
Hi Thomas,
Thanks! I will split my patch into two patches. One of them will be daemon part and I will ask you for review.
Reporter | ||
Comment 10•9 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #8)
> > [1] https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/40
>
> I left more comments in the pull request.
Thanks! I revise my code and update it again.
Comment 11•9 years ago
|
||
(In reply to Tom Tung from comment #10)
> (In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #8)
> > > [1] https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/40
> >
> > I left more comments in the pull request.
>
> Thanks! I revise my code and update it again.
I left some comments.
Reporter | ||
Comment 12•9 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #11)
> > > > [1] https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/40
>
> I left some comments.
Thanks you! I revise them and update it to [1].
Comment 13•9 years ago
|
||
Comment on attachment 8692461 [details]
Bug 1227907 - Support PAN feature on bluetoothd - bluetoothd change
A few more nits, but it looks good now. Thanks!
Attachment #8692461 -
Flags: review- → review+
Reporter | ||
Comment 14•9 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #13)
> Comment on attachment 8692461 [details]
> Bug 1227907 - Support PAN feature on bluetoothd - bluetoothd change
>
> A few more nits, but it looks good now. Thanks!
Hi Thomas,
Thank you!! But I changed a little part of code, such as (1)PAN's order in |register_func| and |unregister_service| at "src/service.c", (2)Error handling for exceeding interface name bytes in |append_bt_ifname| at "src/bt-pan-io.c", and (3) add "static" for |append_bt_ifname|. I don't change the declaration method for IFNAME_LEN to |static const|, and the reason is that C's compiler don't treats |static const|'s variable as constant. Thus, if I do so, the |padding[IFNAME_LEN]| will cause error.
I just have a little afraid whether there is anything wrong. Can you review it again?
Tom
Reporter | ||
Updated•9 years ago
|
Keywords: checkin-needed
Reporter | ||
Updated•9 years ago
|
Attachment #8692274 -
Attachment is obsolete: true
Comment 15•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.6 S2 - 12/4
Reverted in https://github.com/mozilla-b2g/platform_system_bluetoothd/commit/570531db9e81a871c421b27025ae558022b1015a due to bug 1230589.
Status: RESOLVED → REOPENED
Flags: needinfo?(ttung)
Resolution: FIXED → ---
Comment 17•9 years ago
|
||
Tom,
please test the patch on JB, KK and L. The platform APIs aren't overly stable and this kind of breakage is common. I asked you to not land this patch until you have the Gecko side ready. Please don't re-land before all patches in bug 972780 have an r+.
Reporter | ||
Comment 18•9 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #17)
Thomas,
OK, right now I only test the patch on KK. I will test the patch on other environment.
Sorry for that. I just thought you changed the "r-" to "r+" means I can land this patch, and I was wrong. I will wait until all the patches bug 972780 have an r+.
Tom
Flags: needinfo?(ttung)
Reporter | ||
Comment 19•9 years ago
|
||
(In reply to Wes Kocher (:KWierso) from comment #16)
Thanks, really sorry about that.
Reporter | ||
Comment 20•8 years ago
|
||
Reset the assignee to default since I'm not working on this bug anymore.
Assignee: ttung → nobody
Comment 21•7 years ago
|
||
Firefox OS is not being worked on
Status: REOPENED → RESOLVED
Closed: 9 years ago → 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•