Comments (1)
Searching in the source code I found the reason for this issue.
https://github.com/moodlebox/moodle-tool_moodlebox/blob/main/bin/changewifisettings.py
starting in line 126
def do_channel():
"""Channel setting."""
global new_channel
# Validate new_channel. Replace it with default_channel if invalid.
if int(new_channel) < 1 or int(new_channel) > 13:
new_channel = default_channel
# Channel 12 and 13 aren't valid in Canada and US.
if new_country in ['CA','US'] and int(new_channel) > 11:
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:
# Set channel in hostapd config file.
file_replace_line(hostapd_conf_file, 'channel=.*', 'channel=' + new_channel)
from moodlebox.
Related Issues (20)
- No wifi connection with image 4.6.0 on Raspberry Pi 3B model HOT 4
- Checklist for release 4.7.0
- Update GPU memory setting to current spec HOT 7
- Update to version v2.17.4 of MoodleBox plugin
- Database collation should be utf8mb4_unicode_ci HOT 2
- MoodleBox PHP timezone and OS timezone are not consistent HOT 5
- Tasks should refer to /boot/firmware instead of /boot HOT 1
- Update to Raspberry Pi OS version 2024-03-12 HOT 1
- Update to Moodle 4.4
- Update to Raspberry Pi OS version 2024-03-15 HOT 1
- Update to version v2.17.5 of MoodleBox plugin HOT 1
- MoodleBox has no route to the Internet when connected via wifi HOT 7
- Checklist for release 4.8.0
- Update rpi-clone to geerlingguy maintained version
- MoodleBox wifi does not connect with Raspberry Pi 3B HOT 4
- Support Raspberry Pi Connect HOT 1
- Update to Raspberry Pi OS version 2024-07-04
- Add PHP tidy extension
- Update to version v2.18.0 of MoodleBox plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodlebox.