iwd: enable and rephrase use_default_interface=true, fix egrep deprecation in Country comment

This commit is contained in:
Aminda Suomalainen 2024-07-24 20:47:16 +03:00
parent 5a0218d3f3
commit e644ce1111
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 8 additions and 7 deletions

View File

@ -1,15 +1,16 @@
[General]
# Request setting regulatory domain (ISO-Alpha-2). Check with `iw reg get`.
# Location-Aided Routing (LAR) or self-managed devices will just set
# the country by nearby APs and for some reason a stock configuration by a
# local ISP in my neighbourhood is incorrectly advertising DE rathar than FI
# so Lumina gets it wrong. Luckily FI and DE share regulation judging by
# https://archive.softwareheritage.org/swh:1:cnt:3f74194de9b0bdcf6052b505067363f17427c28f;origin=https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git;visit=swh:1:snp:1b8d84b34965cbea94ad57200121527c5ad51616;anchor=swh:1:rev:fe05cc94e070c71486047002fc2edf68f5f2a07a;path=/db.txt
# To check/refresh regdomain, `iw wlan0 scan | egrep -e "SSID:|Country:"`
# the country by nearby APs which again don't expose that configuration to
# their administrator in that great detail resulting to devices within the EU
# advertising country DE.
# To check/refresh regdomain, `iw wlan0 scan | grep -E "SSID:|Country:"`
Country=FI
# Legacy compatibility. Doesn't seem necessary on Lumina.
#use_default_interface=true
# Stop iwd from destroying and recreating the interface. I think I am having
# stability issues with systemd-networkd if I have to restart anything
# networking related by hand, which seems to be mitigated by this.
use_default_interface=true
# Build-in network configuration including DHCP client (and server when
# tethering), true if not using systemd-networkd!