Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#17271 - [netcfg] 2.5rc1 wpa-config profile ignored
Attached to Project:
Arch Linux
Opened by Michele Scandale (skadotnet) - Tuesday, 24 November 2009, 16:26 GMT
Last edited by Thomas Bächler (brain0) - Tuesday, 13 July 2010, 17:26 GMT
Opened by Michele Scandale (skadotnet) - Tuesday, 24 November 2009, 16:26 GMT
Last edited by Thomas Bächler (brain0) - Tuesday, 13 July 2010, 17:26 GMT
|
DetailsDescription:
Using netcfg, net-auto-wireless daemon ignores profiles with SECURITY="wpa-config", causing the failure of loading the profile of a network that should be found from wpa-roaming service. Additional info: * config and/or log files etc. wpa_supplicant.conf: network={ ssid="STUDENTI" key_mgmt=WPA-EAP eap=TTLS identity="myidentity" password="123456" ca_cert="/path/to/cert.pem" phase2="auth=PAP" } myprofile: CONNECTION="wireless" DESCRIPTION="unibs" SCAN="no" QUIRKS=(prescan preessid) INTERFACE="wlan0" ESSID="STUDENTI" SECURITY="wpa-config" WPA_CONF="/etc/wpa_supplicant.conf" IP="dhcp" Steps to reproduce: Run net-auto-wireless with a profile that use SECURITY="wpa-config" The problem seems to be located in /usr/bin/netcfg-wpa_actiond on line 55,56: # Exclude wpa-config, the wpa_conf is 'complete' and doesn't fit in this scheme [[ $SECURITY == "wpa-config" ]] && exit 1 The script in this line ignore profiles with SECURITY="wpa-config", so the configuration of custom wpa_supplicant.conf isn't joined to the netcfg's generated one. So the wpa-roaming cannot work. |
This task depends upon
WPA_CONF="$(make_wpa_config_file $interface)"
WPA_E_CONF="$WPA_CONF"
for profile in $(list_profiles); do
echo $profile
(
load_profile $profile
[[ $CONNECTION != "wireless" ]] && exit 1
[[ $INTERFACE != $interface ]] && exit 1
if [ $SECURITY == "wpa-config" ]; then
cat $WPA_CONF | sed '/network={/,/}/!d' >> $WPA_E_CONF
exit 1
fi
config=$(make_wpa_config)
echo -e "network={ \n$config \nid_str=\"$profile\" \n}" >> $WPA_CONF
)
done
In this way the "network blocks" from custom wpa_supplicant.conf are added to netcfg's generated one and so parsed by wpa-roaming service.
http://bbs.archlinux.org/viewtopic.php?id=84796
For example:
CONNECTION="wireless"
DESCRIPTION="My very complex connection"
INTERFACE="wlan0"
SECURITY="wpa-configsection"
CONFIGSECTION='
ssid="somessid"
key_mgmt=WPA-EAP
proto=RSN
eap=TTLS
phase2="auth=PAP"
anonymous_identity="somethingpublic"
identity="somethingsecret"
password="somethingevenmoresecret"
ca_path="/etc/ssl/certs"
'
IP="dhcp"