Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316581 - sys-apps/openrc-0.6.1-r1 mishandles wpa_supplicant and iwconfig
Summary: sys-apps/openrc-0.6.1-r1 mishandles wpa_supplicant and iwconfig
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard: openrc:oldnet
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-21 20:25 UTC by Fabio Coatti
Modified: 2010-11-06 13:09 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 Fabio Coatti 2010-04-21 20:25:46 UTC
I'm seeing a weird behaviour with openrc 0.6.1 when starting wireless network.
here it goes:
- start wireless interface with /etc/init.d/net.wlan0 start
- stop it with /etc/init.d/net.wlan0 stop

after this the wlan0 interface is stuck in soft rfkill on, so it's impossible to start again wlan0 interface without clearing soft rfkill status (with rfkill unblock or unloading iwlagn module):

calvin ~ # /etc/init.d/net.wlan0 start
 * Bringing up interface wlan0
 *   Starting wpa_supplicant on wlan0 ...
Could not set interface wlan0 flags: Unknown error 132


after some investigations, I discovered that the activation of rfkill happens when iwconfig is called on "wlan0 stop" command.
This is weird for two reasons:
1- why in the first place iwconfig is called, as I have this in my net conf: modules_wlan0="wpa_supplicant !iwconfig dhcpcd netplugd"
2- why iwconfig turns on rfkill soft status?

Of course, main problem is 1, as in my opinion iwconfig must not be called when disabled and not referenced in net conf file.
In fact, I've unmerged net-wireless/wireless-tools and now all is working fine.
I'm using iwlagn driver and a more detailed descripiton of the issue can be seen here:
http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2195


Reproducible: Always




Portage 2.2_rc67 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33.2 i686)
=================================================================
System uname: Linux-2.6.33.2-i686-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 21 Apr 2010 19:00:02 +0000
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ "
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac aalib acl acpi aim alsa apache2 ares asf ati audio audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 cairo cdda cdparanoia cdr cjk cli consolekit cracklib crypt cups curl cxx dba dbus device-mapper dga directfb divx divx4linux dri dts dv dvb dvd dvdr dvdread edl emboss encode ethereal exif expat faad fam fame fbcon ffmpeg fftw firefox flac force-cgi-redirect fortran ftp gallium garmin gd gdbm gif gimp gmedia gmp gnutls gphoto2 gpm gps gsm gtk h264 h323 hal iconv icq idn ifp ilbc imagemagick imap innodb ipod ipv6 ithreads jabber jack java javascript joystick jpeg kde kontact kvm lastfm lcms ldap libcaca libnotify live lm_sensors lua lzo mad maildir mbox mdnsresponder-compat mhash mikmod mime mjpeg mmap mmx mmxext mng modules mozdevelop mozilla mp3 mp4 mpeg msn mtp mudflap mysql ncurses nepomuk network new-hpcups nfsv4 njb nls nptl nptlonly nsplugin offensive ofx ogg oggvorbis openal openexr opengl openmp oscar pam pango pcre pdf perl phonon php plasma plotutils png ppds pppd python qt3support qt4 readline reflection rtc ruby samba sasl sdl semantic-desktop session sha512 sip slang slp sndfile snmp sox speex spell spl sse sse2 ssh ssl ssse3 startup-notification svg symlink sysfs tcltk tcpd theora threads tiff tk tremor truetype udev unicode usb utempter v4l v4l2 vcd vhosts video videos vim-syntax vorbis wav webkit wifi win32codecs wmf wmp wxwindows x264 x86 xanim xcb xface xft xine xinerama xml xorg xosd xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo zlib zpm" 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeonhd radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 William Hubbs gentoo-dev 2010-09-07 21:33:26 UTC
Hi Fabio,

I was able to reproduce this, but I noticed something more.  It appears to me that this issue doesn't happen if you remove the modules_wlan0 line from /etc/conf.d/net.

To try this, do the following:

re-emerge wireless-tools
comment the following line in /etc/conf.d/net:

# modules_wlan0="wpa_supplicant !iwconfig dhcpcd netplugd"

then stop and start net.wlan0.

Let me know your results.  If this works successfully, we may be looking at two separate issues.

Thanks,

William
Comment 2 Jory A. Pratt gentoo-dev 2010-10-24 05:18:28 UTC
Info was requested and no follow up has been made, please reopen with follow up info.
Comment 3 Michal Pytasz 2010-11-06 10:57:44 UTC
Well, I can confirm it on new install on Asus UL30JT with ath9k driver and openRC 0.6.3.

emerge --info
Portage 2.2.0_alpha3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-x64 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-x64-x86_64-Intel-R-_Core-TM-_i5_CPU_U_520_@_1.07GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 05 Nov 2010 07:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Broadcom skype-eula dlj-1.1 cadsoft PUEL AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -msse4.1 -msse4.2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core2 -msse4.1 -msse4.2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="PL"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en_GB"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi akonadi alsa amd64 aspell avi berkdb bluetooth bzip2 cairo cli consolekit cracklib crypt cups cxx dbus device-mapper disk-partition dri dv dvd dvdr dvdread eap-sim encode extras ffmpeg flac foomaticdb fortran fuse gadu gdbm gif gmp gnutls gpm gtk2 iconv ipv6 irc jack java java6 javacomm jpeg jpeg2k kde kde4 kdehiddenvisibility laptop libv4l libv4l2 lm_sensors logitech-mouse logrotate mad madwifi mikmod mmx mng modules mp3 mpeg mudflap multilib mysql ncurses nforce2 nls nptl nptlonly nsplugin ogg openexr opengl openmp oss pam pcre pdf perl plasma pmu png postgres ppds pppd python qt qt3support qt4 rdesktop rdp readline samba sdl secure-delete semantic-desktop session sms sndfile sql sse sse2 ssl subtitles svg sysfs tcl tcpd theora threads tiff timidity tk trascode truetype unicode usb v4l v4l2 vcd vorbis wifi xcb xcomposite xinerama xml xorg xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon lg_gsm ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020 sa300 sa315" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en_GB" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel nouveau i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



It appears that it is module=( "wpa_supplicant" ) not being effective problem or rfkill problem.
After "rfkill unblock all" I can ifconfig wlan0 up, i can start wpa_supplicant for wlan0 with wpa-supplicant -c /etc/... -i.. -B and than I get link established, get (by hand) addr with dhcpcd.
On on /etc/init.d/net.wlan0 start it appears as if wpa_supplicant m
Comment 4 Michal Pytasz 2010-11-06 11:02:55 UTC
submitted too quickly, on /etc/init.d/net.wlan0 start I can see information from radio scanning and no wep keys set information for networks listed (should use WPA_SUPPLICANT, since /etc/wpa_supplicant/wpa_supplicant.conf is filled in properly and modules_wlan0=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"
config_wlan0=( "dhcp" )
lines are present in /etc/conf.d/net
Comment 5 Michal Pytasz 2010-11-06 13:09:14 UTC
Please discard my 2 previous posts, error in my case was caused by obsolete syntax in /etc/conf.d/net (copied from older system - additional unneccessary brackets).