Wifi code needs to issue fwreload to netd as part of initialization

RESOLVED FIXED

Status

RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: mwu, Assigned: vchang)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
We need to have netd load the wifi firmware for us during startup, or there might not be any wlan0 interface to use. This issue is seen on the Nexus 4.
Perhaps a symptom of bug 884131?  Wifi works fine here.
(Reporter)

Comment 2

6 years ago
Android actually does this explicitly as part of wifi initialization -

http://androidxref.com/4.2.2_r1/xref/frameworks/base/wifi/java/android/net/wifi/WifiStateMachine.java#2173

fwreload is sent as part of disabling wifi tethering, so it could work, but I think it would be less magical if we did it explicitly as part of wifi init.
Just for the benefit of those that land here before this is fixed, requesting a firmware reload from the command line gets wifi working on a Nexus 4 here:

adb shell
/system/bin/ndc softap fwreload wlan0 AP

Then enable wifi in the settings.  This is only a temporary workaround.
Blocks: 896808
(Assignee)

Updated

5 years ago
Assignee: nobody → vchang
(Assignee)

Comment 4

5 years ago
Created attachment 783061 [details] [diff] [review]
Patch v1.0 for mc

Reload the Wifi chip firmware to station mode before loading Wifi driver.
Attachment #783061 - Flags: review?(mrbkap)

Updated

5 years ago
Attachment #783061 - Flags: review?(mrbkap) → review+
(Assignee)

Comment 5

5 years ago
push to inbound, I also verified this patch on unagi.
https://hg.mozilla.org/integration/mozilla-inbound/rev/d144ffab4543
https://hg.mozilla.org/mozilla-central/rev/d144ffab4543
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.