Closed
Bug 1017950
Opened 11 years ago
Closed 11 years ago
[Flatfish][Wifi] Not able to scan and connect to wifi
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.0 S4 (20june)
People
(Reporter: chens, Assigned: jessica)
References
Details
(Keywords: regression, Whiteboard: [ft:ril][p=1])
Attachments
(1 file, 2 obsolete files)
|
1.02 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
We can't scan and connect to wifi using the latest version of B2G on flatfish, here's the error message:
E/GeckoConsole(25584): Content JS ERROR at app://ftu.gaiamobile.org/js/wifi.js:62 in onScanError: Error reading networks: Unable to scan for networks
Latest commit log of B2G:
commit 3fdf2ece624d6fc0b67f81f38b017d80053d2fdf
Merge: a6e6e36 c36a14e
Author: Ryan VanderMeulen <rvandermeulen@mozilla.com>
Date: Fri May 23 06:36:19 2014 -0700
Merge pull request #348 from xwaynec/master
Bug 1010652 - [Vixen][Tablet] Integrate vixen manifest file. r=mwu
Latest commit log of gecko:
commit 96c549d1054014ea76d8b079f36164eb437261c0
Merge: 8fd49b9 f634ff5
Author: Tim Taubert <ttaubert@mozilla.com>
Date: Thu May 29 08:32:31 2014 +0200
merge m-c to inbound
Latest commit log of gaia:
commit 6001520d36ff3ceb37acc30c93ef15560551bc6d
Merge: f24b8ab df90d63
Author: Timothy Guan-tin Chien <timdream@gmail.com>
Date: Thu May 29 16:34:02 2014 +0800
Merge pull request #19714 from elefant/bug/1016866
Bug 1016866 - Always send a notification when captive portal is detected, r=
| Reporter | ||
Comment 1•11 years ago
|
||
More error message from after enable wifi logs in adb:
E/GeckoConsole( 1272): [JavaScript Error: "NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "this.isNetworkTypeMobile is not a function" {file: "jar:file:///system/b2g/omni.ja!/components/NetworkManager.js" line: 300}]'[JavaScript Error: "this.isNetworkTypeMobile is not a function" {file: "jar:file:///system/b2g/omni.ja!/components/NetworkManager.js" line: 300}]' when calling method: [nsINetworkManager::registerNetworkInterface]" {file: "jar:file:///system/b2g/omni.ja!/components/WifiWorker.js" line: 957}]
I/Gecko ( 1272): settings 'handle' callback threw an exception, dropping: [Exception... "[JavaScript Error: "this.isNetworkTypeMobile is not a function" {file: "jar:file:///system/b2g/omni.ja!/components/NetworkManager.js" line: 300}]'[JavaScript Error: "this.isNetworkTypeMobile is not a function" {file: "jar:file:///system/b2g/omni.ja!/components/NetworkManager.js" line: 300}]' when calling method: [nsINetworkManager::registerNetworkInterface]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: jar:file:///system/b2g/omni.ja!/components/WifiWorker.js :: manager.setWifiEnabled :: line 957" data: yes]
Comment 2•11 years ago
|
||
I see that getNetworkId() in dom/system/gonk/NetworkManager.js calls isNetworkTypeMobile(). But that last method is only devices when MOZ_B2G_RIL is defined; which is not the case for Flatfish.
Updated•11 years ago
|
Depends on: 939046
Keywords: regression
Comment 3•11 years ago
|
||
Jessica, it seems your patch for bug 939046 regressed this on Flatfish: your code is called even when MOZ_B2G_RIL is not defined, but isNetworkTypeMobile is only defined when MOZ_B2G_RIL is.
Flags: needinfo?(jjong)
| Assignee | ||
Comment 4•11 years ago
|
||
Oh, so sorry for this :(. I am out of the office today, will check it first thing tomorrow morning. Keeping the NI flag for tracking.
| Assignee | ||
Comment 5•11 years ago
|
||
I don't have a Flatfish in hand, could someone help verify if the attached patch fixes the reported issue? Thanks a lot.
Flags: needinfo?(jjong)
| Assignee | ||
Comment 6•11 years ago
|
||
Attaching the correct patch.
I don't have a Flatfish in hand, could someone help verify if the attached patch fixes the reported issue? Thanks a lot.
Attachment #8441187 -
Attachment is obsolete: true
Comment 7•11 years ago
|
||
hi jessica,
I applied the patch and will build it... but it will take some hours on my machine ;o)
greets,
ralf
Comment 8•11 years ago
|
||
yes, it worked. last build was fresh enough so it was faster.
so now wifi is working again on flatfish.
thanks jessica
| Assignee | ||
Comment 9•11 years ago
|
||
(In reply to ralf tauscher from comment #8)
> yes, it worked. last build was fresh enough so it was faster.
>
> so now wifi is working again on flatfish.
>
> thanks jessica
Thank you, ralf :) Will ask for review then.
| Assignee | ||
Comment 10•11 years ago
|
||
Hsinyi, we should wrap isNetworkTypeMobile() part in getNetworkId() with MOZ_B2G_RIL flag. May I have you review? Thanks.
Attachment #8441188 -
Attachment is obsolete: true
Attachment #8441216 -
Flags: review?(htsai)
Comment 11•11 years ago
|
||
Comment on attachment 8441216 [details] [diff] [review]
patch, r=hsinyi
Review of attachment 8441216 [details] [diff] [review]:
-----------------------------------------------------------------
Oh... thank you ORZ
Attachment #8441216 -
Flags: review?(htsai) → review+
Comment 12•11 years ago
|
||
Comment on attachment 8441188 [details] [diff] [review]
patch.
I don't either. But I know people who does :)
Flags: needinfo?(atilag)
Comment 13•11 years ago
|
||
(In reply to Jessica Jong [:jjong] [:jessica] from comment #6)
> Created attachment 8441188 [details] [diff] [review]
> patch.
>
> Attaching the correct patch.
>
> I don't have a Flatfish in hand, could someone help verify if the attached
> patch fixes the reported issue? Thanks a lot.
Just wanted to verify that this patch also fixes the wireless issue for me.
dkl
Updated•11 years ago
|
Flags: needinfo?(atilag)
| Assignee | ||
Comment 14•11 years ago
|
||
try: https://tbpl.mozilla.org/?tree=Try&rev=cc78527d41e1
Thanks for verifying, I think we are good to go!
Keywords: checkin-needed
Comment 15•11 years ago
|
||
Assignee: nobody → jjong
Keywords: checkin-needed
Comment 16•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S4 (20june)
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [ft:ril][p=1]
Comment 17•11 years ago
|
||
I see this fix on master, but not in my v2.0 branch build. Can we backport it?
Comment 18•11 years ago
|
||
Confirmed; cherry-picking this on top of 9db44df885da60ee3442362d0abd04e930124781 in my v2.0 build resolves the problem with wifi.
You need to log in
before you can comment on or make changes to this bug.
Description
•