Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180140 - baselayout fails to associate to open unencrypted network via wpa_supplicant with RC_PARALLEL_STARTUP="yes"
Summary: baselayout fails to associate to open unencrypted network via wpa_supplicant ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 20:11 UTC by Juan J. García de Soria
Modified: 2007-07-07 23:48 UTC (History)
1 user (show)

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 Juan J. García de Soria 2007-05-28 20:11:15 UTC
An AMD64 system with Turion64X2 (dual core), and an integrated Broadcom WiFi card fails to associate to an open non-encrypted network when using wpa_supplicant and setting RC_PARALLEL_STARTUP="yes" in /etc/conf.d/rc.

When wpa_supplicant finds a WPA protected network rather than the open, unencrypted one, the association is performed and detected properly by the baselayout scripts.

If I set RC_PARALLEL_STARTUP="no" in /et/conf.d/rc, then the association is performed and detected ok too.

I've not tried to disable the second CPU core yet.

If I try to connect to the unencrypted network with parallel startup, I get the following output on startup:

Failed to configure wlan0 in the background                              [ !! ]
 * WARNING:  net.wlan0 has started but is inactive
 * WARNING:  sshd is scheduled to start when net.wlan0 has started.
 * WARNING:  samba is scheduled to start when net.wlan0 has started.
 * WARNING:  netmount is scheduled to start when net.wlan0 has started.

The fixed IP has not been set on the interface via ifconfig by the scripts, although actually wpa_cli reports the WiFi card to be properly associated to the unencrypted network.

It seems to be some kind of race condition that avoids the startup script from detecting that the association was performed succesfully. Running /etc/init.d/net.wlan0 restart makes the interface connect successfully afterwards.

The installed package versions are:

crow ~ # emerge -pv wpa_supplicant ndiswrapper baselayout

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-wireless/wpa_supplicant-0.5.7  USE="dbus gnutls madwifi qt3 qt4 readline ssl -gsm" 0 kB 
[ebuild   R   ] net-wireless/ndiswrapper-1.44  USE="usb -debug" 0 kB 
[ebuild   R   ] sys-apps/baselayout-1.12.9-r2  USE="unicode -bootstrap -build -static" 0 kB 


And the emerge --info output:

crow ~ # emerge --info
Portage 2.1.2.7 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 AMD Turion(tm) 64 X2
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 21 May 2007 20:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -fomit-frame-pointer -mtune=k8 -march=k8"
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 /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -mtune=k8 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LINGUAS="es_ES en_US es en"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi aiglx alsa amd64 apache2 arts asf audiofile avahi avi berkdb bitmap-fonts browserplugin bzlib c++ cairo cdr cli cracklib crypt ctype cups curl dbm dbus dga divx4linux dri dvd dvdr dvdread eds emboss encode esd exif fam fbcon ffmpeg firefox flac flash foomaticdb fortran ftp galago gcj gdbm gif gimpprint glibc-omitfp glitz gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv imagemagick imlib ipv6 isdnlog java javascript joystick jpeg ldap libg++ libnotify lirc mad mbox midi mikmod mime mjpeg mmap mng mozilla mp3 mpeg msn mudflap ncurses new-login nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp oss pam pcmcia pcre pdf perl pic png pnp postgres ppds pppd python qt3 qt4 quicktime readline recode reflection samba sasl sdl session sharedmem sndfile sockets speex spell spl sqlite ssl startup-notification svg tcpd tetex theora threads transcode truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis wmf xine xml xorg xosd xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel usb-audio" 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 joystick keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_ES en_US es en" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev nv vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Juan J. García de Soria 2007-05-29 15:41:39 UTC
I've tried booting the kernel with maxcpus=1, without affecting the test results.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-07-07 23:48:26 UTC
I'm pretty sure that we've resolved this issue with baselayout-2 (alpha3 in portage right now). Re-open if this is not the case.