-
Notifications
You must be signed in to change notification settings - Fork 324
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
blocktrron
wants to merge
1
commit into
freifunk-gluon:main
Choose a base branch
from
blocktrron:pr-outdoor-mode-optional
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
site: disallow usage of outdoor mode in case outdoor_chanlist is missing #2246
blocktrron
wants to merge
1
commit into
freifunk-gluon:main
from
blocktrron:pr-outdoor-mode-optional
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
neocturne
reviewed
Jun 21, 2021
ad585b7
to
963bcfd
Compare
neocturne
reviewed
Jul 12, 2021
@@ -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 |
There was a problem hiding this comment.
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.
25 tasks
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 <mail@david-bauer.net>
963bcfd
to
0edc998
Compare
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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 mail@david-bauer.net