change frequency wifi adapter linux code example
Example: how to use iwconfig to change 2.4 ghz
sudo iwconfig <wlan> mode Managed
sudo iwconfig <wlan> freq <desired-freq>
sudo iwconfig <wlan> channel <desired-channel>
sudo iwconfig <wlan> mode Managed
sudo iwconfig <wlan> freq <desired-freq>
sudo iwconfig <wlan> channel <desired-channel>