Commit fb98c3e
authored
gluon-core: fix channel_width selection (#3806)
mode:match("%d+") returns a string while site.wifi{24,5}.channel_width()
returns a number, so "width == channel_width" is never true. Every radio
falls through to last_width, which is also compared as a string, making
"80" sort above "160".
The configured channel width is therefore ignored and radios come up at
the widest available mode capped at 80 MHz - including the VHT160 case
that e734119 set out to fix.
Fixes: e734119 ("gluon-core: fix potentially too low channel_bandwidth")1 parent a505f76 commit fb98c3e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments