Closed Bug 888552 Opened 11 years ago Closed 11 years ago

Use SET ps command to configure power save mode

Categories

(Firefox OS Graveyard :: Wifi, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mwu, Assigned: mwu)

References

Details

Attachments

(1 file, 1 obsolete file)

"SET ps N" is the standard command to enable/disable power save.
Attachment #769290 - Flags: review?(vchang)
Comment on attachment 769290 [details] [diff] [review]
Use the standard command to enable PS mode

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

::: dom/wifi/WifiWorker.js
@@ +502,1 @@
>    }

Seems like the command is different between ICS and Jellybean version. 
Maybe we should have a flag here.  

Reference link: 
http://androidxref.com/4.0.4/xref/frameworks/base/core/jni/android_net_wifi_Wifi.cpp#421
http://androidxref.com/4.2.2_r1/xref/frameworks/base/wifi/java/android/net/wifi/WifiNative.java#490
Attachment #769290 - Flags: review?(vchang)
I think PS set is actually supported on many ICS devices. However, I don't care enough to verify that it's supported on all devices, so let's make it JB only.
Blocks: gonk-jb
Summary: Use PS set command to configure power save mode → Use SET ps command to configure power save mode
Attachment #769290 - Attachment is obsolete: true
Attachment #769773 - Flags: review?(vchang)
Attachment #769773 - Flags: review?(vchang) → review+
https://hg.mozilla.org/projects/birch/rev/be2dca5279ab
https://hg.mozilla.org/mozilla-central/rev/be2dca5279ab
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: