Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172928 - wpa_supplicant_associate() fails
Summary: wpa_supplicant_associate() fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-31 21:39 UTC by Renato Caldas
Modified: 2007-04-06 11:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renato Caldas 2007-03-31 21:39:15 UTC
I'm trying to configure wpa_supplicant to be used with a wired connection. Using all ~amd64.

I'm having some trouble with the init scripts detecting the association. That is, wpa_cli status reports a successful association, but the net script always times out.

I eventually tracked down the place where it fails. It's in the wpa_supplicant_associate() function, in the loop starting at line 158. The test

if [[ -n ${actfile} ]] ; then

is allways true, so it loops until the timeout... I've tested ${actfile} just before that test, and it is always set to "/etc/wpa_supplicant/wpa_cli.sh".

I really don't know what kind of info would help here, so please request it as needed.
Comment 1 Renato Caldas 2007-04-04 21:05:27 UTC
Apparently it also happens in my wireless connection (not much field proof though, as I only use it at the university).

This bug prevents the dhcp client from being run. If you call it by hand it does get an address, and the link is usable.

Strangely, it works fine if the interface is started automatically at boot (I.E. for the first time). So my workaround now is to reboot the machine to get wireless working..
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-04-05 10:15:27 UTC
What baselayout version is this with?
Comment 3 Renato Caldas 2007-04-05 10:33:52 UTC
I'm using all ~amd64, so it's baselayout-1.12.9. The only active use flag is "unicode".
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2007-04-05 10:45:30 UTC
Similar problems on wireless. I'm using an Intel IPW2915 (ABG) adapter to connect to a WPA2 PSK (CCMP) LAN. Baselayout & wpa_supplicant versions:
[ebuild   R   ] sys-apps/baselayout-1.12.9  USE="unicode -bootstrap -build -static" 0 kB 
[ebuild   R   ] net-wireless/wpa_supplicant-0.5.7  USE="dbus gnutls readline ssl -gsm -madwifi -qt3 -qt4" 0 kB 

Further system information:
Portage 2.1.2.3 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.21-rc5-g703071b5 i686)
=================================================================
System uname: 2.6.21-rc5-g703071b5 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Unknown
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs collision-protect cvs digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms sign"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://localhost/disabled"
USE="7zip S3TC X a52 aac aalib acpi adns adplug aim alsa amazon amr ao aotuv asf async audacious audiofile avahi bash-completion beagle berkdb bitmap-fonts bl bluetooth branding bzip2 cairo cardbus cddb cdr cracklib crypt cups curl dbus devmap divx djbfft djvu dmi dpms dri dts dv dvd dvdr dvi eap-tls ecc encode erandom ethereal exif expat fam fbcon ffmpeg fftw firefox flac fortran ftp gaim galago gdbm gif gimp glitz glut gmedia gnome-print gnutls gpg2-experimental gpgme gpm gstreamer gtk gtkhtml h323 hal hdaps i8x0 ical iconv icq idle imagemagick imap imlib2 ipv6 irc irda irmc jabber java jpeg jpeg2k lame libcaca libg++ libnotify libsamplerate libsexy live lzo lzw mad matroska mbox mbrola md5sum midi mikmod mjpeg mmx mmxext mng modplug mono mozbranding mp3 mp4 mpeg mpeg2 mplayer msn musepack nautilus ncurses network nls no-old-linux nokia6600 nptl nptlonly nsplugin ogg openal opengl pam pcmcia pcre pdf perl physfs plugins png ppds python quicktime readline real realmedia reflection rss rtc samba sdl session sid silc sms sndfile speex spell spl srv sse sse2 ssl startup-notification svg swig symlink syslog t1lib tga theora threads thumbnail thunar-vfs thunderbird tiff timidity trayicon truetype truetype-fonts tta type1-fonts unicode urandom usb uudeview v4l v4l2 vorbis vorbis-psy wavpack web win32codecs wma wmf wmp x86 xanim xcomposite xhtml xinerama xml xml2 xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Renato, could you post emerge --info as well please?
Comment 5 Renato Caldas 2007-04-05 10:49:57 UTC
Sure:

Portage 2.1.2.3 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r4 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 04 Apr 2007 11:00:09 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="pt pt_PT"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 apache2 berkdb bitmap-fonts bzip2 cairo cdparanoia cli cracklib crypt cups custom-cflags dbus directfb dri dvd dvdr dvdread encode fbcon firefox fortran gcj gdbm gif glibc-compat20 glut gnutls gpm gstreamer gtk hal iconv ipv6 isdnlog jack java jpeg libcaca libg++ mad midi mp3 mpeg ncurses network nls nptl nptlonly nvidia ogg opengl pam pcmcia pcre pdf perl png ppds pppd python quicktime readline reflection samba sdl session sndfile sound sox spell spl ssl svg tcpd theora threads tiff tls truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis x264 xml xorg xpm xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev synaptics ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt pt_PT" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Renato Caldas 2007-04-05 10:51:07 UTC
Also, my wpa_supplicant use flags are the same as yours.
Comment 7 Roy Marples (RETIRED) gentoo-dev 2007-04-05 11:21:48 UTC
Fixed in baselayout-1.12.10
Comment 8 Renato Caldas 2007-04-05 16:37:54 UTC
Hum.. It does fix the bug, but now I seem to be having some trouble with the "first time" connection. I've only made some preliminary tests on my wired interface, but will reopen this bug if it gets confirmed.

Thanks!
Comment 9 Renato Caldas 2007-04-06 11:18:17 UTC
No, false alarm. It's indeed working correctly.

ifplugd is the one who's not working as expected. I'll file a bug report as soon as I find where it's failing.

Cheers,
  Renato