Closed Bug 1119853 Opened 9 years ago Closed 9 years ago

WiFi Direct is flaky and requires device rebooting after first or second connection

Categories

(Firefox OS Graveyard :: Wifi, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1124507

People

(Reporter: drs, Assigned: hchang)

Details

Tested on Flame, v188, master Gecko/Gaia.

I'm finding that WiFi Direct is very flaky. After 1-2 connections, the devices have to be rebooted, or they can't connect. At this point, if we attempt to connect in software, they fail and disconnect. After rebooting, it works on the first shot.
Henry, is there any info I could provide here that would be helpful?
Flags: needinfo?(hchang)
Flags: needinfo?(vchang)
Hi Doug,

Could you provide the app that you tested with? Thanks :)
Flags: needinfo?(hchang)
Henry will help to fix the problem. It would be nice if you can provide detail STRs. We can help to reproduce the problem following your STRs.
Assignee: nobody → hchang
Flags: needinfo?(vchang)
I have identified the following issue:
1. I launch an app and connect my devices together.
2. navigator.mozWifiP2pManager.groupOwner is populated with the relevant data.
3. I kill and relaunch the app one of the devices. OR I reflash the app using the WebIDE.
4. navigator.mozWifiP2pManager.groupOwner is now null.

Though the connected state is maintained across sessions, the value of navigator.mozWifiP2pManager.groupOwner is not persisted.

What do you think Henry?
Flags: needinfo?(hchang)
Blocks: spark
(In reply to Guillaume Marty [:gmarty] from comment #4)
> I have identified the following issue:
> 1. I launch an app and connect my devices together.
> 2. navigator.mozWifiP2pManager.groupOwner is populated with the relevant
> data.
> 3. I kill and relaunch the app one of the devices. OR I reflash the app
> using the WebIDE.
> 4. navigator.mozWifiP2pManager.groupOwner is now null.
> 
> Though the connected state is maintained across sessions, the value of
> navigator.mozWifiP2pManager.groupOwner is not persisted.
> 
> What do you think Henry?

I think I know how to fix this up. I'll file another bug to address this 
concrete issue.

Thanks!
Flags: needinfo?(hchang)
Just filed Bug 1124507 to address the issue described in comment 4
Another thing I've noticed is that `navigator.mozWifiP2pManager.enabled` is always false, even if you do `setScanEnabled(true)`, even if you're connected to a peer.

It's not a big bug as long as we know that this property isn't reliable, but still needs to be fixed.
Henry do we need to fix this property or completely remove it?
Flags: needinfo?(hchang)
No longer blocks: spark
(In reply to Guillaume Marty [:gmarty] from comment #7)
> Another thing I've noticed is that `navigator.mozWifiP2pManager.enabled` is
> always false, even if you do `setScanEnabled(true)`, even if you're
> connected to a peer.
> 
> It's not a big bug as long as we know that this property isn't reliable, but
> still needs to be fixed.
> Henry do we need to fix this property or completely remove it?

I've got the spot of the bug and it's a duplicate of Bug 1124507.
Will fix it in that bug.

Thanks :)
Flags: needinfo?(hchang)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.