Closed Bug 885647 Opened 11 years ago Closed 11 years ago

Wi-Fi is enabling automatically after every reboot / airplane mode on-off even after disabling it.

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
All
defect
Not set
normal

Tracking

(blocking-b2g:-, b2g18 affected)

RESOLVED FIXED
blocking-b2g -
Tracking Status
b2g18 --- affected

People

(Reporter: vasanth, Assigned: vasanth)

Details

(Whiteboard: [mozilla-triage])

Attachments

(1 file, 1 obsolete file)

1. In system app airplane_mode.js, during boot up/airplane mode off, 
wifi.suspended is used to restore wifi.enabled value

2. But in settings app wifi.js, it's assumed that wifi.suspended is !wifi.enabled


So in settings app, when wifi is turned off, wifi.suspended becomes true.
After reboot, wifi.suspended is used to restore wifi.enabled.
Since wifi.suspended is true, wifi is enabled again.

Attached patch fixes that issue.

Thanks,
Vasanth
Can you please attach the .patch file directly to the bug?
blocking-b2g: --- → leo?
Attachment #765791 - Attachment is obsolete: true
vasanth,

After the patch is uploaded, you need to request review to module owner, in this case, it should be :kaze or evelyn huang.
Attachment #765794 - Flags: review?(kaze)
We don't feel strongly either way about this bug, so we'll leave it to partners to decide. Looping in UX to figure out expected behavior here.
Flags: needinfo?(firefoxos-ux-bugzilla)
Whiteboard: [mozilla-triage]
Comment on attachment 765794 [details] [diff] [review]
wifi.suspended is not inverse of wifi.enabled

Thank you vasanth for catching this. Your patch makes perfect sense to me: if wi-fi is disabled, I don’t see why it should be enabled when turning the airplane mode on and off again, or when rebooting the device.

If UX wasn’t NI’ed I’d have merged it already. :-)
Pinging Fernando in case he has anything to object, as he wrote the related lines in wifi.js.
Attachment #765794 - Flags: review?(kaze)
Attachment #765794 - Flags: review+
Attachment #765794 - Flags: feedback?(ferjmoreno)
Adding Casey to needinfo even though this is not blocking. Blockers still get priority.
Flags: needinfo?(firefoxos-ux-bugzilla) → needinfo?(kyee)
Comment on attachment 765794 [details] [diff] [review]
wifi.suspended is not inverse of wifi.enabled

Review of attachment 765794 [details] [diff] [review]:
-----------------------------------------------------------------

Sounds good to me. Thanks!
Attachment #765794 - Flags: feedback?(ferjmoreno) → feedback+
Thanks Fabian Cazenave and Fernando. Can we get to the closure of this?
Merged on master (I’m pretty sure UX will be OK… Casey, kick me if I’m wrong):
https://github.com/mozilla-b2g/gaia/commit/16a53406188b5b0819535b434d24dba4c0329c12
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
It's fine :)  thanks for the fix folks.
Flags: needinfo?(kyee)
blocking-b2g: leo? → -
Assignee: nobody → vasanth
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: