9

I am trying to change wifi channel to one that will use 5GHz frequency.

iwconfig

lo        no wireless extensions.

wlo1      IEEE 802.11abg  ESSID:off/any  
          Mode:Managed  Frequency:5.2 GHz  Access Point: Not-Associated   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

eno1      no wireless extensions.

Once I connect to my Wifi, frequency is switched to 2.4GHz

lo        no wireless extensions.

wlo1      IEEE 802.11abg  ESSID:"PiotryStephy"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: C0:05:C2:BF:6F:79   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

eno1      no wireless extensions.

In my router settings there are both 2 and 5GHz frequencies allowed. There is no option to change "Mode:Managed".

These are my available channels:

iwlist channel
lo        no frequency information.

wlo1      29 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 36 : 5.18 GHz
          Channel 38 : 5.19 GHz
          Channel 40 : 5.2 GHz
          Channel 42 : 5.21 GHz
          Channel 44 : 5.22 GHz
          Channel 46 : 5.23 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 149 : 5.745 GHz
          Channel 153 : 5.765 GHz
          Channel 157 : 5.785 GHz
          Channel 161 : 5.805 GHz
          Channel 165 : 5.825 GHz
          Current Frequency:2.412 GHz (Channel 1)

eno1      no frequency information.

When I am trying to change a channel:

sudo iwconfig wlo1 channel 40
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlo1 ; Operation not supported.
bombelsky
  • 123

2 Answers2

4

Interface has to be in monitor mode. First bring it down with ifconfig wlo1 down Then change it with iwconfig wlo1 mode monitor Bring it back up ifconfig wlo1 up Change channel iwconfig wlo1 channel 40

2

Sometimes changing channel will be on auto mode therefore these command won't helpful because it changes to 5GHz or 2.4GHz automatically iwlist channel shows which channel to select.

iwconfig wlp2so freq 2.4G
iwconfig wlp2so channel 44

You need to make changes on wireless router and set manual channel select. See the image below

Wireless settings on Router

Kulfy
  • 18,154