In dom/system/gonk/TetheringService.js we have lots of settings key defined to control the behavior of WiFi and USB tethering. But user has no way to change those. That makes the feature useless if you are unlucky. Story of my life, fiber cut, no more DSL. I wanted to use my B2G device in USB tethering on my router to get network in the meantime. Bad luck, the tethering networks are 192.168.0.0/24 for USB and 192.168.1.0/24 for WiFi. Same as mine. So I needed to change USB tethering network. Since it's not exposed and not reacting to prefs, one has to plug WebIDE and play with |navigator.mozSettings.createLock().set()| directly ...
Hi Alexandre, we have setTetheringEnabled WebAPI  to turn on/off wifi/usb tethering. You can also specify ip address in TetheringConfiguration params.  https://dxr.mozilla.org/mozilla-central/source/dom/webidl/MozTetheringManager.webidl?from=MozTetheringManager.webidl&case=true#54
Vincent, using this API means that it is required to use API for toggling wifi, right?
Firefox OS is not being worked on
Status: NEW → RESOLVED
Last Resolved: 8 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.