Closed
Bug 727680
Opened 11 years ago
Closed 11 years ago
Wifi worker can't connect to networks that don't broadcast their SSID
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: cjones, Assigned: mrbkap)
References
Details
Attachments
(4 files)
4.07 KB,
patch
|
cjones
:
review+
mrbkap
:
checkin+
|
Details | Diff | Splinter Review |
1.93 KB,
patch
|
cjones
:
review+
mrbkap
:
checkin+
|
Details | Diff | Splinter Review |
1.21 KB,
patch
|
cjones
:
review+
mrbkap
:
checkin+
|
Details | Diff | Splinter Review |
1.28 KB,
patch
|
cjones
:
review+
mrbkap
:
checkin+
|
Details | Diff | Splinter Review |
Blake has a patch that works but needs a bit of cleanup.
Assignee | ||
Comment 1•11 years ago
|
||
This is mostly cleanup (and some preparation for the eventual API) but it's nice to have real objects so we can say "net.flags" instead of "net[1]".
Assignee | ||
Comment 2•11 years ago
|
||
This is what was missing last night: we don't want to force anything until we know that the network doesn't actually exist.
Attachment #597800 -
Flags: review?(jones.chris.g)
Assignee | ||
Comment 3•11 years ago
|
||
This is basically the patch from last night, but a little cleaned up.
Attachment #597802 -
Flags: review?(jones.chris.g)
Assignee | ||
Comment 4•11 years ago
|
||
It turns out the INACTIVE notification races with the scan results. This is a diff -w.
Attachment #597903 -
Flags: review?(jones.chris.g)
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 597797 [details] [diff] [review] Make networks objects >diff --git a/dom/wifi/nsIWifi.idl b/dom/wifi/nsIWifi.idl >+[scriptable, uuid(14c815f0-e9db-41d4-a15e-f3e69140f83b)] >+interface nsIWifiNetwork : nsISupports { >+ readonly attribute DOMString ssid; // can be null >+ readonly attribute DOMString bssid; // can be null >+ readonly attribute DOMString flags; // TODO make this be real flags instead of a string >+ readonly attribute long signal; >+}; >+ Do these need to be exposed through XPCOM? It doesn't seem to be used in your patches. Is there another reason for doing this? r=me pending xpcom question
Attachment #597797 -
Flags: review?(jones.chris.g) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #597800 -
Flags: review?(jones.chris.g) → review+
Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 597802 [details] [diff] [review] Force a connection to Mozilla Guest >diff --git a/dom/wifi/nsWifiWorker.js b/dom/wifi/nsWifiWorker.js >index e1d48d2..be83da2 100644 >+ var config = Object.create(null); let?
Attachment #597802 -
Flags: review?(jones.chris.g) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #597903 -
Flags: review?(jones.chris.g) → review+
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Chris Jones [:cjones] [:warhammer] from comment #5) > Do these need to be exposed through XPCOM? It doesn't seem to be used > in your patches. Is there another reason for doing this? It's not used yet. However, when we want to expose Wifi state in order to write, e.g. the UI for selecting a network, we're going to need information like this in the DOM, which means exposing it through XPCOM.
Assignee | ||
Comment 8•11 years ago
|
||
(In reply to Chris Jones [:cjones] [:warhammer] from comment #6) > >+ var config = Object.create(null); > > let? let at the top level is equivalent to var (in the parser, we actually change the token) and given that I've used var basically everywhere else in the file, I'd prefer to keep this as-is.
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 597797 [details] [diff] [review] Make networks objects https://hg.mozilla.org/integration/mozilla-inbound/rev/c9f5f7c81b48
Attachment #597797 -
Flags: checkin+
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 597800 [details] [diff] [review] Wait to connect until we have scan results https://hg.mozilla.org/integration/mozilla-inbound/rev/337bf2beee17
Attachment #597800 -
Flags: checkin+
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 597802 [details] [diff] [review] Force a connection to Mozilla Guest https://hg.mozilla.org/integration/mozilla-inbound/rev/a93f5dd0dd57
Attachment #597802 -
Flags: checkin+
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 597903 [details] [diff] [review] Fix another race https://hg.mozilla.org/integration/mozilla-inbound/rev/7d8ae4b53ead
Attachment #597903 -
Flags: checkin+
Comment 13•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c9f5f7c81b48 https://hg.mozilla.org/mozilla-central/rev/337bf2beee17 https://hg.mozilla.org/mozilla-central/rev/a93f5dd0dd57 https://hg.mozilla.org/mozilla-central/rev/7d8ae4b53ead
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in
before you can comment on or make changes to this bug.
Description
•