Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6536

Networking and servers • Re: NetworkManager/wpa_supplicant setting "bgscan" for better roaming

$
0
0
For the record/future, the/an "answer" is to inject the desired settings via D-Bus:

Start by locating the interface in questions using "busctl":

Code:

busctl tree fi.w1.wpa_supplicant1
2025-04-28 08_33_12-Clipboard.png
Next, you craft a command similar to the following:

Code:

busctl call --system \  fi.w1.wpa_supplicant1 \  /fi/w1/wpa_supplicant1/Interfaces/0/Networks/0 \  org.freedesktop.DBus.Properties Set \  ssv \  fi.w1.wpa_supplicant1.Network Properties \  a{sv} 1 \  bgscan s "simple:60:-65:180"  
where the interface number in the line containing

Code:

Interfaces/0
is changed to whatever is matching the output of "busctl tree", and the value for "bgscan" is modified to your needs.

(See https://wiki.archlinux.org/title/Wpa_supplicant or https://web.mit.edu/freebsd/head/contri ... icant.conf for more info on that.)

You can read back the settings (prior and/or after) by using the command:

Code:

busctl get-property --system \  fi.w1.wpa_supplicant1 \  /fi/w1/wpa_supplicant1/Interfaces/0/Networks/0 \  fi.w1.wpa_supplicant1.Network Properties

Statistics: Posted by Egholm — Mon Apr 28, 2025 6:40 am



Viewing all articles
Browse latest Browse all 6536

Trending Articles