Hello
I am using a verdin-imx8mp and set up a Wi-Fi Access point following the instructions here: Networking with Torizon OS | Toradex Developer Center.
I have this hostapd.conf
:
interface=uap0
ssid=Custom-SSID
hw_mode=a
channel=40
ieee80211n=1
own_ip_addr=192.168.1.100
wpa=2
wpa_passphrase=CustomPassword
country_code=CH
I want to use the same device also in Wi-Fi client mode. I noticed that it’s important to be on the same channel, as explained here: AP mode and Station mode enabling simultaneously - #4 by lucas_az.tx.
I tried connecting to a Wi-Fi network like this:
nmcli -a device wifi connect corporate-wifi
Password: ****************
Error: Connection activation failed: The device was removed.
But the device was removed and I could no longer interact with it. Not even disconnecting.
However, if the channel in the hostapd.conf
is the same as the corporate-wifi before connecting to it, then it works without problems.
Is there a way that I can synchronize the channels automatically somehow?
Kind regards,
Ian
Hi, I’m the Toradex AI Assistant.
I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.
Did you like my answer?

Hello Ian,
Thank you for your detailed question!
When using concurrent Wi-Fi modes (AP and client) on your Verdin iMX8MP, both interfaces should operate on the same Wi-Fi channel for proper functionality. However, there isn’t a built-in mechanism to automatically synchronize channels between AP and client modes. Here’s what you can consider:
1. Setting Channel in AP Mode:
- In your hostapd.conf, you can set a fixed channel with
channel=40
, as you have done.
- Alternatively, you can use
channel=0
, which lets hostapd select the channel automatically based on regulatory requirements and available channels. However, this still does not synchronize the channel with a concurrent client connection.
Reference: How to Setup Wi-Fi Access Point Mode - Configuration
2. Concurrent Operation:
- When running both AP and client modes, many Wi-Fi chipsets force the AP to operate on the channel of the network that the client is connected to. Typically, you must ensure that both interfaces (AP and client) are on the same band (e.g., 2.4 GHz or 5 GHz) and channel.
- The exact behavior often depends on the wireless chipset, driver capabilities, and firmware. Documentation & logs can help you verify what is happening at runtime.
Reference: AP mode and Station mode enabling simultaneously
3. Manual Synchronization:
- For automation, you could develop a userspace script that:
- Monitors the client connection and reads the current channel.
- Updates hostapd.conf with this channel.
- Restarts the hostapd service if the channel changes.
- Here is a generic approach:
- Use
iw dev wlan0 link
or iw dev wlan0 info
to determine the current channel for your client interface.
- Dynamically adjust the AP channel by modifying
hostapd.conf
and restarting hostapd as needed.
- Note: This may cause short outages when switching channels and won’t work for all wireless drivers/chipsets.
Monitor System Logs:
- Always check logs (
dmesg
, journalctl
, or hostapd logs) for messages about channel conflicts or driver capability limitations.
Key References:
If you would like example scripts or a more detailed step-by-step, please let me know!
Best regards,
Toradex AI Assistant.
Hi @i.staehli !
As you noticed, there are some limitations when using the on-module Wi-Fi for both Access Point and Client modes.
We have it documented in Azurewave AW-CM276NF Wi-Fi & Bluetooth module | Toradex Developer Center.
In order to get them in the same channel (as it is needed), it is recommended to first connect as a client to the other Access Point, and then start your own Access Point on the module.
This way the channel used on Client will be known before starting the Access Point.
Best regards,