I want to use me linux IMX7 device as wifi repeater (access point wifi client):
wifi wifi wan
TABLET <~.~.~.~.~> (ap0) IMX7 (wlan0) <.~.~.~.~.> ROUTER <───> INTERNET
| | (connman) | |
| | | |
(dhcp) 192.168.4.1 (dhcp) 192.168.10.1
according to this guide: Access point as WiFi repeater, optional with bridge.
The IMX7 is running an application using connman to configure eth0 and wlan0 (its given, I cant change that).
At start, the IMX7 creates an access point on some channel using hostapd.
backend
--------
channel6 ( ( ( | IMX7 |
--------
Then, I connect with a tablet.
frontend backend
--------- --------
| TABLET | ( ( ( channel6 ( ( ( | IMX7 |
--------- --------
The application on the backend shall show me available wifis in the area. The backend shall then connect to the selected (from frontend) access point.
frontend backend
--------- -------- -------
| TABLET | ( ( ( channel6 ( ( ( | IMX7 | ( ( ( channel 11 ( ( ( | AP1 |
--------- -------- -------
Because ap0 and wlan0 have to be on the same channel, hostapd creating wifi on ap0 has to be reconfigured to use channel 11 here.
frontend backend
--------- -------- -------
| TABLET | ( ( ( channel11 ( ( ( | IMX7 | ( ( ( channel 11 ( ( ( | AP1 |
--------- -------- -------
My problem is, that I have an application running on the imx7 that does configure the eth0 and wlan0 interface via connman and I can't change that. So when creating .network files for systemd-networkd for wlan0, the "wifi technology" disappears from connmanctl.
Further, the channel that hostapd uses has to be the same, that the access point (AP) uses. So at first, the IMX7 uses a fixed channel for hostapd. After connection to any access point, the channel of hostapd has to be changed to the same. I find it rather hackish to rewrite the config file and restart hostapd.
So the question is, if it is possible in general to have connman and systemd-netword running in parallel. Or how would you solve that problem?
Thanks a lot, I hope I have showed the problem so you can understand it.
Michael