Arch Linux

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!
Tasklist

FS#9942 - WPA for ethernet interfaces in netcfg2

Attached to Project: Arch Linux
Opened by Otakar Truněček (otakar) - Tuesday, 25 March 2008, 11:11 GMT
Last edited by James Rayner (iphitus) - Monday, 16 February 2009, 10:53 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To James Rayner (iphitus)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: In formal netcfg script was possible to use wpa_supplicant with ethernet interfaces. Now it doesn't work with new netcfg2. I need it, because wpa is used for authentication in network my student dorms. Now I have to start wpa_supplicant manually. Yes, it is possible to use PRE_UP command, but the formal way was more clean and simple. I would be happy, if the feature returned.

Additional info:
* package version(s): 2.0.6-1

This task depends upon

Closed by  James Rayner (iphitus)
Monday, 16 February 2009, 10:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  added in git.

Sorry about the long wait. It shouldn't have taken this long.
Comment by James Rayner (iphitus) - Wednesday, 26 March 2008, 12:39 GMT
Added support in git. There's a release v2.1.0_B1 at ftp.archlinux.org/other/netcfg/ which includes it. Just change the source file in the current PKGBUILD and it should work fine.

Then set the below in your config file.
SECURITY="wpa"

# OPTIONAL: Any extra arguments for wpa_supplicant
WPA_OPTS=
# OPTIONAL: filename of a wpa-supplicant config (defaults to /etc/wpa_supplicant)
WPA_CONF=
Comment by Otakar Truněček (otakar) - Thursday, 27 March 2008, 19:19 GMT
I didn't find the release v2.1.0_B1 in ftp, so i couldn't try it out. Anyway thank you for implementing this feature.
Comment by Börje Holmberg (linfan) - Tuesday, 29 April 2008, 21:35 GMT
I cannot find this so called v2.1.0_B1 either? Would like to try it out - the whole netcfg2 is a complete catastrophe just now.
Comment by James Rayner (iphitus) - Tuesday, 29 April 2008, 23:42 GMT
I uploaded it to the wrong spot I think. As I said, it's in the latest git.

http://projects.archlinux.org/git/?p=netcfg.git;a=summary

netcfg2 is a catastrophe right now? how so?
Comment by Börje Holmberg (linfan) - Wednesday, 30 April 2008, 06:25 GMT
I really do not know. Ethernet profile seems to work. I have a laptop and need to use wpa-psk and wep.
I have a somewhat hard to specify wifi card - Atheros chipset. I use ndiswrapper with the windows driver net5416.inf, which works once I have been unplugging the router and restarting the wpa profile some 5-15 minutes and there is no logic to why it suddenly starts working, but it never does start on reboot or starting up the laptop. With wep it does presently not work at all - I just get ARPOP fail messages and have to unplug the router to be able to get into the login prompt and then use the ethernet profile.

It seems that playing with dhcpcd wlan0 will make the trickery a bit faster :)

According to the the laptop specs I should have AR5006EG, but linux users say that it really is AR5007EG and hwd -e says it is AR242x. I have downloaded the driver from http://www.atheros.cz/download.php?atheros=AR5006EG&system=1, which is the only one that will work after a lot of stubborness and trickery an manual restarts.

hwd -e gives: 168c:001c Ethernet controller: Atheros Communications Inc. module: ndiswrapper
AR242x 802.11abg Wireless PCI Express Adapter

dmesg | grep ndiswrapper gives:
ndiswrapper version 1.52 loaded (smp=yes, preempt=yes)
ndiswrapper: driver net5416 (,06/05/2007,6.0.3.85) loaded
ndiswrapper (NdisMAllocateMapRegisters:972): Windows driver net5416 requesting too many (256) map registers
ndiswrapper: using IRQ 18
usbcore: registered new interface driver ndiswrapper

Common errors are: no wireless detected or lease failure and ARPOP...

/var/log/errors.log gives:
Apr 30 00:04:52 sawerlap pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0c02
Apr 30 00:04:52 sawerlap PCI: Failed to allocate mem resource #6:20000@e0000000
for 0000:05:00.0
Apr 30 00:05:31 sawerlap dhcpcd[6994]: wlan0: timed out
Apr 30 00:06:12 sawerlap dhcpcd[7032]: wlan0: dhcpcd already running on pid 6999
(/var/run/dhcpcd-wlan0.pid)
Apr 30 00:07:25 sawerlap dhcpcd[7135]: wlan0: dhcpcd already running on pid 6999
(/var/run/dhcpcd-wlan0.pid)
Apr 30 00:08:26 sawerlap dhcpcd[7187]: wlan0: timed out
Apr 30 00:09:28 sawerlap dhcpcd[7263]: wlan0: dhcpcd already running on pid 7188
(/var/run/dhcpcd-wlan0.pid)
Apr 30 00:10:12 sawerlap dhcpcd[7188]: wlan0: netlink: Cannot assign requested address
Apr 30 07:28:31 sawerlap pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0c02
Apr 30 07:28:31 sawerlap PCI: Failed to allocate mem resource #6:20000@e0000000 for 0000:05:00.0
Apr 30 07:29:45 sawerlap dhcpcd[7004]: wlan0: timed out
Apr 30 07:29:46 sawerlap dhcpcd[7004]: wlan0: lease expired 29975 seconds ago
Apr 30 07:31:51 sawerlap dhcpcd[7104]: wlan0: dhcpcd already running on pid 7005:

MY network.d/ looks like:

1) Sawers
CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"

ESSID="xxxx"
KEY="xxxxxx"
IP="dhcp"
#TIMEOUT=20
#psk=xxxxxxx
WPA_CONF="/etc/wpa_supplicant.conf"
#DHCP_TIMEOUT=20
#DHCP_OPTIONS="-m 1"

2) RFSL

CONNECTION="wireless"
DESCRIPTION="A simple WEP encrypted wireless connection"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wep"
ESSID="xxxx"
KEY="xxxx"
IP="dhcp"
IOWPTS="mode managed"

3) ethernet

CONNECTION="ethernet"
DESCRIPTION="A very basic ethernet profile, using dhcp"
INTERFACE=eth0
IP="dhcp"
DHCP_TIMEOUT=10

wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
# Only WPA-PSK is used. Any valid cipher combination is accepted.
network={
ssid="xxxx"
scan_ssid=1
key_mgmt=WPA-PSK
#psk="xxxx"
psk=xxxx
}

rc.conf modules:

MODULES=(forcedeth ndiswrapper !wlan_scan_sta snd-mixer-oss snd-pcm-oss snd-hwdepsnd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore snd-seq powernow-k8 cpufreq_ondemand cpufreq_powersave uvcvideo)

DAEMONS=(syslog-ng !network net-profiles netfs crond cpufreq @openntpd @archstatsrc fam hal alsa cpufreq laptop-mode timidity++)

NET_PROFILES:
#NET_PROFILES=()
#NETWORKS=(Sawers RFSL ethernet)
#NETWORKS=(ethernet)
NETWORKS=(Sawers)
#NETWORKS=(RFSL)
#NETWORKS=(menu)
___________

I have also tried with madwifi, but then the whole computer freezes when I use a torrent client and I have to cold reboot.

I have no idea what to try next. Thankful for any further light.

I did not understand the git thing, how to install it.
Comment by James Rayner (iphitus) - Wednesday, 30 April 2008, 09:16 GMT
Linfan, your bug is a totally different problem. This bug is for using 802.11x authentication on a WIRED ethernet connection.

For a start.. you've found a bug in the atheros driver if it freezes when you use a torrent client, and you should report that to the atheros developers so it can be fixed.

Secondly, the other problem is an ndiswrapper problem, again unrelated to netcfg2. ndiswrapper is often fiddly and buggy, try a different windows driver, otherwise report the problem to the ndiswrapper developers.
Comment by James Rayner (iphitus) - Wednesday, 25 June 2008, 12:28 GMT
Just an update, this one is a priority, and will be done in the next update.
Comment by Börje Holmberg (linfan) - Wednesday, 25 June 2008, 13:47 GMT
Seems all is ok now - i use madwifi nowadays. Both wpa and ethernet work, but wep only works with wifi-radar.
Comment by James Rayner (iphitus) - Thursday, 26 June 2008, 08:12 GMT
That's good to hear linfan, it might be a good idea to open a separate bug for the wep -- it should work with netcfg as well.

Above I was responding to the original reporter who has a totally different bug to yours.
Comment by Börje Holmberg (linfan) - Thursday, 26 June 2008, 08:56 GMT
ok, good :) Now even wep works - did some fiddling.
Comment by Michal Bozon (mykhal) - Saturday, 05 July 2008, 14:46 GMT
I do not see any change in v2.1.0_B1 nor in git, which would enable running wpa_supplicant on ethernet interfaces (wpa_supplicant -Dwired ...). The temporary solution - launching wpa_supplicant with PRE_UP works good (my config is here http://bbs.archlinux.org/viewtopic.php?pid=388011 , (there might be POST_DOWN replaced by PRE_DOWN ), however, after day or so, the connection is lost. It may be caused by missing coordination between wpa_supplicant and dhcp client.
Comment by Glenn Matthys (RedShift) - Friday, 05 December 2008, 23:32 GMT
What's the status of this issue?
Comment by James Rayner (iphitus) - Saturday, 06 December 2008, 05:30 GMT
implemented in git, should be seen in the next release, whenever that is.

Loading...