File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 63
63
fi
64
64
}
65
65
66
+ set_qdisc () {
67
+ local iface=" $1 "
68
+ local qdisc=" $2 "
69
+ if run_as_su " tc qdisc replace dev $iface root $qdisc " ; then
70
+ log_print " Applied qdisc: $qdisc ($iface )"
71
+ else
72
+ log_print " Failed to apply qdisc: $qdisc ($iface )"
73
+ fi
74
+ }
75
+
66
76
set_congestion () {
67
77
local algo=" $1 "
68
78
local mode=" $2 "
@@ -87,6 +97,9 @@ apply_wifi_settings() {
87
97
for algo in $congestion_algorithms ; do
88
98
if [ -f " $MODPATH /wlan_$algo " ]; then
89
99
set_congestion " $algo " " Wi-Fi"
100
+ if [ " $algo " = " bbr" ]; then
101
+ set_qdisc " $iface " " fq_codel"
102
+ fi
90
103
set_max_initcwnd_initrwnd " $iface "
91
104
applied=1
92
105
break
@@ -102,6 +115,9 @@ apply_cellular_settings() {
102
115
for algo in $congestion_algorithms ; do
103
116
if [ -f " $MODPATH /rmnet_data_$algo " ]; then
104
117
set_congestion " $algo " " Cellular"
118
+ if [ " $algo " = " bbr" ]; then
119
+ set_qdisc " $iface " " fq_codel"
120
+ fi
105
121
set_max_initcwnd_initrwnd " $iface "
106
122
applied=1
107
123
break
You can’t perform that action at this time.
0 commit comments