Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Help with wpa_supplicant please

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

Help with wpa_supplicant please

  • Quote

Post by curmudgeon » Sat Jun 09, 2007 9:07 am

As well as Linux works well for so many things, I absolute hate trying to get wireless networking to work on it. :(

From the beginning:

Gigafast USB wireless adapter using the zd1211rw driver.

Already a pain to have to connect the device after bootup finishes (and manually start things such as sshd), but I can live with that (fortunately, this machine will not get rebooted often).

Recompiled kernel and emerged zd1211-firmware.

Apparently recognized:

Code: Select all

Jun 10 00:00:00 system usb 1-1: new full speed USB device using uhci_hcd and address 4
Jun 10 00:00:00 system usb 1-1: configuration #1 chosen from 1 choice
Jun 10 00:00:00 system zd1211rw 1-1:1.0: firmware version 4725
Jun 10 00:00:00 system zd1211rw 1-1:1.0: zd1211b chip 0ace:1215 v4810 full 00-02-72 AL2230_RF pa0 g--N
Jun 10 00:00:00 system zd1211rw 1-1:1.0: eth1
Jun 10 00:00:05 system ADDRCONF(NETDEV_UP): eth1: link is not ready
/etc/conf.d/net (note that eth0 will not get started or used):

Code: Select all

config_eth0=("192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0")
config_eth1=("192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0")

routes_eth0=("default via 192.168.0.1")
routes_eth1=("default via 192.168.0.1")

essid_eth1="hiddenssid"
wpa_supplicant_eth1='-Dwext'
/etc/wpa_supplicant/wpa_supplicant.conf:

Code: Select all

ap_scan=1

network={
        ssid="hiddenssid"
        scan_ssid=1
        psk="mypsk"
        }
Running /etc/init.d/net.eth1 start gives (from /var/log/messages):

Code: Select all

This line repeats every ten seconds:
Jun 10 00:01:00 system SoftMAC: Open Authentication completed with 00:00:00:00:00:01

When starting, I also see the following:
Jun 10 00:02:00 system ADDRCONF(NETDEV_UP): eth1: link is not ready
Jun 10 00:02:01 system SoftMAC: Open Authentication completed with 00:00:00:00:00:01
Jun 10 00:02:01 system ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Jun 10 00:02:12 system SoftMAC: Open Authentication completed with 00:00:00:00:00:01
Jun 10 00:02:12 system eth1: no IPv6 routers present

With this thrown in occasionally, as well:
Jun 10 00:03:00 system SoftMAC: wx_set_mlme: we should know the net here...
Jun 10 00:04:36 system SoftMAC: Open Authentication completed with 00:00:00:00:00:01
Jun 10 00:04:47 system eth1: no IPv6 routers present
Ifconfig shows this:

Code: Select all

# /sbin/ifconfig
eth1      Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet6 addr: fe80::202:72ff:fe5a:4759/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
I don't know where it gets that IPv6 address from.

And finally, attempting to debug using wpa_cli:

Code: Select all

# /bin/wpa_cli
wpa_cli v0.5.7
Copyright (c) 2004-2006, Jouni Malinen <jkmaline@cc.hut.fi> and contributors

This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.

Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.


Selected interface 'eth1'

Interactive mode

These five lines repeat every ten seconds:
<2>Authentication with 00:00:00:00:00:01 timed out.
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Trying to associate with 00:00:00:00:00:01 (SSID='hiddenssid' freq=2462 MHz)
<2>Association request to the driver failed
<2>Associated with 00:00:00:00:00:01

Lowering the debug level ("level 1"), gives some additional details:
<2>Authentication with 00:00:00:00:00:01 timed out.
<1>Setting scan request: 0 sec 0 usec
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Trying to associate with 00:00:00:00:00:01 (SSID='hiddenssid' freq=2462 MHz)
<1>Cancelling scan request
<1>WPA: using IEEE 802.11i/D3.0
<1>WPA: using GTK TKIP
<1>WPA: using PTK TKIP
<1>WPA: using KEY_MGMT WPA-PSK
<2>Association request to the driver failed
<1>Setting authentication timeout: 5 sec 0 usec
<1>Associated to a new BSS: BSSID=00:00:00:00:00:01
<2>Associated with 00:00:00:00:00:01
<1>Setting authentication timeout: 10 sec 0 usec
<1>Cancelling scan request
<1>Setting authentication timeout: 10 sec 0 usec
The questions:
1. How do I associate with the router?
2. Why doesn't the interface get configured with the IP address?
Top
koenderoo
Guru
Guru
User avatar
Posts: 514
Joined: Sat Jan 03, 2004 6:40 pm
Location: Zwolle, The Netherlands
Contact:
Contact koenderoo
Website

  • Quote

Post by koenderoo » Mon Jun 11, 2007 11:11 am

Maybe you forgot to mention it, but installing just the firmware won't work. You need to install the zd1211 driver too. packagename is zd1211 :)
webmaster van www.koenderoo.nl
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Mon Jun 11, 2007 1:36 pm

Everything I have read said to use the driver in the kernel (which I OBVIOUSLY have configured in the kernel, since the kernel recognized it), and not either of the separate drivers.
Top
koenderoo
Guru
Guru
User avatar
Posts: 514
Joined: Sat Jan 03, 2004 6:40 pm
Location: Zwolle, The Netherlands
Contact:
Contact koenderoo
Website

  • Quote

Post by koenderoo » Tue Jun 12, 2007 1:54 pm

This won't give you much hope, but after a bit of Googling for this error (specially the link is not ready error) I found that the zd1211b chip isn't that well supported by the kernel.

I would recommend to stop the driver from the kernel and try the package instead, but I don't say it will work. Packages can be better then kernel-versions because kernel-versions are better controlled. The zd1211 package is marked unstable though so you have to be carefull with it.
webmaster van www.koenderoo.nl
Top
nomuus
n00b
n00b
User avatar
Posts: 11
Joined: Tue Apr 10, 2007 8:48 pm

  • Quote

Post by nomuus » Tue Jun 12, 2007 3:34 pm

It appears from the information that you have presented that the interfaces are set up for IPv6. Are you setting up an IPv6 network?
Top
andyknownasabu
Apprentice
Apprentice
User avatar
Posts: 281
Joined: Thu Feb 06, 2003 3:21 pm
Location: Zurich, Switzerland

  • Quote

Post by andyknownasabu » Mon Jul 09, 2007 9:23 pm

Hi,

I actually have the same problem: I just can't get the zd1211rw driver to work. :-(
I tried with a similar configuration as curmudgeon using wpa_supplicant but I can't associate with our AP.
From time to time but without any reason it seems to work - at least I can see some debugging output in
wpa_cli. But then suddenly it doesn't work anymore, the init script loads but wpa_gui shows no networks
and wpa_cli is quiet.
I also tried manually with iwconfig/ifconfig which also worked once after unloading the module
and modprobing again. But again not deterministic.

It's even strange that sometimes the firmware can't be loaded: I have to unplug the dongle and plug it in
again...

I just don't know what I could do. If it was reproduceable I would be able to check step by step but if it is
like this... :( :(
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic