GL.iNet GL-MT6000 - AQL and WiFi Latency

@phinn I put together the script below to provide an easy way to tweak the aql_txq_limit.

Basic usage:
(First time) Set the file as executable: # chmod +x change-aql.sh

Call the script with one of latency, balanced, bandwidth, or a valid integer value. This will tune the AQL Tx queue limit to the preference (or integer value) specified.

Example: Set 'balanced' Preference
# ./change-aql.sh balanced

>> Device setting: /sys/kernel/debug/ieee80211/phy1/aql_txq_limit <<
Before:
AC	AQL limit low	AQL limit high
VO	1500		1500
VI	1500		1500
BE	1500		1500
BK	1500		1500
BC/MC	50000

After:
AC	AQL limit low	AQL limit high
VO	5000		5000
VI	5000		5000
BE	5000		5000
BK	5000		5000
BC/MC	50000

>> Device setting: /sys/kernel/debug/ieee80211/phy0/aql_txq_limit <<
Before:
AC	AQL limit low	AQL limit high
VO	1500		1500
VI	1500		1500
BE	1500		1500
BK	1500		1500
BC/MC	50000

After:
AC	AQL limit low	AQL limit high
VO	5000		5000
VI	5000		5000
BE	5000		5000
BK	5000		5000
BC/MC	50000
Example: Set Integer Value
# ./change-aql.sh 1750

Info: Valid integer value provided.

>> Device setting: /sys/kernel/debug/ieee80211/phy1/aql_txq_limit <<
Before:
AC	AQL limit low	AQL limit high
VO	5000		5000
VI	5000		5000
BE	5000		5000
BK	5000		5000
BC/MC	50000

After:
AC	AQL limit low	AQL limit high
VO	1750		1750
VI	1750		1750
BE	1750		1750
BK	1750		1750
BC/MC	50000

>> Device setting: /sys/kernel/debug/ieee80211/phy0/aql_txq_limit <<
Before:
AC	AQL limit low	AQL limit high
VO	5000		5000
VI	5000		5000
BE	5000		5000
BK	5000		5000
BC/MC	50000

After:
AC	AQL limit low	AQL limit high
VO	1750		1750
VI	1750		1750
BE	1750		1750
BK	1750		1750
BC/MC	50000
3 Likes