gluon-core: add override setting for htmode per radio#3601
gluon-core: add override setting for htmode per radio#3601maurerle wants to merge 4 commits intofreifunk-gluon:mainfrom
Conversation
013af30 to
7ad677d
Compare
7ad677d to
1047228
Compare
| function M.radio_roles(uci, radio) | ||
| local band = radio.band | ||
| local radio_name = radio['.name'] | ||
| local radio_roles = uci:get_list('gluon', radio_name, 'role') |
There was a problem hiding this comment.
The whole point of moving this config from /etc/config/wireless to /etc/config/gluon was to make it independent of the radio indices. We can't add sections with radio names to gluon now, they should be identified by their paths (or PHY names in the future, when renaming works...)
It may make sense to disallow this for now and wait for working PHY renaming.
There was a problem hiding this comment.
I fixed this in the latest push (not cleaned up though)
| local bandwidth | ||
|
|
||
| if radio.band == '2g' then | ||
| bandwidth = site.wifi24.bandwidth('20') |
There was a problem hiding this comment.
Types are inconsistent - check_site.lua enforces a number, but here the default value is a string.
There was a problem hiding this comment.
Also, shouldn't this be called channel_width?
There was a problem hiding this comment.
Also, the abstraction should be the same in site.conf and /etc/config/gluon (with values 20, 40, ...). The conversion to HE20 etc. should happen when applying the configuration to `/etc/config/wireless.
There was a problem hiding this comment.
I would like to have the option to set 'HT20' instead of 'HE20' in the /etc/config/gluon as well..?
I only need this to debug an issue from time to time and could adjust /etc/config/wireless myself.
So I guess it is fine to only have the "highest" mode configured in gluon
|
I also remember meshing getting broken because of dynamic switching of primary and secondary channel by hostapd with HT40 modes (if another radio is seen on the primary channel, which will... always happen when meshing), which could only be workarounded with the potentially non-compliant |
|
Thanks! I did not have any issue with this so far. Tested with: I guess that I should have run into this issue, if it would still be a problem. |
1047228 to
68325e6
Compare
68325e6 to
2dc0751
Compare
|
The I guess I have to somehow implement this somewhat like this:
I could also just create the wifi-device section myself, but I don't know how I will know about phy renaming then..? I guess this works fine, but also is a little bit of work. I wonder how this could adhere to wifi path changes like this: |
e39f358 to
396138e
Compare
|
Until I have some guidance to this change, the htmode site setting (#3659) is unrelated from this and should work without introducing regrettable changes. |
add a txpower and htmode per radio section, which can be set using uci set gluon.radio0.htmode="HE40" Similarly, gluon.radio0.txpower can be adjusted. This is based on the radio name which should stay the same once created with wifi config The migration of the existing txpower value takes already place in 022-wireless-roles
Signed-off-by: Florian Maurer <f.maurer@outlook.de>
396138e to
1708d7a
Compare
This is a follow up PR from #3563 and implements the missing parts of #3550
Fixes #3550
Fixes #2947
This allows to set a custom bandwidth, which should be supported by all devices with that band.
add a txpower and htmode per radio section, which can be set using
uci set gluon.wradio0.htmode="HE40"Similarly,
gluon.wradio0.txpowercan be adjusted.This is based on the radio name which should stay the same once created with wifi config
The migration of the existing txpower value takes already place in
022-wireless-roles.There might be a better option to tie this setting to, but radio0 seems more consistent than "phy0" as we have seen.