Bug 32160 - aarch64 Wpa_supplicant default configuration contains errors
Summary: aarch64 Wpa_supplicant default configuration contains errors
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 32166
  Show dependency treegraph
 
Reported: 2023-08-07 21:53 CEST by Jybz
Modified: 2023-08-25 20:58 CEST (History)
3 users (show)

See Also:
Source RPM: wpa_supplicant-2.10-3.mga9.src.rpm
CVE:
Status comment:


Attachments
proposed mga default wpa_supplicant config file (5.91 KB, text/plain)
2023-08-10 09:45 CEST, David GEIGER
Details

Description Jybz 2023-08-07 21:53:55 CEST
The package for aarch64:
> http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/aarch64/media/core/release/wpa_supplicant-2.10-3.mga9.aarch64.rpm
contains in the /etc/wpa_supplicant.conf file this uncommented line 2043:
> freq_list=5180
Without this line, I can connect with wpa_supplicant on my Rpi4 SBC.

Also another uncommented section line 2015:
> blob-base64-exampleblob={
> SGVsbG8gV29ybGQhCg==
> }

It should be commented.

Don't you find this configuration file a bit too big? What about splitting it in two? One the real defautl configuration with the strict minimum, another aside, this one, as it?
Comment 1 Lewis Smith 2023-08-08 21:15:06 CEST
Thank you for the report and the corrections.

Different packagers commit wpa_supplicant, so assigning this globally.

Assignee: bugsquad => pkg-bugs
Hardware: All => aarch64
Summary: Wpa_supplicant default configuration contains errors => aarch64 Wpa_supplicant default configuration contains errors

Comment 2 Jybz 2023-08-08 21:26:21 CEST
The same configuration is on my x86_64 machine. (even if it does not prevent to connect to a hotspot)
Jybz 2023-08-08 21:26:29 CEST

Hardware: aarch64 => All

David GEIGER 2023-08-10 07:00:44 CEST

Source RPM: wpa_supplicant => wpa_supplicant-2.10-3.mga9.src.rpm
CC: (none) => geiger.david68210

Comment 3 David GEIGER 2023-08-10 07:46:11 CEST
What about just using as default config:

---------------------------------
# Default configuration file for wpa_supplicant.conf(5).

ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=1
ap_scan=1
fast_reauth=1
update_config=1

# Add here your networks.

---------------------------------


And move the example upstream one (the one we use) to /usr/share/doc/wpa_supplicant/wpa_supplicant.conf.sample
Comment 4 Jybz 2023-08-10 08:36:05 CEST
Fine for me.

Except the default configuration. I don't have such default configuration on mine mga8:

---------------------------------
> sed -e '/^[[:space:]]*#/d;/^[[:space:]]*$/d' /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
---------------------------------

Checking for update_config=1; sounds to be good is using wpa_gui and as it removes the comments, it is now better because the sample file is aside, so the comments will remain.

for ctrl_interface_group=wheel, I dont have sudo installed, no wheel group. Is it okay ?
Comment 5 David GEIGER 2023-08-10 09:45:24 CEST
Created attachment 13937 [details]
proposed mga default wpa_supplicant config file

WDYT? Is it ok for you?
Comment 6 Jybz 2023-08-10 13:31:49 CEST
Fine for me.
Comment 7 Dave Hodgins 2023-08-10 16:06:31 CEST
It would be better if all of the comments that are only about what's needed
on windows installs were removed. The extra comments make it hard to see what
is relevant for linux.

CC: (none) => davidwhodgins

Jybz 2023-08-11 15:31:27 CEST

Blocks: (none) => 32166

Comment 8 Jani Välimaa 2023-08-12 17:37:49 CEST
(In reply to Jybz from comment #4)
> for ctrl_interface_group=wheel, I dont have sudo installed, no wheel group.
> Is it okay ?

User group wheel isn't sudo only thing. Group wheel is available on every install by default.
Comment 9 Dave Hodgins 2023-08-12 18:16:11 CEST
Good point. https://gitweb.mageia.org/software/setup/tree/group shows
it's included in the setup package, so wheel group always has a gid of 10.
Filip Komar 2023-08-25 20:58:35 CEST

CC: (none) => filip.komar


Note You need to log in before you can comment on or make changes to this bug.