Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force Wi-Fi adapter to use specific channel [closed]

I am trying to force the Wi-Fi adapter to use a specific channel while connecting to the access point which supports both 2.4 GHz and 5 GHz (WPA authentication).

I am using the following configuration:

OS: Raspbian
Model: Raspberry Pi 2 Model B
Wi-Fi Adapter: Edimax EW-7811UTC
Driver: 8812au

I also tried with a different Wi-Fi adapter: Asus USB-N53 using driver rt2800.

Tried with iwconfig which is giving SET failed on device wlan0 ; Operation not supported.

Also tried wpa_supplicant.

What extra arguments need to be given to the wpa_cli or wpa_supplicant utility so that the Wi-Fi adapter will connect only to the specific band?

like image 320
Mangesh Pathak Avatar asked Oct 20 '25 15:10

Mangesh Pathak


1 Answers

  1. look for your interface

    sudo iwconfig
    
  2. look at your channels

    sudo iwlist {interface} channel
    
  3. turn off wifi

    sudo iwconfig {interface} power off
    
  4. set your desired channel

    sudo iwconfig {interface} channel {channel, ex. "23"}
    
  5. set your desired frequency

    sudo iwconfig {interface} freq {frequency, ex. "5.00G"}
    
  6. turn on wifi

    sudo iwconfig {interface} power on
    
like image 190
Philip Fung Avatar answered Oct 23 '25 05:10

Philip Fung