Closed
Bug 1160913
Opened 9 years ago
Closed 9 years ago
[Emulator][Wifi] Unable to connect to secure Wifi AP on emulator
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hchang, Assigned: hchang)
References
Details
Attachments
(4 files)
With Bug 1001261 fixed, we could enable wifi with test driver and connect to a virtual wifi AP established by hostapd on emulator KK (arm/x86). However, when configurating hostapd with security, we are unable to connect to the AP. This bug is to fix this kind of issues.
Assignee | ||
Updated•9 years ago
|
Summary: [Emulator][Wifi] Unable to connect to secure Wifi AP → [Emulator][Wifi] Unable to connect to secure Wifi AP on emulator
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → hchang
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
(In reply to Henry Chang [:henry] from comment #1) > Created attachment 8607954 [details] > logcat for connecting to secure AP Observed from the log, the new wpa_supplicant has "CTRL-EVENT-SSID-TEMP-DISABLED" design. It would temporarily disable the secure network which failed to authenticate the client. For some reason, the simulated AP (hostapd) reported "WPA: Not enough entropy in random pool to proceed - reject first 4-way handshake" error so that it cannot be connected and then be temporarily disabled. As a result, it takes longer time to successfully connect to a secure network. Using a longer timeout resolve this issue like a charm.
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8608038 -
Flags: review?(vchang)
Comment 4•9 years ago
|
||
> "WPA: Not enough entropy in random pool to proceed - reject first 4-way > handshake" > > error so that it cannot be connected and then be temporarily disabled. > > As a result, it takes longer time to successfully connect to a secure > network. > Using a longer timeout resolve this issue like a charm. It's quite similar error found in Bug 1151726, and change /dev/random to /dev/urandom in random.c seems a better solution to fix the problem [1]. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1151726#c8
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Vincent Chang[:vchang] from comment #4) > > "WPA: Not enough entropy in random pool to proceed - reject first 4-way > > handshake" > > > > error so that it cannot be connected and then be temporarily disabled. > > > > As a result, it takes longer time to successfully connect to a secure > > network. > > Using a longer timeout resolve this issue like a charm. > > It's quite similar error found in Bug 1151726, and change /dev/random to > /dev/urandom in random.c seems a better solution to fix the problem [1]. > > [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1151726#c8 Thanks for your information. I knew this before (replace with urandom). However, since it's not something like test driver specific change, I would rather find other solution that we can control by test case or the testbed itself for portability. I had it a try with urandom and it did work perfectly. Since this change can also benefit Bug 1151726, I think it's worthy of adopting this solution. I am going to apply the mod and apply to the wpa_supplicant used by emulator ICS as well. Thanks!
Assignee | ||
Comment 6•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8608477 -
Flags: review?(vchang)
Updated•9 years ago
|
Attachment #8608477 -
Flags: review?(vchang) → review+
Updated•9 years ago
|
Attachment #8608038 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 7•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8608529 -
Attachment description: PR for branch 5.1 (r+'d) → Use /dev/urandom instead of /dev/random (for 5.1. r+'d)
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 8•9 years ago
|
||
b2g-4.4.2_r1: b2g-5.1.0_r1 https://github.com/mozilla-b2g/platform_external_wpa_supplicant_8/commit/0c6a6547cd1fd302fa2b0f6e375654df36bf0ec4 b2g-5.1.0_r1: https://github.com/mozilla-b2g/platform_external_wpa_supplicant_8/commit/cbda29a58abc4ea1f7f4611fe354ab67b606219d
You need to log in
before you can comment on or make changes to this bug.
Description
•