Closed Bug 1160913 Opened 10 years ago Closed 10 years ago

[Emulator][Wifi] Unable to connect to secure Wifi AP on emulator

Categories

(Firefox OS Graveyard :: Wifi, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
Summary: [Emulator][Wifi] Unable to connect to secure Wifi AP → [Emulator][Wifi] Unable to connect to secure Wifi AP on emulator
Assignee: nobody → hchang
(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.
Blocks: 1166658
Attached patch Bug1160913.patchSplinter Review
Attachment #8608038 - Flags: review?(vchang)
> "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
(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!
Attachment #8608477 - Flags: review?(vchang)
Attachment #8608477 - Flags: review?(vchang) → review+
Attachment #8608038 - Flags: review?(vchang) → review+
Attachment #8608529 - Attachment description: PR for branch 5.1 (r+'d) → Use /dev/urandom instead of /dev/random (for 5.1. r+'d)
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: