Ref : bug 129885. I had just update to the bash-3.1_p16, but with ndiswrapper and wpa_supplicant was not able to get the wirless working, had a failure to power up the wireless card (RT2500) within the messagse (ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C0010015)) So I have down graded back to bash-3.0-r12. If there is any advice ? I also do have the baselayout-1.11.14-r7. Thanks Ian P.S. This is my first bug report, so if I have done anything wrong please say :) Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://mirrors.blueyonder.co.uk/mirrors/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype cups curl dba dri dts eds emboss encode esd exif expat fam fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 isdnlog java jpeg junit kde lcms libg++ libwww mad memlimit mikmod mng motif mp3 mpeg mysql ncurses nls nptl ogg openal opengl oss pam pcre pdflib perl php png posix pppd python qt quicktime readline samba sdl session simplexml soap sockets spell spl ssl tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev usb vorbis win32codecs xml xml2 xmms xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
how exactly are you trying to use ndiswrapper/wpa_supplicant ? are you using /etc/init.d/net.* scripts ? or are you running commands yourself (and if so, what are the commands) ?
Same problem here, using ipw2200 wpa_supplicant net.eth1 linked to net.lo script :-) It seems what it enters some kind of cicle, because i see sleep1 then other comands then sleep1 using ps.
what versions of wpa_supplicant and ndiswrapper ?
These are the versions of the programs below, and I am running the /etc/init.d/net* scripts Searching for package 'wpa_supplicant' in all categories among: ] * installed packages [I--] [ ] net-wireless/wpa_supplicant-0.4.8 (0) tux ian # equery list ndiswrapper [ Searching for package 'ndiswrapper' in all categories among: ] * installed packages [I--] [ ] net-wireless/ndiswrapper-1.2-r1 (0)
Created attachment 84761 [details, diff] baselayout - wpa_supplicant - bash-3.1 patch Please test this patch
Applied the patch, but still the same error, ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C0010015), so I have unapplied the patch and gone back to bash-3.0-r12
For me, worked fine with this patch: ----------------------------------------------------- --- lib/rcscripts/net.modules.d/wpa_supplicant (revision 1787) +++ lib/rcscripts/net.modules.d/wpa_supplicant (working copy) @@ -99,7 +99,8 @@ # Note that just because we are associated does not mean we are using the # correct encryption keys wpa_supplicant_associated() { - local -a status=( "$( wpa_cli -i${1} status | awk -F= '/^key_mgmt|^wpa_state|^EAP state/ { print "\""$2"\"" }' )" ) + local -a status + eval status=( $( wpa_cli -i"$1" status | awk -F= '/^key_mgmt|^wpa_state|^EAP state/ { print "\""$2"\"" }' ) ) case ${status[0]} in "NONE" ) [[ ${status[1]} == "ASSOCIATED" || ${status[1]} == "COMPLETED" ]] ;; @@ -214,7 +215,8 @@ # Set ESSID for essidnet and report ESSID=$( wpa_supplicant_get_essid ${iface} ) - local -a status=( "$( wpa_cli -i${iface} status | awk -F= '/^bssid|^pairwise_cipher|^key_mgmt/ { print "\""$2"\"" }' )" ) + local -a status + eval status=( $( wpa_cli -i"${iface}" status | awk -F= '/^bssid|^pairwise_cipher|^key_mgmt/ { print "\""$2"\"" }' ) ) local mac=$( echo ${status[0]} | tr '[:lower:]' '[:upper:]' ) einfo "${iface} connected to \"${ESSID//\\\\/\\\\}\" at ${mac}" ------------------------------- Just changed -i $"{iface} to -i "${iface}
Created attachment 84782 [details, diff] Simple modification to the first patch with original patch gave me this error: Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Created attachment 84783 [details, diff] Simple modification to the first patch 2 - sorry the first one worked too, but wasnt the patch i wanted to send :) sorry guys, its my first time
so does the last patch work for everyone ?
*** Bug 130106 has been marked as a duplicate of this bug. ***
Yep, works for me as well... cheers.
(In reply to comment #10) > so does the last patch work for everyone ? I confirm I had the bug (with ipw2100 and not ndiswrapper), and that the last patch worked as a charm !
Thanks for the help and fixing the bug.
Please don't close a bug as FIXED until the Gentoo developers have committed the patch.
baselayout-1.11.14-r8 now in portage with patch, thanks all
*** Bug 130350 has been marked as a duplicate of this bug. ***
*** Bug 130531 has been marked as a duplicate of this bug. ***