Wifi connection flips between access points

I have a wifi issue - there are multiple access points in my building, and I seem to be on the edge between the range of some 2.4GHz, 6GHz, and 5GHz wifi signals all on the same wifi network that I connect to. The connection is great, but will often flip between access points and disrupt my connection (very bad for gaming). I concluded this was the cause after scanning the room with wifiman on my phone and seeing it connect to all of the different access points.

I have no experience with this sort of networking on linux, so please let me know of any ideas or resources that may be helpful. I need to get used to the networking stack on endeavouros. So far, my basic idea is to identify a good signal or two and blacklist everything else.

Here’s copilot’s advice. Let us know how you get on :slight_smile:

1 Like

So the main issue is fixed, but now my school’s eduroam connection config is broken. The first fix was done by switching to iwd as the backend, by adding this to a file in networkmanager settings (/etc/NetworkManager/conf.d/roam-settings.conf):

[device]
wifi.backend=iwd

Now I face what seems to be a common issue with iwd+eduroam. My school has a setup-script, which connects nomally when using wpa_supplicant as the backend. In the case of iwd, it creates a config for the connection (/var/lib/iwd/eduroam.8021x):

# Auto-generated from NetworkManager connection "eduroam [***]"
# Changes to that connection overwrite this file when enabled by NM's [main].iwd-config-path value
[Settings]
AutoConnect=false

[IPv6]
Enabled=true

[Security]
EAP-Method=TTLS
EAP-Identity=**@**.**
EAP-TTLS-CACert=/home/**/.joinnow/usertrustrsaca [jdk]-comodoaaaca [jdk]-bundle.pem
EAP-TTLS-ServerDomainMask=*.***
EAP-TTLS-Phase2-Method=Tunneled-PAP
EAP-TTLS-Phase2-Identity=**
EAP-TTLS-Phase2-Password=**

Now iwd fails when connecting and repeats the log:

Sep 23 23:27:42 ** iwd[1106]: Failed to load /home/**/.joinnow/usertrustrsaca [jdk]-comodoaaaca [jdk]-bundle.pem

The error stems (My current theory from reading similar similar posts) from the ProtectHome variable with iwd.service - ie this cert should be moved somewhere else than home. The only issue is I do not know how to change the cert location without being overridden by NM, as the comment in the above file points out. I need to get a better sense of the NM stack and ways to edit NM settings here.

So close! Please let me know how to tidy this problem up.

Paste it into copilot :wink:

It can’t quite solve the issue of connecting to eduroam with iwd