moodlebox / moodle-tool_moodlebox

A Moodle plugin providing a GUI to the administration of a MoodleBox
GNU General Public License v3.0
14 stars 4 forks source link

No wifi connection with image 4.6.0 on Raspberry Pi 3B model #145

Closed martignoni closed 1 week ago

martignoni commented 12 months ago

See https://discuss.moodlebox.net/d/428-moodlebox-460-connexion-wifi-impossible.

martignoni commented 11 months ago

Tested on:

martignoni commented 11 months ago

No error message on the RPi 3B, but no wireless client can connect.

However:

uap0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0

comes repeatedly, and connection doesn't complete.

martignoni commented 11 months ago

This seems a bug with the AP protocol. Hot fix: launch following commands in MoodleBox terminal

sudo nmcli con mod WifiAP wifi-sec.proto rsn,wpa
sudo nmcli connection reload
martignoni commented 10 months ago

This is fixed. Closing.

ralf-krause commented 1 week ago

This issue is only fixed when the parameter wifi-sec.proto is set when starting the MoodleBox. The parameter should be set to wpa (for WPA) on a Raspberry Pi 3B and to rsn (for WPA2) on the newer models.

A microSD card working for a Raspberry Pi 3B can be moved to a Raspberry Pi 4 but the wifi only has WPA and not WPA2. Currently a microSD card working for a Raspberry Pi 4B with WPA2 would not work for a Raspberry Pi 3B without WPA2.

martignoni commented 1 week ago

Reopening. See discussion in #150.

ralf-krause commented 1 week ago

Now I installed the MoodleBox 4.5.1 image in a microSD card .... this is the last MoodleBox image with Bullseye.

I started the Raspberry Pi 3B with this microSD card and it works! The MoodleBox wifi uses the security protocol WPA2. So it could not be the hardware. It must be something wrong in the software. Does WPA2 have parameters for the crypto method or the crypto depth.

moodlebox451-wifi-wpa2
martignoni commented 1 week ago

Now I installed the MoodleBox 4.5.1 image in a microSD card

This bug is present in Debian Bookworm only (MoodleBox image 4.6.0 or later).

ralf-krause commented 1 week ago

Yes, I wanted to be sure that the Raspberry Pi 3B can be an access point with WPA2. So I tested MoodleBox 4.5.1 with Debian Bullseye.

martignoni commented 1 week ago

See https://github.com/moodlebox/moodlebox/issues/354 for a definitive fix.