What's new

ChannelHog - Monitor And Force Maximum 5GHz Bandwidth

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I have same settings and this happens.
Code:
############################################################################################################
#                                                                                                          #
#           ██████╗██╗  ██╗ █████╗ ███╗   ██╗███╗   ██╗███████╗██╗     ██╗  ██╗ ██████╗  ██████╗           #
#          ██╔════╝██║  ██║██╔══██╗████╗  ██║████╗  ██║██╔════╝██║     ██║  ██║██╔═══██╗██╔════╝           #
#          ██║     ███████║███████║██╔██╗ ██║██╔██╗ ██║█████╗  ██║     ███████║██║   ██║██║  ███╗          #
#          ██║     ██╔══██║██╔══██║██║╚██╗██║██║╚██╗██║██╔══╝  ██║     ██╔══██║██║   ██║██║   ██║          #
#          ╚██████╗██║  ██║██║  ██║██║ ╚████║██║ ╚████║███████╗███████╗██║  ██║╚██████╔╝╚██████╔╝          #
#           ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═══╝╚══════╝╚══════╝╚═╝  ╚═╝ ╚═════╝  ╚═════╝           #
#                                                                                                          #
#                          Monitor And Force Maximum 5GHz Bandwidth For Asus Routers                       #
#                                  By Adamm - https://github.com/Adamm00                                   #
#                                           11/01/2019 - v1.0.0                                            #
############################################################################################################


Select Menu Option:
[1]  --> Start ChannelHog
[2]  --> Check Channel Bandwidth
[3]  --> Temporarily Disable ChannelHog
[4]  --> Update ChannelHog
[5]  --> Install ChannelHog
[6]  --> Uninstall

[e]  --> Exit Menu

[1-6]: 2

ChannelHog: 80MHz Channel Width Detected - Restarting Wireless Service
Every single time.
This is my wifi log:
Code:
Wireless 5 GHz
SSID: Tito    Mode: AP
Noise: -88 dBm    Channel: 36/80    BSSID: 0C:9D:92:xx.xx.xx
DFS State: Idle    Time elapsed: 0h 0m 0s    Channel cleared for radar: 36/160
 
ASUS Wireless Router RT-AX88U - General.jpg
 
ChannelHog: 80MHz Channel Width Detected - Restarting Wireless Service
[/CODE]Every single time.
Try setting it to 160MHz only and then Check Channel Bandwith - it will show 160MHz
Now go into the setting and change it to 20/40/80/160 MHZ and it should still show 160MHz

Code:
Wireless 5 GHz
SSID: xxx-5G    Mode: AP
Noise: -80 dBm    Channel: 128/160     BSSID: 0C:9D:92:01:5B:D4
 
Last edited:
It work with all channels enabled too:

Correct, but from my experience the firmware seems to be more inclined to stick to 160MHz channels when using the 160MHz only setting. (Completely non-scientific testing ofc :p)
 
ChannelHog: 80MHz Channel Width Detected - Restarting Wireless Service
[/CODE]Every single time.
Try Control Channel 128, just to see if that changes anything.
 
Correct, but from my experience the firmware seems to be more inclined to stick to 160MHz channels when using the 160MHz only setting. (Completely non-scientific testing ofc :p)
Code:
############################################################################################################
#                                                                                                          #
#           ██████╗██╗  ██╗ █████╗ ███╗   ██╗███╗   ██╗███████╗██╗     ██╗  ██╗ ██████╗  ██████╗           #
#          ██╔════╝██║  ██║██╔══██╗████╗  ██║████╗  ██║██╔════╝██║     ██║  ██║██╔═══██╗██╔════╝           #
#          ██║     ███████║███████║██╔██╗ ██║██╔██╗ ██║█████╗  ██║     ███████║██║   ██║██║  ███╗          #
#          ██║     ██╔══██║██╔══██║██║╚██╗██║██║╚██╗██║██╔══╝  ██║     ██╔══██║██║   ██║██║   ██║          #
#          ╚██████╗██║  ██║██║  ██║██║ ╚████║██║ ╚████║███████╗███████╗██║  ██║╚██████╔╝╚██████╔╝          #
#           ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═══╝╚══════╝╚══════╝╚═╝  ╚═╝ ╚═════╝  ╚═════╝           #
#                                                                                                          #
#                          Monitor And Force Maximum 5GHz Bandwidth For Asus Routers                       #
#                                  By Adamm - https://github.com/Adamm00                                   #
#                                           11/01/2019 - v1.0.0                                            #
############################################################################################################


Select Menu Option:
[1]  --> Start ChannelHog
[2]  --> Check Channel Bandwidth
[3]  --> Temporarily Disable ChannelHog
[4]  --> Update ChannelHog
[5]  --> Install ChannelHog
[6]  --> Uninstall

[e]  --> Exit Menu

[1-6]: 2

ChannelHog: 80MHz Channel Width Detected - Restarting Wireless Service
ASUS Wireless Router RT-AX88U - General.jpg

Wireless 5 GHz
SSID: Tito Mode: AP
Noise: -88 dBm Channel: 36/80 BSSID: 0C:9D:92:xx.xx.xx
DFS State: Idle Time elapsed: 0h 0m 0s Channel cleared for radar: 36/160
 
Now what?

Code:
Select Menu Option:
[1]  --> Start ChannelHog
[2]  --> Check Channel Bandwidth
[3]  --> Temporarily Disable ChannelHog
[4]  --> Update ChannelHog
[5]  --> Install ChannelHog
[6]  --> Uninstall

[e]  --> Exit Menu

[1-6]: 2


User@RT-AX88U-9B20:/tmp/home/root#
 
@Adamm an uninstall and reinstall from URL worked! :D
 
############################################################################################################
# #
# ██████╗██╗ ██╗ █████╗ ███╗ ██╗███╗ ██╗███████╗██╗ ██╗ ██╗ ██████╗ ██████╗ #
# ██╔════╝██║ ██║██╔══██╗████╗ ██║████╗ ██║██╔════╝██║ ██║ ██║██╔═══██╗██╔════╝ #
# ██║ ███████║███████║██╔██╗ ██║██╔██╗ ██║█████╗ ██║ ███████║██║ ██║██║ ███╗ #
# ██║ ██╔══██║██╔══██║██║╚██╗██║██║╚██╗██║██╔══╝ ██║ ██╔══██║██║ ██║██║ ██║ #
# ╚██████╗██║ ██║██║ ██║██║ ╚████║██║ ╚████║███████╗███████╗██║ ██║╚██████╔╝╚██████╔╝ #
# ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═══╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ #
# #
# Monitor And Force Maximum 5GHz Bandwidth For Asus Routers #
# By Adamm - https://github.com/Adamm00 #
# 11/01/2019 - v1.0.0 #
############################################################################################################
Select Menu Option:
[1] --> Start ChannelHog
[2] --> Check Channel Bandwidth
[3] --> Temporarily Disable ChannelHog
[4] --> Update ChannelHog
[5] --> Install ChannelHog
[6] --> Uninstall
[e] --> Exit Menu
[1-6]: 2
160MHz Channel Width Detected - No Action Required
 
I cannot get this to work on my router.:eek::eek::eek::eek::eek:

*Edit*
sorry bad post, my router is not supported. Should have read first post better.
still always ready to test Adamms next greatest thing........
 
Last edited:
Don't run this script... it doesn't do anything

What do you mean? It detects the current channel width and if this is lower then expected it restarts the 5GHz radio which bumps up channel bandwidth to 160MHz as the firmware would instead leave it at 80MHz until manual intervention. o_O


Code:
    check)
        Check_Lock "$@"
        . "$channelhogcfg"
        currentbandwidth="$(wl -i "$port5ghz" assoc | grep -F "Chanspec" | awk '{print $5}')"
        targetbandwidth="160MHz"
        if [ "$currentbandwidth" != "$targetbandwidth" ]; then
            if [ "$enablediscord" = "true" ]; then
                -snip-
            fi
            logger -st ChannelHog "$currentbandwidth Channel Width Detected - Restarting 5GHz Radio"
            wl -i "$port5ghz" down
            wl -i "$port5ghz" up
        else
            echo "[i] $currentbandwidth Channel Width Detected - No Action Required"
        fi
    ;;
 
Last edited:
I noticed one thing in all the settings here and are a bit curious...
You all have Wi-Fi Agile Multiband Enabled, but have set manually a channel. Does it not so cancel the point of what Wi-Fi Agile Multiband is supposed o do..?
 
The only reason a properly designed router supporting 160 MHz bandwidth would fall back to 80 MHz (and change channel) is if DFS radar detection is tripped. Neighboring networks should not cause this.

If your location is in range of radar, you're going to constantly get kicked out of DFS channels.

I don't see the point of this.
 
I don't see the point of this.

The point being the router doesn't automatically return to 160MHz channel width when DFS is no longer an issue, it instead requires manual intervention by either restarting the wireless service or a reboot. This simply automates the process so you don't have to manually intervene every few days (in my case) to continue benefiting from 160MHz channels.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top