Skip to content

Commit

Permalink
Enable setting of wifi channels 12 and 13 (#144)
Browse files Browse the repository at this point in the history
- See issue #143.
  • Loading branch information
martignoni authored Oct 27, 2024
1 parent b426e70 commit 5ef70a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/) and follow principles of [keep a changelog](https://keepachangelog.com).

## Version 2.18.2, unreleased

__This version is not compatible with versions of Moodle prior to Moodle 4.4!__

### Fixed
- Channels 12 and 13 for wireless AP can be selected (issue #144).

## Version 2.18.1, 2024-10-13

__This version is not compatible with versions of Moodle prior to Moodle 4.4!__
Expand Down
4 changes: 0 additions & 4 deletions bin/changewifisettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ def do_channel():
new_channel = default_channel
# new_channel is now valid.
if is_networkmanager():
# Workaround bug in NetworkManager: country_code is not used, so if new_channel is 12 and 13,
# we revert to default_channel (11).
# See https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/960.
new_channel = str(min(int(default_channel), int(new_channel)))
# Set channel with nmcli
subprocess.run(['sudo', 'nmcli', 'con', 'mod', 'WifiAP', 'wifi.channel', new_channel])
else:
Expand Down

0 comments on commit 5ef70a2

Please sign in to comment.