Closed Bug 776311 Opened 12 years ago Closed 12 years ago

WifiWorker.js shouldn't use 'otoro' device name

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 801935

People

(Reporter: m1, Unassigned)

References

Details

Attachments

(1 obsolete file)

WifiWorker.js currently tries to alter it's behaviour on Otoro by checking if $(getprop ro.product.device == "otoro") [1].  However since "otoro" is just a code name and not be what the final device will be called, this code will break when running on the the /real/ otoro software stack.

[1] https://mxr.mozilla.org/mozilla-central/source/dom/wifi/WifiWorker.js#968
Another instance of this has just occurred in the fix for https://bugzilla.mozilla.org/show_bug.cgi?id=774876
Hey Michael, do you have a better way of detecting when we should activate these hacks? I'd gladly switch to it! But we do need *some* way of detecting which device we're on and modifying our behavior accordingly.
IMO, we should work with the vendor to alleviate the need for them (although I understand the short-term need).

The builds that I am making do not use the otoro device name so I don't get these hacks.  The latest system image shared by the vendor over the weekend seems to have WiFi working much better BTW.  I think Kevin Hu should have them now too.
(In reply to Blake Kaplan (:mrbkap) from comment #2)
> Hey Michael, do you have a better way of detecting when we should activate
> these hacks? I'd gladly switch to it! But we do need *some* way of detecting
> which device we're on and modifying our behavior accordingly.

We shouldn't need to unload wifi drivers in general other than to work around driver bugs. The fix for this particular case should be to stop unloading drivers on all devices.
(In reply to Michael Wu [:mwu] from comment #4)
> We shouldn't need to unload wifi drivers in general other than to work
> around driver bugs. The fix for this particular case should be to stop
> unloading drivers on all devices.

We should file a new bug on this. In general, I'd prefer to follow Android's lead on this and they do unload the driver.
Attached patch Don't unload wireless drivers (obsolete) — Splinter Review
This issue has now hit the unagi.
Assignee: nobody → mwu
Attachment #671647 - Flags: review?(philipp)
Actually, I just noticed another instance of "otoro" in the file so I'm going to move this patch to another bug.
Depends on: 801935
Assignee: mwu → nobody
Attachment #671647 - Flags: review?(philipp)
Attachment #671647 - Attachment is obsolete: true
Nice catch. This will likely fix the issue. ++mwu
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: