Fwd: Provide better diagnostics for disabled WEP support in hostapd
Andrej Shadura
andrew at shadura.me
Thu Feb 24 03:06:37 PST 2022
Hi,
Please see the improvement proposal I received in a bug report.
--
Cheers,
Andrej
----- Original message -----
From: Vincent Danjean <vdanjean at debian.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: Bug#1006366: hostapd: No WEP support by default anymore should be documented
Date: Thursday, 24 February 2022 11:52
Package: hostapd
Version: 2:2.10-2
Severity: normal
Hi,
Since 2.10, upstream does not enable CONFIG_WEP for default build
and Debian build does not change that.
This modification should be at least documented (in README.Debian
for example) or CONFIG_WEP should be re-enabled for Debian packages.
I had to dig into the source in order to understand why I got this
error messages:
# hostapd /etc/hostapd/hostapd.conf
Line 162: unknown configuration item 'wep_default_key'
Line 163: unknown configuration item 'wep_key0'
2 errors found in configuration file '/etc/hostapd/hostapd.conf'
Failed to set up interface with /etc/hostapd/hostapd.conf
Failed to initialize interface
wep_default_key and wep_key0 are still in the documentation.
A better fix (for upstream) would be to check again for
these configuration item at the end of the long test
for each conf item, and add a specific message such as
"hostapd not configurated with WEP support, configuration item 'wep_default_key' unavailable"
Regards,
Vincent
-- System Information:
Debian Release: bookworm/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'oldstable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel, mipsel
Kernel: Linux 5.16.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages hostapd depends on:
ii init-system-helpers 1.61
ii libc6 2.33-5
ii libnl-3-200 3.5.0-0.1
ii libnl-genl-3-200 3.5.0-0.1
ii libnl-route-3-200 3.5.0-0.1
ii libssl1.1 1.1.1m-1
ii lsb-base 11.1.0
hostapd recommends no packages.
hostapd suggests no packages.
More information about the Hostap
mailing list