Closed
Bug 930355
Opened 11 years ago
Closed 10 years ago
Support wifi enable API
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(tracking-b2g:backlog)
People
(Reporter: vchang, Assigned: chucklee)
References
Details
(Whiteboard: [p=2])
Attachments
(2 files, 8 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
Currently, we use onenabled/ondisalbed DOMEventListener to notify gaia the wifi enable/disable status after issuing settings API to set "wifi.enabled". Instead of that, we would like to propose the setWifiEnable DOM API. It looks more straightforward when trying to turn on/off wifi in gaia. Moreover, we could move the control logic for wifi and wifi hotspot to gaia app.
interface nsIDOMWifiManager : nsISupports
{
nsIDOMDOMRequest setWifiEnable(bool enabled);
}
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → chulee
Assignee | ||
Comment 1•11 years ago
|
||
Add |mozWifiManager.setWifiEnable()| for turning wifi on/off.
Attachment #829197 -
Flags: feedback?(vchang)
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #829198 -
Flags: feedback?(vchang)
Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 829198 [details] [diff] [review]
WIP - 0002. API Implementation.
Review of attachment 829198 [details] [diff] [review]:
-----------------------------------------------------------------
0. Dimi is going to move nsIWifi.idl to webidl. Maybe we should write this to webidl, too ?
1. Who should handle initial wifi start, gaia or gecko ?
2. Looks like we don't need handleWifiEnabled() function anymore. Maybe you would like to remove it ?
Attachment #829198 -
Flags: feedback?(vchang) → feedback+
Reporter | ||
Updated•11 years ago
|
Attachment #829197 -
Flags: feedback?(vchang) → feedback+
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Vincent Chang[:vchang] from comment #3)
> Comment on attachment 829198 [details] [diff] [review]
> WIP - 0002. API Implementation.
>
> Review of attachment 829198 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> 0. Dimi is going to move nsIWifi.idl to webidl. Maybe we should write this
> to webidl, too ?
If so, I think we might have to freeze API/interface change for Dimi to work on the transformation.
Just set it to block until it's become webidl.
> 1. Who should handle initial wifi start, gaia or gecko ?
> 2. Looks like we don't need handleWifiEnabled() function anymore. Maybe you
> would like to remove it ?
As an API, the initialization is better handled by gaia. But in case gaia doesn't have such capability, handleWifiEnabled is preserved for now in case we need to handle wifi initialization in gecko.
Depends on: 886110
Assignee | ||
Comment 5•11 years ago
|
||
Change API name.
Attachment #829197 -
Attachment is obsolete: true
Attachment #8356485 -
Flags: review?(vchang)
Assignee | ||
Comment 6•11 years ago
|
||
1. Change API naming.
2. Use queue on wifi enable/disable command.
Attachment #829198 -
Attachment is obsolete: true
Attachment #8356486 -
Flags: review?(vchang)
Reporter | ||
Comment 7•11 years ago
|
||
Comment on attachment 8356485 [details] [diff] [review]
0001. IDL Change.
Review of attachment 8356485 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for your patch. But as you may know that we are going to replace the idl to webidl for exposed DOM content. So please based on bug 886110 to develop this.
Attachment #8356485 -
Flags: review?(vchang)
Reporter | ||
Updated•11 years ago
|
Attachment #8356486 -
Flags: review?(vchang) → feedback+
Updated•11 years ago
|
blocking-b2g: --- → backlog
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8356485 -
Attachment is obsolete: true
Assignee | ||
Comment 9•10 years ago
|
||
Attachment #8356486 -
Attachment is obsolete: true
Assignee | ||
Comment 10•10 years ago
|
||
Attachment #8459528 -
Attachment is obsolete: true
Attachment #8466045 -
Flags: review?(mrbkap)
Assignee | ||
Comment 11•10 years ago
|
||
Attachment #8459534 -
Attachment is obsolete: true
Attachment #8466046 -
Flags: review?(vchang)
Updated•10 years ago
|
Attachment #8466045 -
Flags: review?(mrbkap) → review+
Reporter | ||
Comment 12•10 years ago
|
||
Comment on attachment 8466046 [details] [diff] [review]
0002. Implement wifi enable API.
Review of attachment 8466046 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Thank you.
Attachment #8466046 -
Flags: review?(vchang) → review+
Assignee | ||
Updated•10 years ago
|
Whiteboard: [p=2]
Target Milestone: --- → 2.1 S2 (15aug)
Assignee | ||
Comment 13•10 years ago
|
||
Add reviewer's name.
Attachment #8466045 -
Attachment is obsolete: true
Assignee | ||
Comment 14•10 years ago
|
||
Add reviewer's name and TODOs.
Attachment #8466046 -
Attachment is obsolete: true
Assignee | ||
Comment 15•10 years ago
|
||
Comment 17•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/22676919a166
https://hg.mozilla.org/integration/b2g-inbound/rev/4353846612d0
Keywords: checkin-needed
Comment 18•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/22676919a166
https://hg.mozilla.org/mozilla-central/rev/4353846612d0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 19•10 years ago
|
||
Test case will be tracked by Bug 1051660
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•