FS#18212 - [netcfg] net-auto-wireless if one of the profiles is wireless-open

Attached to Project: Arch Linux
Opened by Maciej Sitarz (macieks2) - Sunday, 07 February 2010, 15:15 GMT
Last edited by James Rayner (iphitus) - Sunday, 21 February 2010, 04:14 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To James Rayner (iphitus)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
net-auto-wireless is not working properly if one of the profiles has no SECURITY option set.

Additional info:
* netcfg 2.5.1
* wireless-open:
# cat /etc/network.d/wireless-open
CONNECTION="wireless"
DESCRIPTION="A simple opened wireless connection"
INTERFACE="wlan0"
ESSID="MyNetwork"
IP="dhcp"


Steps to reproduce:
# cp /etc/network.d/examples/wireless-open /etc/network.d/wireless-open
# /usr/bin/netcfg-wpa_actiond wlan0
wireless-open
Line 37: WPA-PSK accepted for key management, but no PSK configured.
Line 37: failed to parse network block.
Failed to read or parse configuration '/tmp/wpa.wlan0/wpa.conf'.

How to fix this:
Basically adding SECURITY="none" to the profile helps, but maybe it should be handled somewhere in the code?
This task depends upon

Closed by  James Rayner (iphitus)
Sunday, 21 February 2010, 04:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  explicitly requiring SECURITY="none" in next version.
Comment by Natanji (Natanji) - Thursday, 18 February 2010, 19:54 GMT
I believe simply adding the line SECURITY="none" to /etc/network.d/examples/wireless-open should do the trick here. it would also be nice if the news on netcfg 2.5.2 were updated to mention this, as this is a change that will effectively prevent net-auto-wireless from working if an open network is configured, without giving a proper error message.
Comment by Wade S Duvall (ackthet) - Saturday, 20 February 2010, 15:25 GMT
I think that this should be set in the default open wireless profile.
Comment by Natanji (Natanji) - Saturday, 20 February 2010, 15:28 GMT
As netcfg is no longer in "Testing", it would be great if somebody could set the category to "Core".

Loading...