WPS-PBC connection is not consistent and failing

RESOLVED INCOMPLETE

Status

Firefox OS
Wifi
P1
normal
RESOLVED INCOMPLETE
4 years ago
4 years ago

People

(Reporter: tkundu, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CR 586891] [POVB])

Attachments

(1 attachment)

WPS-PBC connection is not consistent and failing 

WPS Connection Failure scenario:
1. Turn on Wifi in device
2. Let Scan complete and once the Scan list is ready, Activate WPS PBC in AP.
    and now click WPS PBC in device UI.
3. Device failed to initiate WPS session Packet exchange even though WPS profile AP is already available in the  scan list of device (verified in UI Scan window and WPA_CLI too)

Issue is reproduced with linksys AP .
blocking-b2g: --- → 1.3?
(need a bit more detail here please Tapas on if/what Moz could do to fix this)
Flags: needinfo?(tkundu)
Michael,

This was just opened and not going to make the 1.3 QC CS deadline.

Can we please revisit the release?
Flags: needinfo?(mvines)
I just try WPS PBC function using unagi, it works for me. 
My router is Buffalo WCR-G300.
Vincent,

Are you looking at this bug?

What next steps?
Flags: needinfo?(vchang)
Let't try QA wanted.
Flags: needinfo?(vchang)
Keywords: qawanted

Updated

4 years ago
QA Contact: mvaughan

Comment 6

4 years ago
This issue does not reproduce for me on the 01/14/14 1.2, 1.3, or Master (1.4) builds. When initiating WPS via button push, the phone successfully connects to the AP. I tested this with security disabled and enabled on the AP (security was WPA2 personal).

The AP is a Belkin N+ router. This is the only device we have that has WPS-PBC.
Keywords: qawanted
I am discussing it within our team and I will come with more information soon

Comment 8

4 years ago
I have recently got ZTE Open, hardware P752D04B02, came with OS1.0 but have updated to 1.1.0.0 from ZTE site, revision 01.01.00.019.215.  I have had a lot of wifi connection problems similar to many in the bug reports.  Namely ZTE would connect fine when router/phone first turned on but would then drop connection and would not reconnect whatever was tried.  Only way was to re-boot the router.  Router was Netgear DG834G from about 2010.  Have now tried with newer Netgear DGN1000 and it's fine.  Wifi can be turned off and will reconnect when turned back on (although requires password which doesn't seem to be saved anywhere). Two things of note.  Firstly when still using the DG834G I noticed a couple of times the ZTE appeared twice in attached devices!!  Same MAC address but different IPs.  Secondly I have a Netgear WN1000RP extender and that had the same problem of not re-connecting to the DG834G after connection had been dropped.  That too seems fine with the DGN1000.  Have the 802.1x specs been changed?  If Netgear's own products do the same thing ...... Hope this is helpful.
Created attachment 8362018 [details]
logcat

Sorry for late reply. This issue is present only on jb_gonk FFOS 1.3 . 

Here is the proper steps to reproduce it :

Steps:

1. Enable wifi hotspot with security “none” in wifi hotspot/router.
2. In firefox device, turn on wifi in settings and make sure that you see wifi network name is present. But please don't connect to it
3. Wait for at least 1.5 minutes.
4. Click on “Connect with WPS” in wifi menu on firefox device. 
5. Enable WPS-PBC in hotspot/router
6. Immediately click “OK” in firefox device. Please make sure that there is no delay between 5 and 6
7. We will see that “WPS is in progress” in Firefox and it will never complete /connect. Expected behavior is that it should connect immediately as the wifi hotspot network does not have any password.

 
I knew that it is little tricky to reproduce. It would be great if you can point me to the code which gecko uses to connect with WPS_PBC network. 

I saw that ics_strawberry based FFOS 1.3 does not have this issue. If you can point me to gecko wifi code which is different from ics_strawberry based FFOS 1.3. Then it will help me to debug it fast. 

I also attached logcat. This log are seen after I clicked on "Connect to WPS" in gecko. From logcat, it looks like FFOS is not asking wpa_supplicant to connect with "AndroidAP" (wifi hotspot network name) even after clicking on "Connect to WPS".
Flags: needinfo?(tkundu)
blocking-b2g: 1.3? → 1.3+
status-b2g-v1.3: --- → affected
Flags: needinfo?(mvines)
Ken, can you have someone take another look at this one now with the STR provided by Tapas?
Flags: needinfo?(kchang)

Comment 11

4 years ago
Hubert, can you please follow STR provided by comment 9 to reproduce this issue? Thanks.
Flags: needinfo?(kchang) → needinfo?(hlu)
> Steps:
> 
> 1. Enable wifi hotspot with security “none” in wifi hotspot/router.
This step confuses me a little, I have to configure my wifi hotspot/router to WPA/WPA2  mode and make the WPS state to configured to make WPS work. I used Nexus 4 + jb4.3_gonk FFOS.
(In reply to Vincent Chang[:vchang] from comment #12)
> > Steps:
> > 
> > 1. Enable wifi hotspot with security “none” in wifi hotspot/router.
> This step confuses me a little, I have to configure my wifi hotspot/router
> to WPA/WPA2  mode and make the WPS state to configured to make WPS work. I
> used Nexus 4 + jb4.3_gonk FFOS.

I think that we should debug it quickly. If you can point me to gecko wifi code which is different from ics_strawberry based FFOS 1.3 then it will help me to debug it fast. Basically I want to know how gecko is sending updates to wpa_supplicants . I am trying to understand it now
Flags: needinfo?(vchang)
(In reply to Tapas Kumar Kundu from comment #13)
> (In reply to Vincent Chang[:vchang] from comment #12)

> I think that we should debug it quickly. If you can point me to gecko wifi
> code which is different from ics_strawberry based FFOS 1.3 then it will help
> me to debug it fast. Basically I want to know how gecko is sending updates
> to wpa_supplicants . I am trying to understand it now

I got it now. thanks . I will update here soon with more debugging details
Flags: needinfo?(vchang)
(marking POVB for now, pending more details from debug)
Whiteboard: [CR 586891] → [CR 586891] [POVB]

Comment 16

4 years ago
(In reply to Vincent Chang[:vchang] from comment #12)
> > Steps:
> > 
> > 1. Enable wifi hotspot with security “none” in wifi hotspot/router.
> This step confuses me a little, I have to configure my wifi hotspot/router
> to WPA/WPA2  mode and make the WPS state to configured to make WPS work. I
> used Nexus 4 + jb4.3_gonk FFOS.

We tried with security "none" in our router. If we try with WPS, we see following error and unable to open "Connect with WPS" page itself.

01-21 10:46:45.150 E/GeckoConsole( 1054): [JavaScript Error: "TypeError: capabilities is undefined" {file: "app://settings.gaiamobile.org/shared/js/wifi_helper.js" line: 147}]

Since you are able to verify I guess you are not seeing it.

One more STR where we get this error,
1. Goto Settings -> WiFi -> Manage Networks -> Join Hidden Network -> 
Enter some name -> Select security type "WPS" -> Click "Ok"
2. Then Turn off and Turn on Wifi
3. Now click "Connect with WPS" and we see above error till that hidden network exists.

Could you please confirm you are not seeing this error?
Flags: needinfo?(vchang)

Comment 17

4 years ago
Sorry, After selecting WPS, we need to enter password as well, Then Click OK.
Root cause is a gonk issue, thanks for the debug help all!
Status: NEW → RESOLVED
blocking-b2g: 1.3+ → ---
Last Resolved: 4 years ago
status-b2g-v1.3: affected → ---
Flags: needinfo?(vchang)
Flags: needinfo?(hlu)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.