Closed Bug 1227573 Opened 10 years ago Closed 8 years ago

Unify Wifi setup among emulators

Categories

(Firefox OS Graveyard :: Wifi, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: tzimmermann, Assigned: tzimmermann)

Details

Attachments

(2 files)

This is something like a follow-up bug to bug 1160913. Emulators for KK and later fetch random data from /dev/urandom to guarantee progress. Older emulators should probably do the same.
Assignee: nobody → tzimmermann
Status: NEW → ASSIGNED
Attachment #8691427 - Flags: review?(jgomez)
Attachment #8691427 - Flags: feedback?(hchang)
Attachment #8691427 - Flags: review?(jgomez)
Attachment #8691427 - Flags: feedback?(hchang)
Hi Henry, originally I wanted to port the existing patches from bug 1160913, but looking closer at the code, it seems possible to feed the necessary entropy from and external file into wpa_supplicant. This patch loads the entropy into wpa_supplicant, which should then still fail to read from /dev/random [1], but pick up the mixed-in entropy afterwards. [2] [1] https://android.googlesource.com/platform/external/wpa_supplicant_8/+/android-4.0.4_r2.1/src/crypto/random.c#217 [2] https://android.googlesource.com/platform/external/wpa_supplicant_8/+/android-4.0.4_r2.1/src/crypto/random.c#252
Attachment #8691443 - Flags: feedback?(hchang)
I'd like to reconsider the current patches of bug 1160913 to ease long-term maintenance.
Comment on attachment 8691443 [details] Add entropy file for ICS wpa_supplicant This is awesome! It seems what vendor does to wpa_supplicant! Thank for investigating it :)
Attachment #8691443 - Flags: feedback?(hchang) → feedback+
The other bug says that there's an automated test for Wifi on KK. How can I run it?
Flags: needinfo?(hchang)
Do you mean the on on emulator? It's ./mach marionette-webapi [GECKO-PATH]/dom/wifi/test/marionette/test_wifi_associate.js
Flags: needinfo?(hchang)
(In reply to Henry Chang [:henry] from comment #6) > Do you mean the on on emulator? It's > > ./mach marionette-webapi > [GECKO-PATH]/dom/wifi/test/marionette/test_wifi_associate.js Yes, thanks. If I find some time, I'll prepare a patch and try this out.
Status: ASSIGNED → RESOLVED
Closed: 8 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: