Closed Bug 1123328 Opened 10 years ago Closed 7 years ago

[NetworkService] Unify the dhcp attributes in NetworkResultOptions

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: edgar, Unassigned)

References

Details

Attachments

(1 file, 5 obsolete files)

There are some duplicated attributes in NetworkResultOptions for dhcp result, for example, we have |dns1_str| in `string` format and |dns1| in `long` format. But only the `long` one is used in Wifi code [1] and will be converted to `string` format actually. So I am considering keeping only the `string` one and removing the `long` one. Other attributes (dns2, gateway, server ... etc) are in the same situation. [1] https://dxr.mozilla.org/mozilla-central/source/dom/wifi/WifiNetUtil.jsm#62-91
Blocks: 1118675
Attached patch WIP, Patch, v1 (obsolete) — Splinter Review
Attached patch Patch, v2 (obsolete) — Splinter Review
I applied this patch and tested wifi connection on neux-5, wifi works good (can connect to wifi ap and browse internet), but I didn't not test static ip yet.
Attachment #8551337 - Attachment is obsolete: true
Assignee: nobody → echen
Attached patch Patch, v3 (obsolete) — Splinter Review
Adding changes for wifi static ip.
Attachment #8551724 - Attachment is obsolete: true
Hmm, I found an issue regarding to |MozWifiManager.setStaticIpMode| [1] when writing a test case for it. |setStaticIpMode()| never triggers the callback [2], so the API user won't receive success or error event. [1] https://dxr.mozilla.org/mozilla-central/source/dom/webidl/MozWifiManager.webidl#206-220 [2] https://dxr.mozilla.org/mozilla-central/source/dom/wifi/WifiWorker.js#401-436
blocking-b2g: --- → backlog
blocking-b2g: backlog → ---
(In reply to Edgar Chen [:edgar][:echen] from comment #4) > Hmm, I found an issue regarding to |MozWifiManager.setStaticIpMode| [1] when > writing a test case for it. > |setStaticIpMode()| never triggers the callback [2], so the API user won't > receive success or error event. > > [1] > https://dxr.mozilla.org/mozilla-central/source/dom/webidl/MozWifiManager. > webidl#206-220 > [2] > https://dxr.mozilla.org/mozilla-central/source/dom/wifi/WifiWorker.js#401-436 Have filed bug 1166274 for this.
Depends on: 1166274
Attached patch Patch, v4 (obsolete) — Splinter Review
Attachment #8553568 - Attachment is obsolete: true
Attached patch Patch, v5 (obsolete) — Splinter Review
Attachment #8616436 - Attachment is obsolete: true
Attached patch Patch, v6Splinter Review
Attachment #8616444 - Attachment is obsolete: true
Unassigning myself as I am no longer working on this.
Assignee: echen → nobody
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.

Attachment

General

Created:
Updated:
Size: