Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

site: disallow usage of outdoor mode in case outdoor_chanlist is missing #2246

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blocktrron
Copy link
Member

This is currently not yet tested on the repsective hardware, so RFC for now.


The documentation states the outdoor mode is only enabled in case
outdoor_chanlist is defined in the sites wifi5 configurationsection:

If enabled, by setting wifi5.outdoor_chanlist, a number of
devices that are commonly installed outdoors will have outdoor
mode automatically enabled during their initial setup

This currently does not hold true, as Outdoor mode is always activated
for these devices on first setup, even in case the site does not specify
an outdoor chanlist.

Furthermore, it also does not make sense to show the option neither in
setup-modes basic nor advences configuration view in case the site is
lacking an out door chanlist.

This patch will disable outdoor mode on new installs in case the outdoor
chanlist is missing. It will also not show the respective configuration
options in this case.

Signed-off-by: David Bauer [email protected]

@github-actions github-actions bot added 3. topic: config-mode This is about the configuration mode 3. topic: package Topic: Gluon Packages 3. topic: wireless Topic: Wireless labels Jun 21, 2021
@blocktrron blocktrron force-pushed the pr-outdoor-mode-optional branch 2 times, most recently from ad585b7 to 963bcfd Compare June 27, 2021 11:50
@@ -142,7 +142,7 @@ uci:foreach('wireless', 'wifi-device', function(config)
end)


if has_5ghz_radio() and not wireless.preserve_channels(uci) then
if has_5ghz_radio() and not wireless.preserve_channels(uci) and wireless.site_supports_outdoor_mode() then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also display the form when outdoor mode is already enabled.

@neocturne neocturne added 2. status: merge conflict The merge has a conflict and needs rebasing 2. status: waiting-on-author Waiting on some action from the author labels Jan 1, 2022
The documentation states the outdoor mode is only enabled in case
outdoor_chanlist is defined in the sites wifi5 configurationsection:

 > If enabled, by setting ``wifi5.outdoor_chanlist``, a number of
 > devices that are commonly installed outdoors will have outdoor
 > mode automatically enabled during their initial setup

This currently does not hold true, as Outdoor mode is always activated
for these devices on first setup, even in case the site does not specify
an outdoor chanlist.

Furthermore, it also does not make sense to show the option neither in
setup-modes basic nor advences configuration view in case the site is
lacking an out door chanlist.

This patch will disable outdoor mode on new installs in case the outdoor
chanlist is missing. It will also not show the respective configuration
options in this case.

Signed-off-by: David Bauer <[email protected]>
@rotanid rotanid removed the 2. status: merge conflict The merge has a conflict and needs rebasing label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. status: waiting-on-author Waiting on some action from the author 3. topic: config-mode This is about the configuration mode 3. topic: package Topic: Gluon Packages 3. topic: wireless Topic: Wireless
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants