how to enable tethering over wifi from command line and/or by default?
Given: Jolla phone with broken screen that may fail completely at any time. I still need to use it as a wifi router to share my LTE connection. I do have access to it via USB in tethering and developer modes. Sailfish version is the latest (3.something).
How to switch tethering over wifi on from the command line?
How to set it as a default mode so that it would be always switched on?
I found an advice here, dated 2015, to install connman-tools. But the package is not available now.
Tried to edit /etc/connman/main.conf as follows:
................
SingleConnectedTechnology = true
PreferredTechnologies = cellular,bluetooth
TetheringTechnologies = wifi
PersistentTetheringMode = true
...............
but wifi always switches on in station mode, not the access point. Any other ideas?
You could try adapting the script from this question maybe:
szopin ( 2019-07-17 17:56:35 +0200 )edithttps://together.jolla.com/question/170006/xperia-x-wlan-sharing-not-working/
btw connman-tools seems to be still available, at least on my phone it wants to install 1.32+git65-1.25.2.jolla.armv7hl
szopin ( 2019-07-17 18:02:17 +0200 )editThanks szopin, but there is no /sys/module/bcmdhd in Jolla Phone 8-(
wlan0 is really mastered by tether while being set to this mode (from screen, blindly), but when I do
ip link set dev wlan0 nomaster
the tether device is killed completely. Does anyone know how to create it again?
As to connman-tools, at my phone it is not available... which SF version do you run (mine is 3.0.3.10) and how do you find it?
iourine ( 2019-07-19 20:40:54 +0200 )editI'm on 3.0.3.8 and it's listed under (jolla), so the default one, maybe try to 'su-devel pkcon refresh'?
szopin ( 2019-07-19 21:01:58 +0200 )editThank you, it works. Now I can write a systemctl unit to start tethering from the very beginning.
iourine ( 2019-07-20 11:04:51 +0200 )edit