The question is published on by Tutorial Guruji team.
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?
If you’re using hostapd then you could set the desired channel in
channel=7taken from: https://wiki.archlinux.org/index.php/software_access_point
wifi-ap.config set wifi.channel=8