How to switch to a different WiFi channel?

I am running a server sending data from a linux embedded device which is hosting its own network using a network module. It is running on an iMX7 processor connected to a network module.

The problem that I am facing is that my host is always unluckily choosing a random channel that is quite noisy and crowded and because of this, my data transfer is having some latencies.

My question is: is there a linux command or a programatic way to switch the wifi channel?

I can run iwlist p2p-wlan0-0 scan | grep (Channel to see the available channels on that interface. But is there a way to enforce my interface which is p2p-wlan0-0 to choose a specific channel like channel 49 for example?

Answer

Leave a Reply

Your email address will not be published. Required fields are marked *